aboutsummaryrefslogtreecommitdiff
path: root/games/bloodfrontier
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2013-10-17 01:57:58 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2013-10-17 01:57:58 +0000
commitde6321e301a05a87b377bfac5414379f079a7c94 (patch)
treef211ff389709cc68913ba5bdd70e913b267aaa99 /games/bloodfrontier
parent55d9fc0feeca7f202001adb8dc0f8d23102b0317 (diff)
downloadports-de6321e301a05a87b377bfac5414379f079a7c94.tar.gz
ports-de6321e301a05a87b377bfac5414379f079a7c94.zip
Notes
Diffstat (limited to 'games/bloodfrontier')
-rw-r--r--games/bloodfrontier/Makefile44
1 files changed, 25 insertions, 19 deletions
diff --git a/games/bloodfrontier/Makefile b/games/bloodfrontier/Makefile
index c6c70819f6b3..6b695c633a14 100644
--- a/games/bloodfrontier/Makefile
+++ b/games/bloodfrontier/Makefile
@@ -3,7 +3,7 @@
PORTNAME= bloodfrontier
DISTVERSION= B2
-PORTREVISION= 6
+PORTREVISION= 7
CATEGORIES= games
MASTER_SITES= SF/${PORTNAME}/Blood%20Frontier%20Beta%202
DISTNAME= ${PORTNAME}-${DISTVERSION}-linux
@@ -11,7 +11,9 @@ DISTNAME= ${PORTNAME}-${DISTVERSION}-linux
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Single- and multi-player first-person shooter based on Cube 2
-USE_GMAKE= yes
+LICENSE= ZLIB
+
+USES= gmake
GNU_CONFIGURE= yes
USE_BZIP2= yes
CONFIGURE_WRKSRC= ${WRKSRC}/src/enet
@@ -23,16 +25,16 @@ ALL_TARGET= libenet ${BINARIES}
SUB_FILES= bfclient bfserver
+PORTDATA= *
+
OPTIONS_DEFINE= OPTIMIZED_CFLAGS
-OPTIONS_MULTI= FLAVOR
-OPTIONS_MULTI_FLAVOR= CLIENT DEDICATED
+OPTIONS_MULTI= COMPONENTS
+OPTIONS_MULTI_COMPONENTS=CLIENT DEDICATED
+OPTIONS_DEFAULT= CLIENT DEDICATED OPTIMIZED_CFLAGS
+
CLIENT_DESC= Build client
DEDICATED_DESC= Build dedicated server
-FLAVOR_DESC= Executable Selections
-OPTIONS_DEFAULT= CLIENT DEDICATED OPTIMIZED_CFLAGS
-
-NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64"
@@ -42,8 +44,15 @@ BROKEN= Does not compile on ia64, powerpc, or sparc64
.if ${PORT_OPTIONS:MCLIENT}
USE_GL= yes
USE_SDL= image mixer sdl
-PLIST_FILES+= bin/bfclient libexec/bfclient
+PLIST_FILES+= bin/bfclient libexec/bfclient share/pixmaps/${PORTNAME}.ico
BINARIES+= client
+
+DESKTOP_ENTRIES="Blood Frontier" \
+ "${COMMENT}" \
+ "${PREFIX}/share/pixmaps/${PORTNAME}.ico" \
+ "bfclient" \
+ "Game;Shooter;" \
+ ""
.endif
.if ${PORT_OPTIONS:MDEDICATED}
@@ -58,16 +67,13 @@ CXXFLAGS+= -O3 -fomit-frame-pointer
do-install:
.for f in ${BINARIES}
- ${INSTALL_SCRIPT} ${WRKDIR}/bf${f} ${PREFIX}/bin
- ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/bf${f} ${PREFIX}/libexec
+ ${INSTALL_SCRIPT} ${WRKDIR}/bf${f} ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/bf${f} ${STAGEDIR}${PREFIX}/libexec
.endfor
- ${MKDIR} ${DATADIR}
- cd ${WRKSRC}/data && ${COPYTREE_SHARE} "." ${DATADIR}/
-
-post-install:
- @${FIND} ${DATADIR} -type f | \
- ${SED} -e 's|^${PREFIX}/||' >> ${TMPPLIST}
- @${FIND} ${DATADIR} -type d | ${SORT} -r | \
- ${SED} -e 's|^${PREFIX}/|@dirrm |' >> ${TMPPLIST}
+.if ${PORT_OPTIONS:MCLIENT}
+ ${INSTALL_DATA} ${WRKSRC}/src/${PORTNAME}.ico ${STAGEDIR}${PREFIX}/share/pixmaps
+.endif
+ ${MKDIR} ${STAGEDIR}${DATADIR}
+ cd ${WRKSRC}/data && ${COPYTREE_SHARE} "." ${STAGEDIR}${DATADIR}/
.include <bsd.port.mk>