svn commit: r397597 - head/games/bloodfrontier
Dmitry Marakasov
amdmi3 at FreeBSD.org
Tue Sep 22 23:43:55 UTC 2015
Author: amdmi3
Date: Tue Sep 22 23:43:54 2015
New Revision: 397597
URL: https://svnweb.freebsd.org/changeset/ports/397597
Log:
- Switch to options helpers
Modified:
head/games/bloodfrontier/Makefile
Modified: head/games/bloodfrontier/Makefile
==============================================================================
--- head/games/bloodfrontier/Makefile Tue Sep 22 22:36:17 2015 (r397596)
+++ head/games/bloodfrontier/Makefile Tue Sep 22 23:43:54 2015 (r397597)
@@ -13,6 +13,10 @@ COMMENT= Single- and multi-player first-
LICENSE= ZLIB
+BROKEN_ia64= does not compile
+BROKEN_powerpc= does not compile
+BROKEN_sparc64= does not compile
+
USES= tar:bzip2 gmake
GNU_CONFIGURE= yes
CONFIGURE_WRKSRC= ${WRKSRC}/src/enet
@@ -30,43 +34,36 @@ OPTIONS_MULTI= COMPONENTS
OPTIONS_MULTI_COMPONENTS=CLIENT DEDICATED
OPTIONS_DEFAULT= CLIENT DEDICATED OPTIMIZED_CFLAGS
-CLIENT_DESC= Build client
-CLIENT_USE= GL=gl SDL=image,mixer,sdl XORG=x11
-CLIENT_ALL_TARGET= client
-CLIENT_PLIST_FILES= bin/bfclient libexec/bfclient \
- share/pixmaps/${PORTNAME}.ico
-DEDICATED_DESC= Build dedicated server
-DEDICATED_PLIST_FILES= bin/bfserver libexec/bfserver
-DEDICATED_ALL_TARGET= server
+CLIENT_DESC= Build client
+CLIENT_USE= GL=gl SDL=image,mixer,sdl XORG=x11
+CLIENT_ALL_TARGET= client
+CLIENT_PLIST_FILES= bin/bfclient libexec/bfclient \
+ share/pixmaps/${PORTNAME}.ico
+
+CLIENT_DESKTOP_ENTRIES= "Blood Frontier" \
+ "" \
+ "${PREFIX}/share/pixmaps/${PORTNAME}.ico" \
+ "bfclient" \
+ "Game;Shooter;" \
+ ""
+DEDICATED_DESC= Build dedicated server
+DEDICATED_PLIST_FILES= bin/bfserver libexec/bfserver
+DEDICATED_ALL_TARGET= server
+
OPTIMIZED_CFLAGS_CFLAGS= -O3 -fomit-frame-pointer
OPTIMIZED_CFLAGS_CXXFLAGS= -O3 -fomit-frame-pointer
-.include <bsd.port.options.mk>
-
-.if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64"
-BROKEN= Does not compile on ia64, powerpc, or sparc64
-.endif
-
-.if ${PORT_OPTIONS:MCLIENT}
-DESKTOP_ENTRIES="Blood Frontier" \
- "${COMMENT}" \
- "${PREFIX}/share/pixmaps/${PORTNAME}.ico" \
- "bfclient" \
- "Game;Shooter;" \
- ""
-.endif
-
do-install:
-.for f in ${PLIST_FILES:Mbin/*}
- ${INSTALL_SCRIPT} ${WRKDIR}/${f:T} ${STAGEDIR}${PREFIX}/${f}
-.endfor
-.for f in ${PLIST_FILES:Mlibexec/*}
- ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/${f:T} ${STAGEDIR}${PREFIX}/${f:H}
-.endfor
-.if ${PORT_OPTIONS:MCLIENT}
+ (cd ${WRKSRC}/data && ${COPYTREE_SHARE} "." ${STAGEDIR}${DATADIR})
+
+do-install-CLIENT-on:
+ ${INSTALL_SCRIPT} ${WRKDIR}/bfclient ${STAGEDIR}${PREFIX}/bin/
+ ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/bfclient ${STAGEDIR}${PREFIX}/libexec/
${INSTALL_DATA} ${WRKSRC}/src/${PORTNAME}.ico \
${STAGEDIR}${PREFIX}/share/pixmaps
-.endif
- (cd ${WRKSRC}/data && ${COPYTREE_SHARE} "." ${STAGEDIR}${DATADIR})
+
+do-install-DEDICATED-on:
+ ${INSTALL_SCRIPT} ${WRKDIR}/bfserver ${STAGEDIR}${PREFIX}/bin/
+ ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/bfserver ${STAGEDIR}${PREFIX}/libexec/
.include <bsd.port.mk>
More information about the svn-ports-all
mailing list