summaryrefslogtreecommitdiff
path: root/mail/dk-milter/options.mk
diff options
context:
space:
mode:
Diffstat (limited to 'mail/dk-milter/options.mk')
-rw-r--r--mail/dk-milter/options.mk21
1 files changed, 16 insertions, 5 deletions
diff --git a/mail/dk-milter/options.mk b/mail/dk-milter/options.mk
index a467c9294aa..74a7845522f 100644
--- a/mail/dk-milter/options.mk
+++ b/mail/dk-milter/options.mk
@@ -1,8 +1,8 @@
-# $NetBSD: options.mk,v 1.2 2012/06/12 15:45:57 wiz Exp $
+# $NetBSD: options.mk,v 1.3 2015/03/15 15:28:57 mef Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.dk-milter
-PKG_SUPPORTED_OPTIONS= inet6
-PKG_SUGGESTED_OPTIONS= inet6
+PKG_SUPPORTED_OPTIONS= arlib inet6
+PKG_SUGGESTED_OPTIONS= arlib inet6
.include "../../mk/bsd.options.mk"
@@ -10,7 +10,18 @@ PKG_SUGGESTED_OPTIONS= inet6
### IPv6 support.
###
.if !empty(PKG_OPTIONS:Minet6)
-SUBST_SED.libs+= -e 's|@INET6@||'
+SUBST_SED.libs+= -e 's|@INET6@||g'
.else
-SUBST_SED.libs+= -e 's|@INET6@|dnl|'
+SUBST_SED.libs+= -e 's|@INET6@|dnl|g'
+.endif
+
+###
+### Use asynchronous DNS resolver library shipping with dk-milter.
+###
+.if !empty(PKG_OPTIONS:Marlib)
+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