Lines 8-66
Link Here
|
8 |
PORTNAME= quake3 |
8 |
PORTNAME= quake3 |
9 |
PORTVERSION= 1.32b |
9 |
PORTVERSION= 1.32b |
10 |
CATEGORIES= games |
10 |
CATEGORIES= games |
11 |
MASTER_SITES= ftp://ftp.idsoftware.com/idstuff/source/ |
11 |
MASTER_SITES= ftp://ftp.idsoftware.com/idstuff/source/ \ |
12 |
EXTRACT_SUFX= -source.zip |
12 |
ftp://ftp.fasta.fh-dortmund.de/mirror/idstuff/source/ |
13 |
EXTRACT_ONLY= |
13 |
DISTFILES= ${DISTNAME}-source${EXTRACT_SUFX} |
14 |
|
14 |
|
15 |
MAINTAINER= shirshegsm@gmail.com |
15 |
MAINTAINER= shirshegsm@gmail.com |
16 |
COMMENT= Quake III Arena -- first person shooter (native build) |
16 |
COMMENT= Quake III Arena -- first person shooter (native build) |
17 |
|
17 |
|
18 |
EXTRACT_DEPENDS= unzip:${PORTSDIR}/archivers/unzip |
18 |
BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm |
19 |
BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm |
|
|
20 |
|
19 |
|
21 |
USE_GMAKE= yes |
20 |
USE_ZIP= yes |
22 |
USE_PERL5_BUILD= yes |
21 |
USE_GMAKE= yes |
23 |
USE_GL= yes |
22 |
USE_REINPLACE= yes |
24 |
USE_REINPLACE= yes |
23 |
USE_PERL5_BUILD=yes |
25 |
CONFLICTS= q3server-1.32* |
24 |
USE_GL= yes |
26 |
|
25 |
|
27 |
# We need that -a flag |
26 |
PLIST_FILES= bin/q3ded bin/quake3 |
28 |
do-extract: |
|
|
29 |
${MKDIR} ${WRKDIR} && \ |
30 |
cd ${WRKDIR} && \ |
31 |
${UNZIP_CMD} -aqx ${DISTDIR}/${PORTNAME}-${PORTVERSION}-source.zip |
32 |
|
27 |
|
33 |
post-patch: |
28 |
post-patch: |
34 |
@${REINPLACE_CMD} -e 's|##PREFIX##|${PREFIX}|g' ${WRKSRC}/code/unix/unix_shared.c |
29 |
@${REINPLACE_CMD} -e 's|%%Q3DIR%%|"${Q3DIR}"|' \ |
|
|
30 |
${WRKSRC}/code/unix/unix_shared.c |
35 |
|
31 |
|
36 |
pre-build: |
32 |
pre-build: |
37 |
${MKDIR} ${WRKSRC}/lcc/build |
33 |
${MKDIR} ${WRKSRC}/lcc/build |
38 |
|
34 |
|
39 |
do-build: |
35 |
do-build: |
40 |
cd ${WRKSRC}/code && \ |
36 |
cd ${WRKSRC}/code && ${PERL} unix/cons |
41 |
${PERL} unix/cons |
|
|
42 |
${MV} ${WRKSRC}/code/install/linuxq3ded ${WRKSRC}/code/install/q3ded |
43 |
${MV} ${WRKSRC}/code/install/linuxquake3 ${WRKSRC}/code/install/quake3 |
44 |
|
37 |
|
45 |
do-install: |
38 |
do-install: |
46 |
${INSTALL_PROGRAM} ${WRKSRC}/code/install/q3ded ${PREFIX}/bin |
39 |
${INSTALL_PROGRAM} ${WRKSRC}/code/install/linuxq3ded \ |
47 |
${INSTALL_PROGRAM} ${WRKSRC}/code/install/quake3 ${PREFIX}/bin |
40 |
${PREFIX}/bin/q3ded |
48 |
${MKDIR} ${PREFIX}/lib/quake3/baseq3/vm |
41 |
${INSTALL_PROGRAM} ${WRKSRC}/code/install/linuxquake3 \ |
49 |
${CP} ${WRKSRC}/code/install/baseq3/cgamei386.so ${PREFIX}/lib/quake3/baseq3 |
42 |
${PREFIX}/bin/quake3 |
50 |
${CP} ${WRKSRC}/code/install/baseq3/qagamei386.so ${PREFIX}/lib/quake3/baseq3 |
|
|
51 |
${CP} ${WRKSRC}/code/install/baseq3/uii386.so ${PREFIX}/lib/quake3/baseq3 |
52 |
${CP} ${WRKSRC}/code/install/baseq3/vm/cgame.qvm ${PREFIX}/lib/quake3/baseq3/vm |
53 |
${CP} ${WRKSRC}/code/install/baseq3/vm/qagame.qvm ${PREFIX}/lib/quake3/baseq3/vm |
54 |
${CP} ${WRKSRC}/code/install/baseq3/vm/ui.qvm ${PREFIX}/lib/quake3/baseq3/vm |
55 |
${MKDIR} ${PREFIX}/lib/quake3/missionpack/vm |
56 |
${CP} ${WRKSRC}/code/install/missionpack/cgamei386.so ${PREFIX}/lib/quake3/missionpack |
57 |
${CP} ${WRKSRC}/code/install/missionpack/qagamei386.so ${PREFIX}/lib/quake3/missionpack |
58 |
${CP} ${WRKSRC}/code/install/missionpack/uii386.so ${PREFIX}/lib/quake3/missionpack |
59 |
${CP} ${WRKSRC}/code/install/missionpack/vm/cgame.qvm ${PREFIX}/lib/quake3/missionpack/vm |
60 |
${CP} ${WRKSRC}/code/install/missionpack/vm/qagame.qvm ${PREFIX}/lib/quake3/missionpack/vm |
61 |
${CP} ${WRKSRC}/code/install/missionpack/vm/ui.qvm ${PREFIX}/lib/quake3/missionpack/vm |
62 |
|
43 |
|
63 |
post-install: |
44 |
.include "${.CURDIR}/../quake3-data/Makefile.include" |
64 |
${CAT} pkg-message |
|
|
65 |
|
45 |
|
66 |
.include <bsd.port.mk> |
46 |
.include <bsd.port.mk> |