aboutsummaryrefslogtreecommitdiff
path: root/games/glbsp
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2012-06-12 16:35:45 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2012-06-12 16:35:45 +0000
commit3a283e24f296371e9b753c09e3e62a92ef3d8703 (patch)
tree88e0a2bbddafb5c9bdc18e8e02c5e59fb9f9d471 /games/glbsp
parent7a0a8929bea1c510b4f30261d294a78b556b49d7 (diff)
downloadports-3a283e24f296371e9b753c09e3e62a92ef3d8703.tar.gz
ports-3a283e24f296371e9b753c09e3e62a92ef3d8703.zip
Notes
Diffstat (limited to 'games/glbsp')
-rw-r--r--games/glbsp/Makefile23
1 files changed, 12 insertions, 11 deletions
diff --git a/games/glbsp/Makefile b/games/glbsp/Makefile
index 2ef951bed4e3..d0a9215bbe42 100644
--- a/games/glbsp/Makefile
+++ b/games/glbsp/Makefile
@@ -18,22 +18,23 @@ COMMENT= BSP node builder for OpenGL ports of the DOOM game engine
USE_GMAKE= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:C/[[:alpha:]]//}
-OPTIONS= GUI "Build FLTK based GUI" off \
- PLUGIN "Build plugin used in DOOM engines" off
+OPTIONS_DEFINE= GUI PLUGIN DOCS
+GUI_DESC= Build FLTK based GUI
+PLUGIN_DESC= Build plugin used in DOOM engines
MAN1= glbsp.1
PORTDOCS= README.txt USAGE.txt
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
-.ifdef (WITH_GUI)
+.if ${PORT_OPTIONS:MGUI}
LIB_DEPENDS+= fltk.1:${PORTSDIR}/x11-toolkits/fltk
PLIST_SUB= GUI_VERSION=""
.else
PLIST_SUB= GUI_VERSION="@comment "
.endif
-.ifdef (WITH_PLUGIN)
+.if ${PORT_OPTIONS:MPLUGIN}
PLIST_SUB+= PLUGIN=""
.else
PLIST_SUB+= PLUGIN="@comment "
@@ -44,26 +45,26 @@ post-patch:
${WRKSRC}/Makefile ${WRKSRC}/Plugin_unx.mak
post-build:
-.ifdef (WITH_GUI)
+.if ${PORT_OPTIONS:MGUI}
${SETENV} ${MAKE_ENV} ${GMAKE} -C ${WRKSRC} -f GUI_unx.mak all
.endif
-.ifdef (WITH_PLUGIN)
+.if ${PORT_OPTIONS:MPLUGIN}
${SETENV} ${MAKE_ENV} ${GMAKE} -C ${WRKSRC} -f Plugin_unx.mak all
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/glbsp ${PREFIX}/bin
-.ifdef (WITH_GUI)
+.if ${PORT_OPTIONS:MGUI}
${INSTALL_PROGRAM} ${WRKSRC}/glBSPX ${PREFIX}/bin
.endif
-.ifdef (WITH_PLUGIN)
+.if ${PORT_OPTIONS:MPLUGIN}
${INSTALL_DATA} ${WRKSRC}/libglbsp.a ${PREFIX}/lib
.endif
${INSTALL_MAN} ${MAN1:S|^|${WRKSRC}/|} ${MANPREFIX}/man/man1
-.ifndef (NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>