pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/games/netris Convert to options framework.
details: https://anonhg.NetBSD.org/pkgsrc/rev/e6183b4e3b08
branches: trunk
changeset: 494919:e6183b4e3b08
user: wiz <wiz%pkgsrc.org@localhost>
date: Tue May 31 21:46:06 2005 +0000
description:
Convert to options framework.
diffstat:
games/netris/Makefile | 13 ++-----------
games/netris/options.mk | 12 ++++++++++++
2 files changed, 14 insertions(+), 11 deletions(-)
diffs (43 lines):
diff -r 4cfa82a9ed45 -r e6183b4e3b08 games/netris/Makefile
--- a/games/netris/Makefile Tue May 31 21:45:32 2005 +0000
+++ b/games/netris/Makefile Tue May 31 21:46:06 2005 +0000
@@ -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 @@
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 -r 4cfa82a9ed45 -r e6183b4e3b08 games/netris/options.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/netris/options.mk Tue May 31 21:46:06 2005 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index