aboutsummaryrefslogtreecommitdiff
path: root/games/quake3-data/Makefile
blob: c258cf3d1352ca22f3a08aac45ab5279989e994c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# New ports collection makefile for:	Quake 3 paks
# Date created:				1st March 2003
# Whom:					nik@FreeBSD.org
#
# $FreeBSD$
#

PORTNAME=	data
DISTVERSION=	1.32b-3
CATEGORIES=	games
MASTER_SITES=	${MASTER_SITE_IDSOFTWARE}
MASTER_SITE_SUBDIR=	quake3/linux
PKGNAMEPREFIX=	${Q3PKGNAMEPREFIX}
DISTNAME=	linuxq3apoint-${DISTVERSION}.x86
EXTRACT_SUFX=	.run

MAINTAINER=	alepulver@FreeBSD.org
COMMENT=	Quake III Arena data files

NO_BUILD=	yes
NO_WRKSUBDIR=	yes

OPTIONS=	TEAMARENA "Install Quake III Team Arena data files" on

DATADIR=	${Q3DIR}

SUB_FILES=	pkg-message
PKGMESSAGE=	${WRKDIR}/pkg-message

do-extract:
	@${RM} -rf ${WRKDIR}
	@${MKDIR} ${WRKDIR}
	@cd ${WRKDIR} && ${TAIL} +356 ${_DISTDIR}/${DISTNAME}${EXTRACT_SUFX} | \
		${TAR} zxf - >/dev/null

.include "Makefile.include"

.include <bsd.port.pre.mk>

.if defined(WITH_TEAMARENA)
PLIST_SUB+=	TEAMARENA=""
.else
PLIST_SUB+=	TEAMARENA="@comment "
.endif

do-install:
	@${MKDIR} ${DATADIR}
	@${CP} -R ${WRKSRC}/baseq3 ${DATADIR}
	@${MKDIR} ${PREFIX}/share/pixmaps
	@${INSTALL_DATA} ${WRKSRC}/quake3.xpm ${PREFIX}/share/pixmaps
.if defined(WITH_TEAMARENA)
	@${CP} -R ${WRKSRC}/missionpack ${DATADIR}
.endif

post-install:
	@${ECHO_CMD}
	@${CAT} ${PKGMESSAGE}
	@${ECHO_CMD}

.include <bsd.port.post.mk>