pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/wwwoffle Convert to options framework.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/cdb9310de305
branches:  trunk
changeset: 508648:cdb9310de305
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Wed Feb 22 23:00:37 2006 +0000

description:
Convert to options framework.

diffstat:

 www/wwwoffle/Makefile   |  10 ++--------
 www/wwwoffle/options.mk |  10 ++++++++++
 2 files changed, 12 insertions(+), 8 deletions(-)

diffs (43 lines):

diff -r 1cfe4bc6941f -r cdb9310de305 www/wwwoffle/Makefile
--- a/www/wwwoffle/Makefile     Wed Feb 22 22:51:43 2006 +0000
+++ b/www/wwwoffle/Makefile     Wed Feb 22 23:00:37 2006 +0000
@@ -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 @@
 
 RCD_SCRIPTS=           wwwoffled
 
-BUILD_DEFS+=           USE_INET6
+.include "options.mk"
 
 post-build:
        cd ${WRKSRC}/cache/search/htdig/scripts; \
@@ -80,10 +80,4 @@
        ${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 -r 1cfe4bc6941f -r cdb9310de305 www/wwwoffle/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/wwwoffle/options.mk   Wed Feb 22 23:00:37 2006 +0000
@@ -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



Home | Main Index | Thread Index | Old Index