[UPDATE] games/q3server-ra3: integrate with "quake3-data", rename to "quake3-ra3", update to 1.76

Changes:
	* Update to version 1.76.
	* Rename to "quake3-ra3" (also rename port directory).
	* Integrate with "quake3-data".

PR:		ports/86190
Submitted by:	Alejandro Pulver <alejandro@varnet.biz>
Approved by:	maintainer timeout
This commit is contained in:
Edwin Groothuis 2005-11-22 06:23:44 +00:00
parent 37be2d027c
commit 925034e34a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=149006
4 changed files with 60 additions and 123 deletions

View File

@ -5,96 +5,31 @@
# $FreeBSD$
#
PORTNAME?= ra3
PORTVERSION?= 1.65
CATEGORIES= games linux
MASTER_SITES?= http://gamefiles.blueyonder.co.uk/blueyondergames/quake3arena/modifications/rocketarena/patches/linux/ \
http://mir2.ovh.net/ftp.planetquake3.net/modifications/rocketarena3/
PKGNAMEPREFIX= q3server-
.ifndef(DISTNAME)
DISTFILES?= ${PORTNAME}${PORTVERSION:S/.//}cl.zip \
${PORTNAME}${PORTVERSION:S/.//}sv.zip
.endif
PORTNAME= ra3
PORTVERSION= 1.76
CATEGORIES= games
MASTER_SITES= ftp.clanbase.com/pub/ \
ftp.mirrors.degnet.de/pub/misc/PlanetQuake3.net/modifications/rocketarena3/
DISTNAME= ${PORTNAME}${PORTVERSION:S/.//}
MAINTAINER?= pat@FreeBSD.org
COMMENT?= Quake III Arena Mod: Rocket Arena 3 for Linux
MAINTAINER= pat@FreeBSD.org
COMMENT= Quake III Arena Mod: Rocket Arena 3
RUN_DEPENDS= ${LOCALBASE}/games/quake3/q3ded:${Q3SERVER_PORT}
ONLY_FOR_ARCHS= i386
USE_LINUX= yes
USE_PERL5= yes
NO_CDROM= "Size; the data set is much too big"
NO_BUILD= yes
.if (${PORTNAME}==ra3)
WRKSRC= ${WRKDIR}/arena
.endif
.ifndef(DONT_USE_ZIP)
USE_ZIP= yes
.endif
.if defined(HAS_WIERDPATCHES)
EXTRACT_ONLY?= ${PORTNAME}${PORTVERSION:S/.//}cl.zip
.endif
.ifndef(NO_WRKSUBDIR)
Q3SUBDIR?= ${WRKSRC:T}
WRKSRC?= ${WRKDIR}/${PORTNAME}
.else
Q3SUBDIR?= ${PORTNAME}
.endif
NO_BUILD= yes
Q3DIR= games/quake3/${Q3SUBDIR}/
PLIST_SUB+= Q3DIR="${Q3DIR}"
INSTALL_DIR= ${INSTALL} -d -o ${BINOWN} -g ${BINGRP} -m 755
Q3SERVER_PORT= ${.CURDIR}/../q3server
PKGMESSAGE!= cd ${Q3SERVER_PORT} && ${MAKE} -V PKGMESSAGE
.if defined(HAS_WIERDPATCHES) && defined(DISTFILES)
post-extract:
.for files in ${DISTFILES:S/${EXTRACT_ONLY}//}
@cd ${WRKSRC} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} \
${DISTDIR}/${DIST_SUBDIR}/${files}
do-install:
@${MKDIR} ${DATADIR}
.for f in *.cfg *.pk3
@${INSTALL_DATA} ${WRKSRC}/${f} ${DATADIR}
.endfor
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/*.txt ${DOCSDIR}
.endif
pre-patch:
# remove trailing ^M
@${FIND} -E ${WRKSRC} -type f \
-iregex ".*\.(bat|cfg|gam|htm|html|inf|ini|lst|sc|scr|txt|url)" \
-exec ${PERL} -pi -ne 's!\r\n!\n!' {} 1>/dev/null 2>&1 \;
# Parses PLIST
# Contributed by <lioux@FreeBSD.org>
do-install: install-parse-plist install-scripts
install-parse-plist: generate-plist
@${PERL} -e 'open(FHANDLER,"${TMPPLIST}");' \
-e 'open(FDIR,">${WRKDIR}/dirs.sh.tmp");' \
-e 'open(FFILES,">${WRKDIR}/files.sh");' \
-e 'while (!eof(FHANDLER)) {' \
-e 'chop($$file = <FHANDLER>);' \
-e '$$dir = $$file_partial = $$file;' \
-e '$$file_partial =~ s!^${Q3DIR}!!;' \
-e 'print FDIR "${INSTALL_DIR}", \
" ", "\"${PREFIX}/$$dir\"", \
"\n" if $$dir =~ s!(^\@dirrm\s+)!!;' \
-e 'print FFILES "${INSTALL_DATA}", \
" ", "\"${WRKSRC}/$$file_partial\"", \
" ", "\"${PREFIX}/$$file\"", \
"\n" if ($$file !~ m!^\@!);' \
-e '}' \
-e 'close(FFILES);' \
-e 'close(FDIR);' \
-e 'close(FHANDLER);'
install-scripts:
@${INSTALL_DIR} ${PREFIX}/${Q3DIR}
@${SORT} ${WRKDIR}/dirs.sh.tmp > ${WRKDIR}/dirs.sh
@${SH} ${WRKDIR}/dirs.sh
@${SH} ${WRKDIR}/files.sh
post-install:
@${CAT} ${PKGMESSAGE}
.include "${.CURDIR}/../quake3-data/Makefile.include"
.include <bsd.port.mk>

View File

@ -1,4 +1,2 @@
MD5 (ra3165cl.zip) = e06b9e61ce1f64a6cd41e89577ac4671
SIZE (ra3165cl.zip) = 106817308
MD5 (ra3165sv.zip) = d85281d1ca468e61fd2ae35ddc58dce9
SIZE (ra3165sv.zip) = 388538
MD5 (ra3176.zip) = a055f7608e49b4ebddaed09d2f89d58d
SIZE (ra3176.zip) = 138018848

View File

@ -1,6 +1,7 @@
This package contains all of the items you'll need to run a
Quake III Arena dedicated server with Rocket Arena 3 mod
under FreeBSD with Linux emulation.
Rocket Arena matches are played in "arenas." Each map may have one or more
arenas in it. When you connect to a server, you need select an arena and then
either create or join a team. Once you are in the arena you will be put in
line to fight.
WWW: http://www.planetquake.com/arena/

View File

@ -1,33 +1,36 @@
%%Q3DIR%%arena.cfg
%%Q3DIR%%browser.pk3
%%Q3DIR%%gfx.pk3
%%Q3DIR%%icons.pk3
%%Q3DIR%%menu.pk3
%%Q3DIR%%qagamei386.so
%%Q3DIR%%qagamex86.dll
%%Q3DIR%%ra3_server.bat
%%Q3DIR%%ra3_server.sh
%%Q3DIR%%ra3map1.pk3
%%Q3DIR%%ra3map10.pk3
%%Q3DIR%%ra3map11.pk3
%%Q3DIR%%ra3map12.pk3
%%Q3DIR%%ra3map13.pk3
%%Q3DIR%%ra3map14.pk3
%%Q3DIR%%ra3map15.pk3
%%Q3DIR%%ra3map16.pk3
%%Q3DIR%%ra3map2.pk3
%%Q3DIR%%ra3map3.pk3
%%Q3DIR%%ra3map4.pk3
%%Q3DIR%%ra3map5.pk3
%%Q3DIR%%ra3map6.pk3
%%Q3DIR%%ra3map7.pk3
%%Q3DIR%%ra3map8.pk3
%%Q3DIR%%ra3map9.pk3
%%PORTDOCS%%%%Q3DIR%%readme.txt
%%PORTDOCS%%%%Q3DIR%%readsrv.txt
%%Q3DIR%%scripts.pk3
%%Q3DIR%%server.cfg
%%Q3DIR%%sounds.pk3
%%Q3DIR%%textures.pk3
%%Q3DIR%%vm.pk3
@unexec rmdir %D/%%Q3DIR%% 2>/dev/null || echo "If you are permanently removing this port, you should do a ``rm -Rf ${PKG_PREFIX}/%%Q3DIR%%`` to remove any configuration files left" | fmt
%%PORTDOCS%%%%DOCSDIR%%/readme.txt
%%PORTDOCS%%%%DOCSDIR%%/readsrv.txt
%%DATADIR%%/arena.cfg
%%DATADIR%%/browser.pk3
%%DATADIR%%/gfx.pk3
%%DATADIR%%/icons.pk3
%%DATADIR%%/menu.pk3
%%DATADIR%%/models.pk3
%%DATADIR%%/pb_cvars.cfg
%%DATADIR%%/ra3map1.pk3
%%DATADIR%%/ra3map10.pk3
%%DATADIR%%/ra3map11.pk3
%%DATADIR%%/ra3map12.pk3
%%DATADIR%%/ra3map13.pk3
%%DATADIR%%/ra3map14.pk3
%%DATADIR%%/ra3map15.pk3
%%DATADIR%%/ra3map16.pk3
%%DATADIR%%/ra3map17.pk3
%%DATADIR%%/ra3map18.pk3
%%DATADIR%%/ra3map19.pk3
%%DATADIR%%/ra3map2.pk3
%%DATADIR%%/ra3map20.pk3
%%DATADIR%%/ra3map3.pk3
%%DATADIR%%/ra3map4.pk3
%%DATADIR%%/ra3map5.pk3
%%DATADIR%%/ra3map6.pk3
%%DATADIR%%/ra3map7.pk3
%%DATADIR%%/ra3map8.pk3
%%DATADIR%%/ra3map9.pk3
%%DATADIR%%/scripts.pk3
%%DATADIR%%/server.cfg
%%DATADIR%%/sounds.pk3
%%DATADIR%%/textures.pk3
%%DATADIR%%/vm.pk3
@dirrm %%DATADIR%%
%%PORTDOCS%%@dirrm %%DOCSDIR%%