From 0ccf9dc7652a59f0e37f32b9770e2346ba59a26e Mon Sep 17 00:00:00 2001 From: danilo Date: Sun, 17 Nov 2013 03:11:52 +0000 Subject: - Add stage support - Use OPTIONS_SUB --- games/cube/Makefile | 35 +++++++++++++---------------------- 1 file changed, 13 insertions(+), 22 deletions(-) (limited to 'games') 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 .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 -- cgit