aboutsummaryrefslogtreecommitdiff
path: root/games/steelstorm
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2013-11-19 02:32:53 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2013-11-19 02:32:53 +0000
commit7606af37e7cb1f249c50d3aaab5bff0d930ebcc7 (patch)
treefc8ebbeddb5251f22ce99527f27973aad2105751 /games/steelstorm
parentc9131a0d93e2eac208924857e824248d1b43d889 (diff)
- Support staging
- Mark MAKE_JOBS_UNSAFE
Notes
Notes: svn path=/head/; revision=334280
Diffstat (limited to 'games/steelstorm')
-rw-r--r--games/steelstorm/Makefile33
1 files changed, 14 insertions, 19 deletions
diff --git a/games/steelstorm/Makefile b/games/steelstorm/Makefile
index 01a861e375ca..af070f50f209 100644
--- a/games/steelstorm/Makefile
+++ b/games/steelstorm/Makefile
@@ -30,33 +30,30 @@ BUILD_WRKSRC= ${WRKSRC}/engine_source
MAKEFILE= BSDmakefile
MAKE_ENV= STRIP="${STRIP_CMD}"
ALL_TARGET= # empty
+MAKE_JOBS_UNSAFE=yes
PORTDOCS= README.txt
+PORTDATA= *
OPTIONS_DEFINE= OPTIMIZED_CFLAGS
-OPTIONS_MULTI= FLAVOR
-OPTIONS_MULTI_FLAVOR= CLIENT DEDICATED
+OPTIONS_MULTI= COMPONENTS
+OPTIONS_MULTI_COMPONENTS= CLIENT DEDICATED
+OPTIONS_DEFAULT=OPTIMIZED_CFLAGS CLIENT DEDICATED
+
CLIENT_DESC= Build client
DEDICATED_DESC= Dedicated server
-FLAVOR_DESC= Executable Selection
-
-OPTIONS_DEFAULT= OPTIMIZED_CFLAGS CLIENT DEDICATED
-PLIST_FILES= %%DATADIR%%/ssgamedata000001.pk3
-PLIST_DIRS= %%DATADIR%%
-
-NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MCLIENT}
ALL_TARGET+= cl-release
USE_XORG+= x11 xpm xext xxf86dga xxf86vm
-PLIST_FILES+= bin/steelstorm
+PLIST_FILES+= bin/${PORTNAME}
.endif
.if ${PORT_OPTIONS:MDEDICATED}
ALL_TARGET+= sv-release
-PLIST_FILES+= bin/steelstorm-dedicated
+PLIST_FILES+= bin/${PORTNAME}-dedicated
.endif
post-patch:
@@ -71,16 +68,14 @@ post-patch:
do-install:
.if ${PORT_OPTIONS:MCLIENT}
- ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/darkplaces-glx ${PREFIX}/bin/steelstorm
+ ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/darkplaces-glx ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
.endif
.if ${PORT_OPTIONS:MDEDICATED}
- ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/darkplaces-dedicated ${PREFIX}/bin/steelstorm-dedicated
-.endif
- ${MKDIR} ${DATADIR}
- ${INSTALL_DATA} ${WRKSRC}/gamedata/ssgamedata000001.pk3 ${DATADIR}/
-.if ${PORT_OPTIONS:MDOCS}
- ${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/README.txt ${DOCSDIR}/
+ ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/darkplaces-dedicated ${STAGEDIR}${PREFIX}/bin/${PORTNAME}-dedicated
.endif
+ ${MKDIR} ${STAGEDIR}${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/gamedata/ssgamedata000001.pk3 ${STAGEDIR}${DATADIR}/
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README.txt ${STAGEDIR}${DOCSDIR}/
.include <bsd.port.mk>