blob: ee3c43f71cdd2962c1ae239b092aa0f6bb59441a (
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
|
# 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
DISTVERSION= 1.32b-3
CATEGORIES= games linux
MASTER_SITES= ftp://ftp.idsoftware.com/idstuff/quake3/linux/ \
http://3dgamers.iinet.net.au/pub/3dgamers/games/quake3arena/
PKGNAMEPREFIX= linux-
DISTNAME= linuxq3apoint-${DISTVERSION}.x86
EXTRACT_SUFX= .run
DIST_SUBDIR= ${Q3PKGNAMEPREFIX}data
MAINTAINER= pat@FreeBSD.org
COMMENT= Quake III Arena for Linux
ONLY_FOR_ARCHS= i386
USE_LINUX= yes
NO_WRKSUBDIR= yes
OPTIONS= CLIENT "Install OpenGL client" on \
PUNKBUSTER "Install PunkBuster" on \
SMP "Install threaded version" on
BINDIR= ${PREFIX}/libexec/${PKGNAMEPREFIX}${PORTNAME}
PLIST_SUB+= BINDIR="${BINDIR:S/${PREFIX}\///}"
LATEST_LINK= ${PKGNAMEPREFIX}${PORTNAME}
do-extract:
@${MKDIR} ${WRKDIR}
@cd ${WRKDIR} && ${TAIL} +356 ${_DISTDIR}/${DISTNAME}${EXTRACT_SUFX} | \
${TAR} zxf -
.include "${.CURDIR}/../quake3-data/Makefile.include"
.include <bsd.port.pre.mk>
PROGS= q3ded
.if defined(WITH_CLIENT)
PROGS+= quake3.x86
PLIST_SUB+= CLIENT=""
.else
PLIST_SUB+= CLIENT="@comment "
.endif
.if defined(WITH_PUNKBUSTER)
PLIST_SUB+= PUNKBUSTER=""
.else
PLIST_SUB+= PUNKBUSTER="@comment "
.endif
.if defined(WITH_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 ${BINDIR}/${f:R} \"$$@\"") > ${WRKDIR}/${f:R}
.endfor
do-install:
@${MKDIR} ${BINDIR}
.for f in ${PROGS}
@${INSTALL_PROGRAM} ${WRKSRC}/bin/Linux/x86/${f} ${BINDIR}/${f:R}
@${INSTALL_SCRIPT} ${WRKDIR}/${f:R} ${PREFIX}/bin/linux-${f:R}
.endfor
.if defined(WITH_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(WITH_PUNKBUSTER)
@${CP} -Rp ${WRKSRC}/Docs/PunkBuster ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/pb/PB_EULA.txt ${DOCSDIR}/PunkBuster
. endif
.endif
.include <bsd.port.post.mk>
|