summaryrefslogtreecommitdiff
path: root/www/wwwoffle
diff options
context:
space:
mode:
authorwiz <wiz>2006-02-22 23:00:37 +0000
committerwiz <wiz>2006-02-22 23:00:37 +0000
commit5fa05bda950c2ab29452dd5a16d7f6e9e22e0530 (patch)
tree616789ac7108c66cb90e39fcc83954b35befc4d2 /www/wwwoffle
parent585a63d226fab2d131aea98daeb4b418e0d2e0d3 (diff)
downloadpkgsrc-5fa05bda950c2ab29452dd5a16d7f6e9e22e0530.tar.gz
Convert to options framework.
Diffstat (limited to 'www/wwwoffle')
-rw-r--r--www/wwwoffle/Makefile10
-rw-r--r--www/wwwoffle/options.mk10
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