aboutsummaryrefslogtreecommitdiffstats
path: root/games/redeclipse/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'games/redeclipse/Makefile')
-rw-r--r--games/redeclipse/Makefile53
1 files changed, 37 insertions, 16 deletions
diff --git a/games/redeclipse/Makefile b/games/redeclipse/Makefile
index 12bd4f92adde..803434f8ff0d 100644
--- a/games/redeclipse/Makefile
+++ b/games/redeclipse/Makefile
@@ -5,27 +5,36 @@
# $FreeBSD$
#
-PORTNAME= bloodfrontier
-DISTVERSION= B2
-PORTREVISION= 4
+PORTNAME= redeclipse
+PORTVERSION= 1.0
CATEGORIES= games
-MASTER_SITES= SF/${PORTNAME}/Blood%20Frontier%20Beta%202
-DISTNAME= ${PORTNAME}-${DISTVERSION}-linux
+MASTER_SITES= SF/${PORTNAME}/${PORTNAME}_${PORTVERSION}
+DISTNAME= ${PORTNAME}_${PORTVERSION}_linux
MAINTAINER= amdmi3@FreeBSD.org
-COMMENT= Single- and multi-player first-person shooter based on Cube 2
+COMMENT= A single-player and multi-player first-person ego-shooter
+
+LICENSE_COMB= multi
+LICENSE= MIT ZLIB
+LICENSE_NAME_ZLIB= zlib license
+LICENSE_FILE_ZLIB= ${WRKSRC}/license.txt
+LICENSE_PERMS_ZLIB= ${_LICENSE_PERMS_DEFAULT}
+LICENSE_GROUPS_ZLIB= FSF GPL OSI
USE_GMAKE= yes
GNU_CONFIGURE= yes
USE_BZIP2= yes
CONFIGURE_WRKSRC= ${WRKSRC}/src/enet
+CONFIGURE_ARGS= --enable-shared=no --enable-static=yes
BUILD_WRKSRC= ${WRKSRC}/src
WRKSRC= ${WRKDIR}/${PORTNAME}
ALL_TARGET= libenet ${BINARIES}
MAKE_JOBS_SAFE= yes
-SUB_FILES= bfclient bfserver
+SUB_FILES= reclient reserver
+
+PORTDATA= *
OPTIONS= CLIENT "Build client" on \
DEDICATED "Build dedicated server" on \
@@ -44,12 +53,19 @@ IGNORE= needs at least one executable (CLIENT or DEDICATED)
.if !defined(WITHOUT_CLIENT)
USE_GL= yes
USE_SDL= image mixer sdl
-PLIST_FILES+= bin/bfclient libexec/bfclient
+PLIST_FILES+= bin/reclient libexec/reclient share/pixmaps/redeclipse.ico
BINARIES+= client
+
+DESKTOP_ENTRIES="Red Eclipse" \
+ "${COMMENT}" \
+ "${PREFIX}/share/pixmaps/redeclipse.ico" \
+ "reclient" \
+ "Application;Game;" \
+ ${FALSE}
.endif
.if !defined(WITHOUT_DEDICATED)
-PLIST_FILES+= bin/bfserver libexec/bfserver
+PLIST_FILES+= bin/reserver libexec/reserver
BINARIES+= server
.endif
@@ -60,16 +76,21 @@ 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}/re${f} ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/re${f} ${PREFIX}/libexec
.endfor
+.if !defined(NOPORTDATA)
${MKDIR} ${DATADIR}
cd ${WRKSRC}/data && ${COPYTREE_SHARE} "." ${DATADIR}/
+.endif
+.if !defined(WITHOUT_CLIENT)
+ ${INSTALL_DATA} ${WRKSRC}/src/redeclipse.ico ${PREFIX}/share/pixmaps/
+.endif
-post-install:
- @${FIND} ${DATADIR} -type f | \
- ${SED} -e 's|^${PREFIX}/||' >> ${TMPPLIST}
- @${FIND} ${DATADIR} -type d | ${SORT} -r | \
- ${SED} -e 's|^${PREFIX}/|@dirrm |' >> ${TMPPLIST}
+#post-install:
+# @${FIND} ${DATADIR} -type f | \
+# ${SED} -e 's|^${PREFIX}/||' >> ${TMPPLIST}
+# @${FIND} ${DATADIR} -type d | ${SORT} -r | \
+# ${SED} -e 's|^${PREFIX}/|@dirrm |' >> ${TMPPLIST}
.include <bsd.port.mk>