diff options
author | wiz <wiz@pkgsrc.org> | 2006-02-22 23:00:37 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2006-02-22 23:00:37 +0000 |
commit | b5a02f1d645c519ec73466d21645bcc7b2e29b11 (patch) | |
tree | 616789ac7108c66cb90e39fcc83954b35befc4d2 | |
parent | 9972418a58d60e502d8980a127239101a5ae4e7c (diff) | |
download | pkgsrc-b5a02f1d645c519ec73466d21645bcc7b2e29b11.tar.gz |
Convert to options framework.
-rw-r--r-- | www/wwwoffle/Makefile | 10 | ||||
-rw-r--r-- | www/wwwoffle/options.mk | 10 |
2 files changed, 12 insertions, 8 deletions
diff --git a/www/wwwoffle/Makefile b/www/wwwoffle/Makefile index 8e0fed3528c..6d4f7ad288c 100644 --- a/www/wwwoffle/Makefile +++ b/www/wwwoffle/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.61 2006/02/05 23:11:29 joerg Exp $ +# $NetBSD: Makefile,v 1.62 2006/02/22 23:00:37 wiz Exp $ DISTNAME= wwwoffle-2.8e PKGREVISION= 2 @@ -23,7 +23,7 @@ INSTALL_EXTRA_TMPL= ${PKGDIR}/INSTALL RCD_SCRIPTS= wwwoffled -BUILD_DEFS+= USE_INET6 +.include "options.mk" post-build: cd ${WRKSRC}/cache/search/htdig/scripts; \ @@ -80,10 +80,4 @@ finish: ${SETENV} CONFDIR="${PKG_SYSCONFDIR}" PKG_PREFIX="${PREFIX}" \ ${SH} INSTALL _ POST-INSTALL -.include "../../mk/bsd.prefs.mk" - -.if defined(USE_INET6) && ${USE_INET6} == "YES" -CONFIGURE_ARGS+= --with-ipv6 -.endif - .include "../../mk/bsd.pkg.mk" diff --git a/www/wwwoffle/options.mk b/www/wwwoffle/options.mk new file mode 100644 index 00000000000..953f0b2bb29 --- /dev/null +++ b/www/wwwoffle/options.mk @@ -0,0 +1,10 @@ +# $NetBSD: options.mk,v 1.1 2006/02/22 23:00:37 wiz Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.wwwoffle +PKG_SUPPORTED_OPTIONS= inet6 + +.include "../../mk/bsd.options.mk" + +.if !empty(PKG_OPTIONS:Minet6) +CONFIGURE_ARGS+= --with-ipv6 +.endif |