From 72ff91e43b02ffb23160967f77d976b274bb0541 Mon Sep 17 00:00:00 2001 From: dillo Date: Wed, 1 Jun 2005 21:28:41 +0000 Subject: convert to options framework --- games/battleball/Makefile | 13 +++---------- games/battleball/options.mk | 13 +++++++++++++ 2 files changed, 16 insertions(+), 10 deletions(-) create mode 100644 games/battleball/options.mk (limited to 'games') 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 -- cgit v1.2.3