summaryrefslogtreecommitdiff
path: root/chat/eggdrop
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2007-09-07 22:12:10 +0000
committerjlam <jlam@pkgsrc.org>2007-09-07 22:12:10 +0000
commit07dd3147c68f13b523ce8edfd486a3f4f0d47fe1 (patch)
treee65f4ff0343b21db10e01b4ee2a8fa56a72846a8 /chat/eggdrop
parentcdb276bfa1d6c9954bf0587b81f6152203d30047 (diff)
downloadpkgsrc-07dd3147c68f13b523ce8edfd486a3f4f0d47fe1.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 'chat/eggdrop')
-rw-r--r--chat/eggdrop/Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/chat/eggdrop/Makefile b/chat/eggdrop/Makefile
index 921cbfbdb64..620e3767621 100644
--- a/chat/eggdrop/Makefile
+++ b/chat/eggdrop/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.26 2007/05/22 16:47:04 lkundrak Exp $
+# $NetBSD: Makefile,v 1.27 2007/09/07 22:12:10 jlam Exp $
DISTNAME= eggdrop1.6.17
PKGNAME= eggdrop-1.6.17
@@ -12,13 +12,15 @@ HOMEPAGE= http://www.eggheads.org/
COMMENT= IRC robot with TCL scripting and multi-channel ability
GNU_CONFIGURE= yes
-BUILD_DEFS+= USE_INET6
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
CONFIGURE_ENV+= TCLLIB="${PREFIX}/lib" TCLINC="${PREFIX}/include"
-.include "../../mk/bsd.prefs.mk"
+PKG_OPTIONS_VAR= PKG_OPTIONS.eggdrop
+PKG_SUPPORTED_OPTIONS= inet6
-.if defined(USE_INET6) && !empty(USE_INET6:M[Yy][Ee][Ss])
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Minet6)
CONFIGURE_ARGS+= --enable-ipv6
PLIST_SUBST+= NOIPV6="@comment "
.else
@@ -82,7 +84,7 @@ do-install-modules:
compress.so console.so ctcp.so filesys.so irc.so notes.so \
seen.so server.so share.so transfer.so uptime.so wire.so \
${PREFIX}/lib/eggdrop
-.if !defined(USE_INET6) || empty(USE_INET6:M[Yy][Ee][Ss])
+.if empty(PKG_OPTIONS:Minet6)
cd ${WRKSRC} && ${INSTALL_DATA} dns.so ${PREFIX}/lib/eggdrop
.endif
cd ${WRKSRC}/src/mod && ${FIND} . -name "*.lang" -exec ${INSTALL_DATA} "{}" \