blob: 81ffed88226ab72073ed3f3d3cf3e137724e08bd (
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
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
|
# New ports collection makefile for: Quake 3 Arena Dedicated Server
# Date created: Sun Jun 3 00:52:38 EDT 2001
# Whom: pat@databits.net
#
# $FreeBSD$
#
PORTNAME= quake3
PORTVERSION= 1.32c
CATEGORIES= games linux
MASTER_SITES= ${MASTER_SITE_IDSOFTWARE:S|$|quake3/linux/:data|} \
${MASTER_SITE_IDSOFTWARE:S|$|quake3/:patch|}
PKGNAMEPREFIX= linux-
DISTFILES= ${Q3DATAFILE}:data \
${Q3PATCHFILE}:patch
DIST_SUBDIR= ${Q3PKGNAMEPREFIX}data
MAINTAINER= alepulver@FreeBSD.org
COMMENT= Quake III Arena for Linux
IA32_BINARY_PORT= yes
USE_ZIP= yes
USE_LINUX= yes
NO_WRKSUBDIR= yes
OPTIONS= CLIENT "Install client" on \
DEDICATED "Install dedicated server" on \
PUNKBUSTER "Install PunkBuster" on \
SMP "Install SMP (threaded) client" on
PLIST_SUB+= LIBDIR="${LIBDIR:S/${PREFIX}\///}"
LATEST_LINK= ${PKGNAMEPREFIX}${PORTNAME}
LIBDIR= ${PREFIX}/libexec/${PKGNAMEPREFIX}${PORTNAME}
Q3DATAFILE= linuxq3apoint-1.32b-3.x86.run
Q3PATCHFILE= quake3-${PORTVERSION}.zip
do-extract:
@${MKDIR} ${WRKDIR}
@cd ${WRKDIR} && ${TAIL} +356 ${_DISTDIR}/${Q3DATAFILE} | \
${TAR} zxf -
@${UNZIP_CMD} -qo ${_DISTDIR}/${Q3PATCHFILE} -d ${WRKDIR}
post-extract:
.for f in q3ded quake3.x86 quake3-smp.x86
@${MV} "${WRKSRC}/Quake III Arena 1.32c/linux/${f}" \
${WRKSRC}/bin/Linux/x86/${f}
.endfor
.include "${.CURDIR}/../quake3-data/Makefile.include"
.include <bsd.port.pre.mk>
.if defined(WITHOUT_CLIENT) && defined(WITHOUT_DEDICATED) && \
defined(WITHOUT_SMP)
IGNORE= needs at least one of the CLIENT, DEDICATED and SMP options
.endif
.if !defined(WITHOUT_DEDICATED)
PROGS+= q3ded
PLIST_SUB+= DEDICATED=""
.else
PLIST_SUB+= DEDICATED="@comment "
.endif
.if !defined(WITHOUT_CLIENT)
PROGS+= quake3.x86
PLIST_SUB+= CLIENT=""
.else
PLIST_SUB+= CLIENT="@comment "
.endif
.if !defined(WITHOUT_PUNKBUSTER)
PLIST_SUB+= PUNKBUSTER=""
.else
PLIST_SUB+= PUNKBUSTER="@comment "
.endif
.if !defined(WITHOUT_SMP)
PROGS+= quake3-smp.x86
PLIST_SUB+= SMP=""
.else
PLIST_SUB+= SMP="@comment "
.endif
do-build:
.for f in ${PROGS}
@(${ECHO_CMD} "#!${SH}"; \
${ECHO_CMD} "cd ${DATADIR} || exit 1"; \
${ECHO_CMD} "exec ${LIBDIR}/${f:R} \"$$@\"") > ${WRKDIR}/${f:R}
.endfor
do-install:
@${MKDIR} ${LIBDIR}
.for f in ${PROGS}
@${INSTALL_PROGRAM} ${WRKSRC}/bin/Linux/x86/${f} ${LIBDIR}/${f:R}
@${INSTALL_SCRIPT} ${WRKDIR}/${f:R} ${PREFIX}/bin/linux-${f:R}
.endfor
.if !defined(WITHOUT_PUNKBUSTER)
@${CP} -Rp ${WRKSRC}/pb ${DATADIR}
@${RM} ${DATADIR}/pb/PB_EULA.txt
.endif
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/README-linux.txt ${DOCSDIR}
@${CP} -Rp ${WRKSRC}/Docs/LinuxFAQ ${DOCSDIR}
. if !defined(WITHOUT_PUNKBUSTER)
@${CP} -Rp ${WRKSRC}/Docs/PunkBuster ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/pb/PB_EULA.txt ${DOCSDIR}/PunkBuster
. endif
.endif
.include <bsd.port.post.mk>
|