1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00

- Re-add games/alienarena and games/alienarena-data ports

This commit is contained in:
Jose Alonso Cardenas Marquez 2016-12-14 04:48:47 +00:00
parent 8d7993e557
commit 371c124a82
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=428545
9 changed files with 238 additions and 0 deletions

View File

@ -32,6 +32,8 @@
SUBDIR += alephone-data
SUBDIR += alephone-scenarios
SUBDIR += alex4
SUBDIR += alienarena
SUBDIR += alienarena-data
SUBDIR += alienblaster
SUBDIR += alienwave
SUBDIR += allacrost

View File

@ -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>

View File

@ -0,0 +1,2 @@
SHA256 (alienarena-7.66-linux20130827.tar.gz) = 29086098eacb18319e6dcc9156355c44db4b1aa8a4f7b0bb63e6856d8128b012
SIZE (alienarena-7.66-linux20130827.tar.gz) = 617636649

View File

@ -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/

107
games/alienarena/Makefile Normal file
View File

@ -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>

View File

@ -0,0 +1,2 @@
SHA256 (alienarena-7.66-linux20130827.tar.gz) = 29086098eacb18319e6dcc9156355c44db4b1aa8a4f7b0bb63e6856d8128b012
SIZE (alienarena-7.66-linux20130827.tar.gz) = 617636649

View File

@ -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 :)
###############################################################################

View File

@ -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/

View File

@ -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%%