blob: 5b171083ed578b6be365b994f7770eb15d22f1f2 (
plain)
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
|
# New ports collection makefile for: quake2-data
# Date created: 28 Sep 2005
# Whom: Alejandro Pulver <alejandro@varnet.biz>
#
# $FreeBSD$
#
PORTNAME= data
PORTVERSION= 3.20
PORTREVISION= 2
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_IDSOFTWARE}
MASTER_SITE_SUBDIR= quake2
PKGNAMEPREFIX= ${Q2PKGNAMEPREFIX}
DISTFILES= ${Q2FULL}
DIST_SUBDIR= ${PKGNAMEPREFIX}${PORTNAME}
MAINTAINER= alepulver@FreeBSD.org
COMMENT= Quake II data files
EXTRACT_DEPENDS=unzip:${PORTSDIR}/archivers/unzip
NO_BUILD= yes
NO_WRKSUBDIR= yes
OPTIONS= CTF "Install the Capture The Flag mod data" on \
SHAREWARE "Install demo version game data" off
DATADIR= ${Q2DIR}
LATEST_LINK= ${PKGNAMEPREFIX}${PORTNAME}
Q2FULL= q2-3.20-x86-full.exe
Q2DEMO= q2-314-demo-x86.exe
Q2CTF= ctf/q2ctf150.zip
.include "Makefile.include"
.include <bsd.port.pre.mk>
.if !defined(WITHOUT_CTF) && !defined(WITH_SHAREWARE)
DISTFILES+= ${Q2CTF}
PLIST_SUB+= CTF=""
.else
PLIST_SUB+= CTF="@comment "
.endif
.if defined(WITH_SHAREWARE)
PLIST_SUB+= FULL="@comment " \
SHAREWARE=""
.else
PLIST_SUB+= FULL="" \
SHAREWARE="@comment "
SUB_FILES= pkg-message
PKGMESSAGE= ${WRKDIR}/pkg-message
.endif
.if defined(WITH_SHAREWARE) || !defined(NOPORTDOCS)
DISTFILES+= ${Q2DEMO}
.endif
do-extract:
@${MKDIR} ${WRKDIR}
@${UNZIP_CMD} -q -d ${WRKDIR} \
${DISTDIR}/${DIST_SUBDIR}/${Q2FULL} \
baseq2/* -x *.dll
.if defined(WITH_SHAREWARE)
@${RM} ${WRKDIR}/baseq2/pak[^0].pak
.endif
.if !defined(WITHOUT_CTF) && !defined(WITH_SHAREWARE)
@${UNZIP_CMD} -aq -d ${WRKDIR}/ctf \
${DISTDIR}/${DIST_SUBDIR}/${Q2CTF} \
-x *.dll *.ico
.endif
.if !defined(NOPORTDOCS)
@${UNZIP_CMD} -ajq -d ${WRKDIR}/DOCS \
${DISTDIR}/${DIST_SUBDIR}/${Q2DEMO} \
Install/Data/DOCS/*
.endif
.if defined(WITH_SHAREWARE)
@${UNZIP_CMD} -jq -d ${WRKDIR}/baseq2 \
${DISTDIR}/${DIST_SUBDIR}/${Q2DEMO} \
Install/Data/baseq2/pak0.pak
.endif
do-install:
@${MKDIR} ${DATADIR}
@${CP} -R ${WRKSRC}/baseq2 ${DATADIR}
.if !defined(WITH_SHAREWARE)
@${MKDIR} ${DATADIR}/rogue ${DATADIR}/xatrix
.endif
.if !defined(WITHOUT_CTF) && !defined(WITH_SHAREWARE)
@${MKDIR} ${DATADIR}/ctf
. for f in *.cfg *.pak
@${INSTALL_DATA} ${WRKSRC}/ctf/${f} ${DATADIR}/ctf
. endfor
.endif
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${CP} -R ${WRKSRC}/DOCS ${DOCSDIR}/manual
. if !defined(WITHOUT_CTF) && !defined(WITH_SHAREWARE)
@${MKDIR} ${DOCSDIR}/ctf
@${INSTALL_DATA} ${WRKSRC}/ctf/*.txt ${DOCSDIR}/ctf
. endif
.endif
post-install:
.if !defined(WITH_SHAREWARE)
@${ECHO_CMD}
@${CAT} ${PKGMESSAGE}
@${ECHO_CMD}
.endif
.include <bsd.port.post.mk>
|