diff options
author | wiz <wiz@pkgsrc.org> | 2005-05-31 21:46:06 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2005-05-31 21:46:06 +0000 |
commit | 55f196bf22b1872463e365f72e2d61ab532912df (patch) | |
tree | 0f9b5d4ca7630ba4df08fbab8dacee0d35d54546 /games/netris | |
parent | a281ae88278a72c32c75a800bd491dd129ea3139 (diff) | |
download | pkgsrc-55f196bf22b1872463e365f72e2d61ab532912df.tar.gz |
Convert to options framework.
Diffstat (limited to 'games/netris')
-rw-r--r-- | games/netris/Makefile | 13 | ||||
-rw-r--r-- | games/netris/options.mk | 12 |
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 |