summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authordillo <dillo@pkgsrc.org>2005-06-01 21:28:41 +0000
committerdillo <dillo@pkgsrc.org>2005-06-01 21:28:41 +0000
commitec33819c8b4e9efcb3d1bf90d1bb2e5ac6f8bdd4 (patch)
tree4a9b080508ad1f152262f3ecd83cb990c0dcacec /games
parent29e4dbe4d27f472b66bf3ac0800c3d39ebcb8ba9 (diff)
downloadpkgsrc-ec33819c8b4e9efcb3d1bf90d1bb2e5ac6f8bdd4.tar.gz
convert to options framework
Diffstat (limited to 'games')
-rw-r--r--games/battleball/Makefile13
-rw-r--r--games/battleball/options.mk13
2 files changed, 16 insertions, 10 deletions
diff --git a/games/battleball/Makefile b/games/battleball/Makefile
index 17b61c2e50d..7556a24801d 100644
--- a/games/battleball/Makefile
+++ b/games/battleball/Makefile
@@ -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 @@ USE_LANGUAGES= c c++
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-configure:
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 --git a/games/battleball/options.mk b/games/battleball/options.mk
new file mode 100644
index 00000000000..f16879095bc
--- /dev/null
+++ b/games/battleball/options.mk
@@ -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