freebsd-ports/games/urbanterror-data/Makefile
John Marino 4a5c97cd51 games: ioquak3* iourbanterror* openarena*: Update and stage support
The patch applied without incident.  Tested on DragonFly poudriere,
everything built fine.  It include an i386 fix, which is why the
previous commit was reverted.

The only modification was to change EXTRACT_CMD to TAR in a couple
of places.

PR:		ports/187859
submitted by;	maintainer (Dominic Fandrey)
2014-06-01 15:28:29 +00:00

51 lines
1.4 KiB
Makefile

# Created by: alepulver
# $FreeBSD$
PORTNAME= data
PORTVERSION= 4.2.018
CATEGORIES= games
MASTER_SITES= http://cdn.urbanterror.info/urt/42/zips/ \
http://www.f1m.fr/uploads/urt/ \
http://mirror.urtstats.net/urbanterror/
PKGNAMEPREFIX= urbanterror-
DISTNAME= UrbanTerror${URT_VER}_full${URT_REV}
EXTRACT_SUFX= .zip
EXTRACT_ONLY=
MAINTAINER= kamikaze@bsdforen.de
COMMENT= Standalone realism based mod originally for Quake III Arena
NO_BUILD= yes
NO_CDROM= The mod files may not be sold or distributed on physical media unless with permission from id Software.
DATADIR= ${PREFIX}/share/quake3
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
URT_VER= ${PORTVERSION:C/([0-9]+).([0-9]+).*/\1\2/}
URT_REV= ${PORTVERSION:C/([0-9]+\.[0-9]+).*\.([0-9]+)/\2/}
PLIST_SUB+= VER=${URT_VER}
OPTIONS_DEFINE= DOCS
UTDOCS= readme${URT_VER}.txt \
How_To_Install.txt \
QIIIA_Game_Source_License.doc
.include <bsd.port.options.mk>
do-install:
${MKDIR} ${STAGEDIR}${DATADIR}/q3ut4
${TAR} ${EXTRACT_BEFORE_ARGS} ${DISTDIR}/${DISTFILES} \
${EXTRACT_AFTER_ARGS} -C ${STAGEDIR}${DATADIR} --strip-components 1 \
UrbanTerror${URT_VER}/q3ut4
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${STAGEDIR}${DOCSDIR}
.for utdoc in ${UTDOCS}
${MV} ${STAGEDIR}${DATADIR}/q3ut4/${utdoc} ${STAGEDIR}${DOCSDIR}
.endfor
.else
${RM} ${STAGEDIR}${DATADIR}/q3ut4/readme${URT_VER}.txt
.endif
.include <bsd.port.mk>