1 # $NetBSD: options.mk,v 1.2 2005/12/05 23:55:16 rillig Exp $
3 PKG_OPTIONS_VAR= PKG_OPTIONS.amavis-perl
4 PKG_SUPPORTED_OPTIONS= milter
6 .include "../../mk/bsd.options.mk"
8 .if !empty(PKG_OPTIONS:Mmilter)
9 DEPENDS+= sendmail>=8.12.9nb1:../../mail/sendmail
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"
16 CONFIGURE_ARGS+=--enable-milter
17 CONFIGURE_ARGS+=--with-milter-libs=${PREFIX}/lib
18 CONFIGURE_ARGS+=--with-milter-includes=${PREFIX}/include
20 CONFIGURE_ARGS+=--enable-smtp --with-smtp-port=${SMTPPORT:Q}
21 PLIST_SRC+= ${PKGDIR}/PLIST.nomilter