summaryrefslogtreecommitdiff
path: root/net/mDNSResponder
diff options
context:
space:
mode:
authorjlam <jlam>2007-09-07 22:12:10 +0000
committerjlam <jlam>2007-09-07 22:12:10 +0000
commit8fb7d902eedfbb493ada3287ea8f957d43e32ae3 (patch)
treee65f4ff0343b21db10e01b4ee2a8fa56a72846a8 /net/mDNSResponder
parent080f1d43dd82349717f70720539e3bd583864e4a (diff)
downloadpkgsrc-8fb7d902eedfbb493ada3287ea8f957d43e32ae3.tar.gz
Convert packages that test and use USE_INET6 to use the options framework
and to support the "inet6" option instead. Remaining usage of USE_INET6 was solely for the benefit of the scripts that generate the README.html files. Replace: BUILD_DEFS+= USE_INET6 with BUILD_DEFS+= IPV6_READY and teach the README-generation tools to look for that instead. This nukes USE_INET6 from pkgsrc proper. We leave a tiny bit of code to continue to support USE_INET6 for pkgsrc-wip until it has been nuked from there as well.
Diffstat (limited to 'net/mDNSResponder')
-rw-r--r--net/mDNSResponder/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/net/mDNSResponder/Makefile b/net/mDNSResponder/Makefile
index 2e6958457b3..cb70f32c50d 100644
--- a/net/mDNSResponder/Makefile
+++ b/net/mDNSResponder/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.22 2006/10/04 21:53:17 wiz Exp $
+# $NetBSD: Makefile,v 1.23 2007/09/07 22:12:18 jlam Exp $
DISTNAME= mDNSResponder-108
PKGREVISION= 1
@@ -58,8 +58,12 @@ MAKE_ENV+= EXTRA_LIBS=-Wl,-R${BUILDLINK_PREFIX.librfuncs:Q}/lib\ ${BUILDLINK_LDF
MAKE_ENV+= EXTRA_LIBS=
.endif
-BUILD_DEFS+= USE_INET6
-.if defined(USE_INET6) && ${USE_INET6} == "YES"
+PKG_OPTIONS_VAR= PKG_OPTIONS.mDNSResponder
+PKG_SUPPORTED_OPTIONS= inet6
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Minet6)
MAKE_ENV+= HAVE_IPV6=1
.endif