pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/games/battleball convert to options framework
details: https://anonhg.NetBSD.org/pkgsrc/rev/97df336d1ed7
branches: trunk
changeset: 495061:97df336d1ed7
user: dillo <dillo%pkgsrc.org@localhost>
date: Wed Jun 01 21:28:41 2005 +0000
description:
convert to options framework
diffstat:
games/battleball/Makefile | 13 +++----------
games/battleball/options.mk | 13 +++++++++++++
2 files changed, 16 insertions(+), 10 deletions(-)
diffs (49 lines):
diff -r 0ea65ffd5289 -r 97df336d1ed7 games/battleball/Makefile
--- a/games/battleball/Makefile Wed Jun 01 21:14:46 2005 +0000
+++ b/games/battleball/Makefile Wed Jun 01 21:28:41 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.18 2005/06/01 18:02:49 jlam Exp $
+# $NetBSD: Makefile,v 1.19 2005/06/01 21:28:41 dillo Exp $
DISTNAME= battleball.21.src
PKGNAME= battleball-2.1
@@ -15,6 +15,8 @@
SED_CMDS= -e '/^INCS/s|$$|${CPPFLAGS}|' -e '/^LIBS/s|$$|${LDFLAGS}|'
+.include "options.mk"
+
.include "../../mk/x11.buildlink3.mk"
do-configure:
@@ -24,13 +26,4 @@
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/battleball ${PREFIX}/bin/
-.include "../../mk/bsd.prefs.mk"
-
-.if defined(BATTLEBALL_USE_MESA)
-.include "../../graphics/MesaLib/buildlink3.mk"
-.else
-CPPFLAGS+= -DNO_OPENGL
-SED_CMDS+= -e '/^GLINCS/s|^|\#|' -e '/^GLLIBS/s|^|\#|'
-.endif
-
.include "../../mk/bsd.pkg.mk"
diff -r 0ea65ffd5289 -r 97df336d1ed7 games/battleball/options.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/battleball/options.mk Wed Jun 01 21:28:41 2005 +0000
@@ -0,0 +1,13 @@
+# $NetBSD: options.mk,v 1.1 2005/06/01 21:28:41 dillo Exp $
+
+PKG_SUPPORTED_OPTIONS= opengl
+PKG_OPTIONS_LEGACY_VARS+= BATTLEBALL_USE_MESA:opengl
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mopengl)
+.include "../../graphics/MesaLib/buildlink3.mk"
+.else
+CPPFLAGS+= -DNO_OPENGL
+SED_CMDS+= -e '/^GLINCS/s|^|\#|' -e '/^GLLIBS/s|^|\#|'
+.endif
Home |
Main Index |
Thread Index |
Old Index