blob: 24b9abdefe07606a415dbaac074046c3bc583765 (
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
|
# New ports collection makefile for: quake3
# Date created: 23 August 2005
# Whom: pypt
#
# $FreeBSD$
#
PORTNAME= quake3
PORTVERSION= 1.32b
PORTREVISION= 4
CATEGORIES= games
MASTER_SITES= ftp://ftp.idsoftware.com/idstuff/source/ \
http://www.proarena.com/p/ftpx/x8524/quake_3_arena/ \
http://www.planetgargoyle.com/ \
http://www.teamdarkside.net/ \
http://0day.icculus.org/mirrors/quake3/ \
http://www.olpainless.net/files/
DISTFILES= ${DISTNAME}-source${EXTRACT_SUFX}
MAINTAINER= shirshegsm@gmail.com
COMMENT= Quake III Arena -- first person shooter (native build)
BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm
USE_ZIP= yes
USE_GMAKE= yes
USE_REINPLACE= yes
USE_PERL5_BUILD=yes
USE_GL= yes
USE_GCC= 3.2+
PLIST_FILES= bin/q3ded bin/quake3
.include <bsd.port.pre.mk>
# Anyone to play with this on IA64?
.if ${ARCH} == "ia64"
BROKEN= "Does not compile on IA64 (feel free to submit fixes)"
.endif
.if ${PERL_LEVEL} < 500600
BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5
.endif
post-patch:
@${REINPLACE_CMD} -e 's|%%Q3DIR%%|"${Q3DIR}"|' \
${WRKSRC}/code/unix/unix_shared.c
pre-build:
${MKDIR} ${WRKSRC}/lcc/build
do-build:
cd ${WRKSRC}/code && ${MAKE_ENV} ${PERL} unix/cons
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/code/install/linuxq3ded \
${PREFIX}/bin/q3ded
${INSTALL_PROGRAM} ${WRKSRC}/code/install/linuxquake3 \
${PREFIX}/bin/quake3
.include "${.CURDIR}/../quake3-data/Makefile.include"
.include <bsd.port.post.mk>
|