diff options
author | alepulver <alepulver@FreeBSD.org> | 2006-09-09 07:01:41 +0800 |
---|---|---|
committer | alepulver <alepulver@FreeBSD.org> | 2006-09-09 07:01:41 +0800 |
commit | 8817c229bfcea5cbe062a4730bbe55246a18b1dc (patch) | |
tree | 52f86da249b5aefde2fa1632dd51e7c36e8cd490 /games | |
parent | eebb9c6e8afe9405cc0c023f5b8b13a2b82286f6 (diff) | |
download | freebsd-ports-gnome-8817c229bfcea5cbe062a4730bbe55246a18b1dc.tar.gz freebsd-ports-gnome-8817c229bfcea5cbe062a4730bbe55246a18b1dc.tar.zst freebsd-ports-gnome-8817c229bfcea5cbe062a4730bbe55246a18b1dc.zip |
- Convert to OPTIONS.
- Take maintainership.
Diffstat (limited to 'games')
-rw-r--r-- | games/glbsp/Makefile | 43 |
1 files changed, 17 insertions, 26 deletions
diff --git a/games/glbsp/Makefile b/games/glbsp/Makefile index f4d23972d9a7..1d24fae9aaee 100644 --- a/games/glbsp/Makefile +++ b/games/glbsp/Makefile @@ -8,43 +8,34 @@ PORTNAME= glbsp PORTVERSION= 2.20 CATEGORIES= games -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} -MASTER_SITE_SUBDIR= ${PORTNAME} +MASTER_SITES= SF DISTNAME= ${PORTNAME}_src_${PORTVERSION:S/.//} -MAINTAINER= ports@FreeBSD.org +MAINTAINER= alepulver@FreeBSD.org COMMENT= BSP node builder for OpenGL ports of the DOOM game engine -.ifdef (WITH_GUI_VERSION) -LIB_DEPENDS= fltk.1:${PORTSDIR}/x11-toolkits/fltk -.endif - USE_GMAKE= yes -MAKE_ENV= CC="${CC}" CXX="${CXX}" CFLAGS="${CFLAGS}" X11BASE="${X11BASE}" - WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:C/[[:alpha:]]//} +OPTIONS= GUI "Build FLTK based GUI" off \ + PLUGIN "Build plugin used in DOOM engines" off + MAN1= glbsp.1 PORTDOCS= README.txt USAGE.txt -.if !defined (WITH_GUI_VERSION) -PLIST_SUB= GUI_VERSION="@comment " -.else -PLIST_SUB= GUI_VERSION="" -.endif +.include <bsd.port.pre.mk> -.if !defined (WITH_PLUGIN) -PLIST_SUB+= PLUGIN="@comment " +.ifdef (WITH_GUI) +LIB_DEPENDS+= fltk.1:${PORTSDIR}/x11-toolkits/fltk +PLIST_SUB= GUI_VERSION="" .else -PLIST_SUB+= PLUGIN="" +PLIST_SUB= GUI_VERSION="@comment " .endif -pre-everything:: -.ifndef (WITH_GUI_VERSION) - @${ECHO_CMD} "Define WITH_GUI_VERSION=yes to build FLTK based GUI version" -.endif -.ifndef (WITH_PLUGIN) - @${ECHO_CMD} "Define WITH_PLUGIN=yes to build plugin version of glBSP used in DOOM engines" +.ifdef (WITH_PLUGIN) +PLIST_SUB+= PLUGIN="" +.else +PLIST_SUB+= PLUGIN="@comment " .endif post-patch: @@ -52,7 +43,7 @@ post-patch: ${WRKSRC}/Makefile ${WRKSRC}/Plugin_unx.mak post-build: -.ifdef (WITH_GUI_VERSION) +.ifdef (WITH_GUI) ${SETENV} ${MAKE_ENV} ${GMAKE} -C ${WRKSRC} -f GUI_unx.mak all .endif .ifdef (WITH_PLUGIN) @@ -61,7 +52,7 @@ post-build: do-install: ${INSTALL_PROGRAM} ${WRKSRC}/glbsp ${PREFIX}/bin -.ifdef (WITH_GUI_VERSION) +.ifdef (WITH_GUI) ${INSTALL_PROGRAM} ${WRKSRC}/glBSPX ${PREFIX}/bin .endif .ifdef (WITH_PLUGIN) @@ -74,4 +65,4 @@ do-install: ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR} .endif -.include <bsd.port.mk> +.include <bsd.port.post.mk> |