aboutsummaryrefslogtreecommitdiff
path: root/games/cube
diff options
context:
space:
mode:
authorDanilo Egea Gondolfo <danilo@FreeBSD.org>2013-11-17 03:11:52 +0000
committerDanilo Egea Gondolfo <danilo@FreeBSD.org>2013-11-17 03:11:52 +0000
commit1f1a056c23f32fea16a321e45e9156a6e79a2bd8 (patch)
tree7abf3ab024adf6cd462eff0f7837d4cad815c6ac /games/cube
parent49f9d5ade0baad1e6fa8ffb5288d3baee65070e6 (diff)
downloadports-1f1a056c23f32fea16a321e45e9156a6e79a2bd8.tar.gz
ports-1f1a056c23f32fea16a321e45e9156a6e79a2bd8.zip
Notes
Diffstat (limited to 'games/cube')
-rw-r--r--games/cube/Makefile35
1 files changed, 13 insertions, 22 deletions
diff --git a/games/cube/Makefile b/games/cube/Makefile
index 67b016007736..1a2a54fa558d 100644
--- a/games/cube/Makefile
+++ b/games/cube/Makefile
@@ -37,7 +37,10 @@ FLAVOR_DESC= Clients and servers
CLIENT_DESC= Build client
SERVER_DESC= Build dedicated server
-NO_STAGE= yes
+OPTIONS_SUB= yes
+
+OPTIMIZED_CFLAGS_CFLAGS= -O3 -fomit-frame-pointer
+
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MCLIENT}
@@ -45,22 +48,12 @@ USE_GL= glu
USE_SDL= image mixer sdl
ALL_TARGET+= client
CUBE_BIN+= client
-LDFLAGS= -lX11
-PLIST_SUB+= CLIENT=""
-.else
-PLIST_SUB+= CLIENT="@comment "
+LDFLAGS+= -lX11
.endif
.if ${PORT_OPTIONS:MSERVER}
ALL_TARGET+= server
CUBE_BIN+= server
-PLIST_SUB+= SERVER=""
-.else
-PLIST_SUB+= SERVER="@comment "
-.endif
-
-.if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS}
-CFLAGS+= -O3 -fomit-frame-pointer
.endif
post-extract:
@@ -68,16 +61,14 @@ post-extract:
do-install:
.for f in ${CUBE_BIN}
- ${INSTALL_SCRIPT} ${WRKDIR}/cube_${f} ${PREFIX}/bin
- ${INSTALL_PROGRAM} ${WRKSRC}/cube_${f} ${PREFIX}/libexec
+ ${INSTALL_SCRIPT} ${WRKDIR}/cube_${f} ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/cube_${f} ${STAGEDIR}${PREFIX}/libexec
.endfor
- @${MKDIR} ${DATADIR}
- @(cd ${WRKDIR}/cube && ${COPYTREE_SHARE} "data packages" ${DATADIR})
- ${INSTALL_DATA} ${WRKDIR}/cube/autoexec.cfg ${DATADIR}
-.if ${PORT_OPTIONS:MDOCS}
- @${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKDIR}/cube/readme.html ${DOCSDIR}
- @(cd ${WRKDIR}/cube/docs && ${COPYTREE_SHARE} . ${DOCSDIR})
-.endif
+ @${MKDIR} ${STAGEDIR}${DATADIR}
+ @(cd ${WRKDIR}/cube && ${COPYTREE_SHARE} "data packages" ${STAGEDIR}${DATADIR})
+ ${INSTALL_DATA} ${WRKDIR}/cube/autoexec.cfg ${STAGEDIR}${DATADIR}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKDIR}/cube/readme.html ${STAGEDIR}${DOCSDIR}
+ (cd ${WRKDIR}/cube/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>