# $NetBSD: options.mk,v 1.7 2009/02/28 15:44:55 manu Exp $ PKG_OPTIONS_VAR= PKG_OPTIONS.dkim-milter PKG_SUPPORTED_OPTIONS= inet6 dkim-milter-arlib debug dkim-stats without-libsm .include "../../mk/bsd.options.mk" ### ### IPv6 support. ### .if !empty(PKG_OPTIONS:Minet6) SUBST_SED.libs+= -e 's|@INET6@||g' .else SUBST_SED.libs+= -e 's|@INET6@|dnl|g' .endif ### ### Debug support ### .if !empty(PKG_OPTIONS:Mdebug) SUBST_SED.libs+= -e 's|@DEBUG@||g' .else SUBST_SED.libs+= -e 's|@DEBUG@|dnl|g' .endif ### ### Use asynchronous DNS resolver library shipping with dkim-milter. ### PLIST_VARS+= arlib .if !empty(PKG_OPTIONS:Mdkim-milter-arlib) PLIST.arlib= yes SUBST_SED.libs+= -e 's|@RESOLVLIB@||g' SUBST_SED.libs+= -e 's|@ARLIB@||g' .else SUBST_SED.libs+= -e 's|@RESOLVLIB@|resolv bind|g' SUBST_SED.libs+= -e 's|@ARLIB@|dnl|g' .endif ### ### Build with native strl*() ### .if !empty(PKG_OPTIONS:Mwithout-libsm) SUBST_SED.libs+= -e 's|@WITHOUTLIBSM@||g' .else SUBST_SED.libs+= -e 's|@WITHOUTLIBSM@|dnl|g' .endif ### ### Install dkim-stats(8) which outputs dkim-milter statistics ### PLIST_VARS+= stats .if !empty(PKG_OPTIONS:Mdkim-stats) .include "../../mk/db1.builtin.mk" PLIST.stats= yes SUBST_SED.libs+= -e 's|@STATS@||g' SUBST_SED.libs+= -e 's|@MAN_STATS@|dkim-stats.8|g' SUBST_SED.libs+= -e 's|@DBLIB@|db|g' .else SUBST_SED.libs+= -e 's|@STATS@|dnl|g' SUBST_SED.libs+= -e 's|@MAN_STATS@||g' SUBST_SED.libs+= -e 's|@DBLIB@||g' .endif