diff options
author | danilo <danilo@FreeBSD.org> | 2013-11-17 11:11:52 +0800 |
---|---|---|
committer | danilo <danilo@FreeBSD.org> | 2013-11-17 11:11:52 +0800 |
commit | 0ccf9dc7652a59f0e37f32b9770e2346ba59a26e (patch) | |
tree | 7abf3ab024adf6cd462eff0f7837d4cad815c6ac /games/cube | |
parent | 96a613eaa0af88970587d54d7d0a1b45522be3ae (diff) | |
download | freebsd-ports-gnome-0ccf9dc7652a59f0e37f32b9770e2346ba59a26e.tar.gz freebsd-ports-gnome-0ccf9dc7652a59f0e37f32b9770e2346ba59a26e.tar.zst freebsd-ports-gnome-0ccf9dc7652a59f0e37f32b9770e2346ba59a26e.zip |
- Add stage support
- Use OPTIONS_SUB
Diffstat (limited to 'games/cube')
-rw-r--r-- | games/cube/Makefile | 35 |
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> |