summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorwiz <wiz>2005-05-31 21:46:06 +0000
committerwiz <wiz>2005-05-31 21:46:06 +0000
commitd573aad3254927b1e2318a403f9a9851a06c847f (patch)
tree0f9b5d4ca7630ba4df08fbab8dacee0d35d54546 /games
parent653edf1429a0d63da8da73fb18544408b2e09bf9 (diff)
downloadpkgsrc-d573aad3254927b1e2318a403f9a9851a06c847f.tar.gz
Convert to options framework.
Diffstat (limited to 'games')
-rw-r--r--games/netris/Makefile13
-rw-r--r--games/netris/options.mk12
2 files changed, 14 insertions, 11 deletions
diff --git a/games/netris/Makefile b/games/netris/Makefile
index 3123acd8989..bdba4cea559 100644
--- a/games/netris/Makefile
+++ b/games/netris/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.9 2005/05/22 20:08:02 jlam Exp $
+# $NetBSD: Makefile,v 1.10 2005/05/31 21:46:06 wiz Exp $
#
DISTNAME= netris-0.52
@@ -18,16 +18,7 @@ USE_TOOLS+= gmake
HAS_CONFIGURE= YES
CONFIGURE_SCRIPT= ./Configure
-BUILD_DEFS+= USE_INET6
-
-# to get USE_INET6
-.include "../../mk/bsd.prefs.mk"
-
-.if defined(USE_INET6) && ${USE_INET6} == YES
-CONFIGURE_ARGS+= --enable-ipv6
-.else
-CONFIGURE_ARGS+= --disable-ipv6
-.endif
+.include "options.mk"
do-install:
@ ${INSTALL_PROGRAM} ${WRKSRC}/netris ${PREFIX}/bin
diff --git a/games/netris/options.mk b/games/netris/options.mk
new file mode 100644
index 00000000000..a50a239eefa
--- /dev/null
+++ b/games/netris/options.mk
@@ -0,0 +1,12 @@
+# $NetBSD: options.mk,v 1.1 2005/05/31 21:46:06 wiz Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.netris
+PKG_SUPPORTED_OPTIONS= inet6
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Minet6)
+CONFIGURE_ARGS+= --enable-ipv6
+.else
+CONFIGURE_ARGS+= --disable-ipv6
+.endif