# Created by: alepulver # $FreeBSD: head/games/urbanterror-data/Makefile 414032 2016-04-25 22:43:23Z kami $ PORTNAME= data PORTVERSION= 4.2.023 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= kami@freebsd.org 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 OPTIONS_SUB= yes UTDOCS= readme${URT_VER}.txt \ How_To_Install.txt \ QIIIA_Game_Source_License.doc .include 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} ${MV} ${UTDOCS:C!^!${STAGEDIR}${DATADIR}/q3ut4/!} ${STAGEDIR}${DOCSDIR}/ .else ${RM} ${UTDOCS:C!^!${STAGEDIR}${DATADIR}/q3ut4/!} .endif .include