# New ports collection makefile for:	urbanterror-data
# Date created:				2007-09-10
# Whom:					alepulver
#
# $FreeBSD: ports/games/urbanterror-data/Makefile,v 1.2 2007/09/29 01:56:49 alepulver Exp $
#

PORTNAME=	urbanterror
PORTVERSION=	4.0
CATEGORIES=	games
MASTER_SITES=	http://mirrormaid.yi.org/ \
		http://mrsentry.net/release/ \
		http://outlands.quaddown.org/files/ \
		ftp://ftp.snt.utwente.nl/pub/games/urbanterror/ \
		ftp://ftp.vectranet.pl/pub/gry/UrbanTerror/
PKGNAMESUFFIX=	-data
DISTNAME=	UrbanTerror${PORTVERSION:S/.//}_full

MAINTAINER=	alepulver@FreeBSD.org
COMMENT=	Standalone realism based mod originally for Quake III Arena

USE_ZIP=	yes
NO_BUILD=	yes
NO_PACKAGE=	Package will be 560MB; set FORCE_PACKAGE if you really want it
WRKSRC=		${WRKDIR}/q3ut4

DATADIR=	${Q3DIR}

.include <bsd.port.pre.mk>

Q3DIR!=		cd ${PORTSDIR}/games/quake3-data && ${MAKE} -V Q3DIR

post-extract:
	@cd ${WRKSRC} && ${MV} readme40.txt ..

do-install:
	${MKDIR} ${DATADIR}/q3ut4
	${CP} -r ${WRKSRC}/* ${DATADIR}/q3ut4
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKDIR}/readme40.txt ${DOCSDIR}
.endif

.include <bsd.port.post.mk>
