pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/games/xtris Convert to options framework.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/120569a3b5c3
branches:  trunk
changeset: 494921:120569a3b5c3
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Tue May 31 21:47:34 2005 +0000

description:
Convert to options framework.

diffstat:

 games/xtris/Makefile   |  11 ++---------
 games/xtris/options.mk |  12 ++++++++++++
 2 files changed, 14 insertions(+), 9 deletions(-)

diffs (41 lines):

diff -r 6a14dbaa4803 -r 120569a3b5c3 games/xtris/Makefile
--- a/games/xtris/Makefile      Tue May 31 21:46:38 2005 +0000
+++ b/games/xtris/Makefile      Tue May 31 21:47:34 2005 +0000
@@ -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 @@
 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 -r 6a14dbaa4803 -r 120569a3b5c3 games/xtris/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/xtris/options.mk    Tue May 31 21:47:34 2005 +0000
@@ -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



Home | Main Index | Thread Index | Old Index