summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoracm <acm@FreeBSD.org>2016-12-14 04:48:47 +0000
committeracm <acm@FreeBSD.org>2016-12-14 04:48:47 +0000
commit882286f0d29ef6d5d0c15d22cbd7a7273db30db3 (patch)
tree4b7ab4760755d188cf7c9daca7dd91832b0b6324
parent6f2e7e13e30e1399d47dd6ffd8793e9aaae3166c (diff)
downloadFreeBSD-ports-882286f0d29ef6d5d0c15d22cbd7a7273db30db3.zip
FreeBSD-ports-882286f0d29ef6d5d0c15d22cbd7a7273db30db3.tar.gz
- Re-add games/alienarena and games/alienarena-data ports
-rw-r--r--games/Makefile2
-rw-r--r--games/alienarena-data/Makefile58
-rw-r--r--games/alienarena-data/distinfo2
-rw-r--r--games/alienarena-data/pkg-descr15
-rw-r--r--games/alienarena/Makefile107
-rw-r--r--games/alienarena/distinfo2
-rw-r--r--games/alienarena/files/pkg-message.in17
-rw-r--r--games/alienarena/pkg-descr11
-rw-r--r--games/alienarena/pkg-plist24
9 files changed, 238 insertions, 0 deletions
diff --git a/games/Makefile b/games/Makefile
index b1c08c0..ca526bf 100644
--- a/games/Makefile
+++ b/games/Makefile
@@ -32,6 +32,8 @@
SUBDIR += alephone-data
SUBDIR += alephone-scenarios
SUBDIR += alex4
+ SUBDIR += alienarena
+ SUBDIR += alienarena-data
SUBDIR += alienblaster
SUBDIR += alienwave
SUBDIR += allacrost
diff --git a/games/alienarena-data/Makefile b/games/alienarena-data/Makefile
new file mode 100644
index 0000000..b91f430
--- /dev/null
+++ b/games/alienarena-data/Makefile
@@ -0,0 +1,58 @@
+# Created by: alepulver
+# $FreeBSD$
+
+PORTNAME= alienarena
+PORTVERSION= 2013.766
+CATEGORIES= games
+MASTER_SITES= ftp://ftp.linux.kiev.ua/pub/Linux/Gentoo/distfiles/ \
+ http://ftp.jeuxlinux.fr/files/ \
+ http://mirror.ipgn.com.au/games/alienarena/ \
+ http://gd.tuwien.ac.at/opsys/linux/gentoo/distfiles/ \
+ http://offload2.icculus.org:9090/alienarena/Files/ \
+ http://offload1.icculus.org:9090/alienarena/Files/ \
+ http://icculus.org/alienarena/Files/ \
+ http://red.planetarena.org/files/ \
+ ${MASTER_SITE_GENTOO:S|$|distfiles/|}
+PKGNAMESUFFIX= -data
+DISTNAME= ${PORTNAME}-7.66-linux20130827
+
+MAINTAINER= acm@FreeBSD.org
+COMMENT= Alien Arena (data)
+
+LICENSE= AlienArena-Data
+LICENSE_NAME= Freely redistributable as a whole
+LICENSE_FILE= ${WRKSRC}/docs/license.txt
+LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
+# See also http://red.planetarena.org/forum/showthread.php?tid=716 where fedora asked for clarification
+
+NO_BUILD= yes
+PLIST= ${WRKDIR}/pkg-plist
+WRKSRC= ${WRKDIR}/${PORTNAME}-7.66
+
+OPTIONS_DEFINE= DOCS
+
+pre-install:
+ @${RM} -f ${PLIST}
+
+. for DIRE in arena botinfo data1
+ @cd ${WRKSRC} && \
+ ${FIND} ${DIRE} -type f | ${SORT} | ${SED} -e 's|^|%%DATADIR%%/|' >> ${PLIST} && \
+ ${FIND} ${DIRE} -type d | ${SORT} -r | ${SED} -e 's|^|@dirrm %%DATADIR%%/|' >> ${PLIST}
+. endfor
+
+ @${ECHO_CMD} share/pixmaps/${PORTNAME}.png >> ${PLIST}
+ @${ECHO_CMD} "@dirrmtry %%DATADIR%%" >> ${PLIST}
+
+ @cd ${WRKSRC}/docs && \
+ ${FIND} * -type f | ${SORT} | ${SED} -e 's|^|%%PORTDOCS%%%%DOCSDIR%%/|' >> ${PLIST} && \
+ ${FIND} * -type d | ${SORT} -r | ${SED} -e 's|^|%%PORTDOCS%%@dirrm %%DOCSDIR%%/|' >> ${PLIST}
+ @${ECHO_CMD} "%%PORTDOCS%%@dirrmtry %%DOCSDIR%%" >> ${PLIST}
+
+do-install:
+ cd ${WRKSRC} && ${COPYTREE_SHARE} "arena botinfo data1" ${STAGEDIR}${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.png \
+ ${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/docs/* ${STAGEDIR}${DOCSDIR}
+
+.include <bsd.port.mk>
diff --git a/games/alienarena-data/distinfo b/games/alienarena-data/distinfo
new file mode 100644
index 0000000..403ec65
--- /dev/null
+++ b/games/alienarena-data/distinfo
@@ -0,0 +1,2 @@
+SHA256 (alienarena-7.66-linux20130827.tar.gz) = 29086098eacb18319e6dcc9156355c44db4b1aa8a4f7b0bb63e6856d8128b012
+SIZE (alienarena-7.66-linux20130827.tar.gz) = 617636649
diff --git a/games/alienarena-data/pkg-descr b/games/alienarena-data/pkg-descr
new file mode 100644
index 0000000..3db04ad
--- /dev/null
+++ b/games/alienarena-data/pkg-descr
@@ -0,0 +1,15 @@
+Alien Arena 2008 is a free standalone deathmatch game based on source code
+released by id Software. Begun by COR Entertainment in 2004, the game combines
+a 1950s-era sci-fi atmosphere with gameplay similar to the Quake, Doom, and
+Unreal Tournament series. Alien Arena focuses mainly on online multiplayer
+action, although it does contain single player campaigns against bots.
+
+Alien Arena has been released for Microsoft Windows, Linux and FreeBSD. Alien
+Arena has been free-to-play since its inception, and there are currently no
+plans to change it to pay-to-play.
+
+Note: this port only contains the data needed to run Alien Arena, shared by
+the Linux and native ports of the game engine. To play Alien Arena you have to
+install one of "games/alienarena" or "games/linux-alienarena".
+
+WWW: http://red.planetarena.org/
diff --git a/games/alienarena/Makefile b/games/alienarena/Makefile
new file mode 100644
index 0000000..9f07ca5
--- /dev/null
+++ b/games/alienarena/Makefile
@@ -0,0 +1,107 @@
+# Created by: alepulver
+# $FreeBSD$
+
+PORTNAME= alienarena
+PORTVERSION= 2013.766
+PORTREVISION= 1
+CATEGORIES= games
+MASTER_SITES= SF/alienarena.mirror/Alien%20Arena%207.66/ \
+ http://icculus.org/alienarena/Files/ \
+ http://red.planetarena.org/files/ \
+ ${MASTER_SITE_GENTOO:S|$|distfiles/|}
+DISTNAME= ${PORTNAME}-7.66-linux20130827
+
+MAINTAINER= acm@FreeBSD.org
+COMMENT= Alien Arena (native version)
+
+RUN_DEPENDS= ${DATADIR}/data1/default.cfg:${PORTSDIR}/games/alienarena-data
+
+USES= compiler:c++11-lib dos2unix gmake
+USE_CXXSTD= c++11
+GNU_CONFIGURE= yes
+CONFIGURE_WRKSRC=${WRKDIR}/${PORTNAME}-7.66/
+CPPFLAGS+= -I${LOCALBASE}/include
+LIBS+= -L${LOCALBASE}/lib
+CONFIGURE_ARGS+=--with-xf86vm \
+ --with-xf86dga \
+ --with-system-libode
+
+EXTRACT_AFTER_ARGS= --exclude "data1"
+
+MAKE_ENV= WITH_DATADIR=yes WITH_LIBDIR=yes \
+ DATADIR="${DATADIR}" LIBDIR="${LIBDIR}"
+WRKSRC= ${WRKDIR}/${PORTNAME}-7.66/source
+
+SUB_FILES= pkg-message
+
+OPTIONS_MULTI= FLAVOR
+OPTIONS_MULTI_FLAVOR= CLIENT DEDICATED
+CLIENT_DESC= Build client
+DEDICATED_DESC= Build dedicated server
+
+OPTIONS_DEFAULT= CLIENT DEDICATED
+
+PLIST_SUB= LIBDIR=${LIBDIR:S/${PREFIX}\///}
+
+LIBDIR= ${PREFIX}/lib/${PORTNAME}
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MCLIENT}
+USES+= openal:soft,alut pkgconfig
+LIB_DEPENDS+= libcurl.so:${PORTSDIR}/ftp/curl \
+ libfreetype.so:${PORTSDIR}/print/freetype2 \
+ libjpeg.so:${PORTSDIR}/graphics/jpeg \
+ libpng16.so:${PORTSDIR}/graphics/png \
+ libvorbis.so:${PORTSDIR}/audio/libvorbis
+BUILD_DEPENDS+= ${LOCALBASE}/lib/libode.a:devel/ode
+USE_GL= yes
+USE_XORG= xxf86dga xxf86vm
+.endif
+
+.if ! ${PORT_OPTIONS:MCLIENT} && ${PORT_OPTIONS:MDEDICATED}
+CONFIGURE_ARGS+=--disable-client
+.endif
+
+.if ${PORT_OPTIONS:MCLIENT}
+PLIST_SUB+= CLIENT=""
+.else
+PLIST_SUB+= CLIENT="@comment "
+.endif
+
+.if ${PORT_OPTIONS:MDEDICATED}
+PLIST_SUB+= DEDICATED=""
+.else
+PLIST_SUB+= DEDICATED="@comment "
+.endif
+
+post-patch:
+ @${REINPLACE_CMD} -e "s|(CCLD)|(CXX)|g" ${WRKSRC}/Makefile.in
+ @${REINPLACE_CMD} -e "s|malloc.h|stdlib.h|g" ${WRKSRC}/client/snd_openal.c
+ @${REINPLACE_CMD} -e "s|.codered|.config/alienarena|g" ${WRKSRC}/qcommon/qcommon.h
+# Resolve name collision with jpeg-8
+ ${REINPLACE_CMD} -e 's|jpeg_mem_src|local_jpeg_mem_src|' \
+ ${WRKSRC}/ref_gl/r_image.c
+ ${REINPLACE_CMD} -e 's|inline void IQM_DrawVBO|void IQM_DrawVBO|' \
+ ${WRKSRC}/ref_gl/r_iqm.c
+
+do-install:
+ ${MKDIR} ${STAGEDIR}${LIBDIR}/arena ${STAGEDIR}${LIBDIR}/data1
+ ${LN} -s ${DATADIR}/arena/* ${STAGEDIR}${LIBDIR}/arena
+ ${LN} -s ${DATADIR}/botinfo ${STAGEDIR}${LIBDIR}
+ ${LN} -s ${DATADIR}/data1/* ${STAGEDIR}${LIBDIR}/data1
+.if ${PORT_OPTIONS:MCLIENT}
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} \
+ ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
+.endif
+.if ${PORT_OPTIONS:MDEDICATED}
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME}-ded \
+ ${STAGEDIR}${PREFIX}/bin/${PORTNAME}-ded
+.endif
+
+post-install:
+ @${ECHO_CMD}
+ @${CAT} ${PKGMESSAGE}
+ @${ECHO_CMD}
+
+.include <bsd.port.mk>
diff --git a/games/alienarena/distinfo b/games/alienarena/distinfo
new file mode 100644
index 0000000..403ec65
--- /dev/null
+++ b/games/alienarena/distinfo
@@ -0,0 +1,2 @@
+SHA256 (alienarena-7.66-linux20130827.tar.gz) = 29086098eacb18319e6dcc9156355c44db4b1aa8a4f7b0bb63e6856d8128b012
+SIZE (alienarena-7.66-linux20130827.tar.gz) = 617636649
diff --git a/games/alienarena/files/pkg-message.in b/games/alienarena/files/pkg-message.in
new file mode 100644
index 0000000..dc602b7
--- /dev/null
+++ b/games/alienarena/files/pkg-message.in
@@ -0,0 +1,17 @@
+###############################################################################
+
+Alien Arena (native version) has been installed.
+
+1) The OSS (native FreeBSD sound) version of Alien Arena 2011 (named
+"alienarena") uses by default a slow sound speed, which causes a notable
+delay. To solve this you have to run it once like this:
+
+$ alienarena +set sndspeed <speed>
+
+Where <speed> could be 22050 and 44100 for example (the default that has the
+delay is 11025, and the SDL version uses 22050). The value of "sndspeed" will
+be saved in the configuration file for future runs.
+
+2) Enjoy it :)
+
+###############################################################################
diff --git a/games/alienarena/pkg-descr b/games/alienarena/pkg-descr
new file mode 100644
index 0000000..e47afdc
--- /dev/null
+++ b/games/alienarena/pkg-descr
@@ -0,0 +1,11 @@
+Alien Arena 2008 is a free standalone deathmatch game based on source code
+released by id Software. Begun by COR Entertainment in 2004, the game combines
+a 1950s-era sci-fi atmosphere with gameplay similar to the Quake, Doom, and
+Unreal Tournament series. Alien Arena focuses mainly on online multiplayer
+action, although it does contain single player campaigns against bots.
+
+Alien Arena has been released for Microsoft Windows, Linux and FreeBSD. Alien
+Arena has been free-to-play since its inception, and there are currently no
+plans to change it to pay-to-play.
+
+WWW: http://red.planetarena.org/
diff --git a/games/alienarena/pkg-plist b/games/alienarena/pkg-plist
new file mode 100644
index 0000000..238fadd
--- /dev/null
+++ b/games/alienarena/pkg-plist
@@ -0,0 +1,24 @@
+%%CLIENT%%bin/alienarena
+%%DEDICATED%%bin/alienarena-ded
+%%LIBDIR%%/arena/motd.txt
+%%LIBDIR%%/arena/server.cfg
+%%LIBDIR%%/botinfo
+%%LIBDIR%%/data1/default.cfg
+%%LIBDIR%%/data1/env
+%%LIBDIR%%/data1/fonts
+%%LIBDIR%%/data1/gfx
+%%LIBDIR%%/data1/graphical_presets
+%%LIBDIR%%/data1/levelshots
+%%LIBDIR%%/data1/maps
+%%LIBDIR%%/data1/maps.lst
+%%LIBDIR%%/data1/models
+%%LIBDIR%%/data1/particles
+%%LIBDIR%%/data1/pics
+%%LIBDIR%%/data1/players
+%%LIBDIR%%/data1/scripts
+%%LIBDIR%%/data1/sound
+%%LIBDIR%%/data1/textures
+%%LIBDIR%%/data1/vehicles
+@dirrm %%LIBDIR%%/data1
+@dirrm %%LIBDIR%%/arena
+@dirrm %%LIBDIR%%
OpenPOWER on IntegriCloud