Initial import of pgbouncer-1.4.2
[pkgsrcv2.git] / mail / amavis-perl / options.mk
1 # $NetBSD: options.mk,v 1.2 2005/12/05 23:55:16 rillig Exp $
2
3 PKG_OPTIONS_VAR=        PKG_OPTIONS.amavis-perl
4 PKG_SUPPORTED_OPTIONS=  milter
5
6 .include "../../mk/bsd.options.mk"
7
8 .if !empty(PKG_OPTIONS:Mmilter)
9 DEPENDS+=       sendmail>=8.12.9nb1:../../mail/sendmail
10
11 # XXX Milter needs pthreads, and configure fails looking for it
12 # because ${PREFIX}/include is not available in the include path.
13 CONFIGURE_ENV+= CFLAGS="-I${PREFIX}/include"
14 .include "../../mk/pthread.buildlink3.mk"
15
16 CONFIGURE_ARGS+=--enable-milter
17 CONFIGURE_ARGS+=--with-milter-libs=${PREFIX}/lib
18 CONFIGURE_ARGS+=--with-milter-includes=${PREFIX}/include
19 .else
20 CONFIGURE_ARGS+=--enable-smtp --with-smtp-port=${SMTPPORT:Q}
21 PLIST_SRC+=     ${PKGDIR}/PLIST.nomilter
22 .endif