convert to options framework

This commit is contained in:
dillo 2005-06-01 21:28:41 +00:00
parent 29e4dbe4d2
commit ec33819c8b
2 changed files with 16 additions and 10 deletions

View file

@ -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"

View file

@ -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