diff options
author | wiz <wiz@pkgsrc.org> | 2005-05-31 21:47:34 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2005-05-31 21:47:34 +0000 |
commit | 0762ddaa45614f004af2509f63fe082ac522927d (patch) | |
tree | d88ec552c0419e5eba4603c9be66d1bd0726ed1f | |
parent | 0ad307c234458cfceac96c8e2160ca5434775c62 (diff) | |
download | pkgsrc-0762ddaa45614f004af2509f63fe082ac522927d.tar.gz |
Convert to options framework.
-rw-r--r-- | games/xtris/Makefile | 11 | ||||
-rw-r--r-- | games/xtris/options.mk | 12 |
2 files changed, 14 insertions, 9 deletions
diff --git a/games/xtris/Makefile b/games/xtris/Makefile index 00d014bd0fd..e2b77a59f24 100644 --- a/games/xtris/Makefile +++ b/games/xtris/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.8 2005/04/11 21:45:59 tv Exp $ +# $NetBSD: Makefile,v 1.9 2005/05/31 21:47:34 wiz Exp $ # DISTNAME= xtris-1.15 @@ -12,14 +12,7 @@ COMMENT= Multi-player version of a popular game for the X Window system WRKSRC= ${WRKDIR}/xtris USE_X11BASE= yes -BUILD_DEFS+= USE_INET6 - -# to get USE_INET6 -.include "../../mk/bsd.prefs.mk" - -.if defined(USE_INET6) && ${USE_INET6} == YES -CFLAGS+= -DINET6 -.endif +.include "options.mk" do-install: ${INSTALL} -o bin -g games -m 2755 ${WRKSRC}/xtris ${PREFIX}/bin/xtris diff --git a/games/xtris/options.mk b/games/xtris/options.mk new file mode 100644 index 00000000000..f519f5d627f --- /dev/null +++ b/games/xtris/options.mk @@ -0,0 +1,12 @@ +# $NetBSD: options.mk,v 1.1 2005/05/31 21:47:34 wiz Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.xtris +PKG_SUPPORTED_OPTIONS= inet6 + +.include "../../mk/bsd.options.mk" + +.if !empty(PKG_OPTIONS:Minet6) +CONFIGURE_ARGS+= --enable-ipv6 +.else +CONFIGURE_ARGS+= --disable-ipv6 +.endif |