View | Details | Raw Unified | Return to bug 89330
Collapse All | Expand All

(-)quake3/Makefile (-40 / +20 lines)
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>
(-)quake3/files/patch-code-unix-Makefile (-2 / +2 lines)
Lines 1-5 Link Here
1
--- code/unix/Makefile	Sun May  5 12:21:10 2002
1
--- code/unix/Makefile.orig	Sun May  5 07:21:10 2002
2
+++ ../../work/quake3-1.32b/code/unix/Makefile	Sun Aug 28 23:16:03 2005
2
+++ code/unix/Makefile	Sun Nov 20 18:48:48 2005
3
@@ -136,7 +136,7 @@
3
@@ -136,7 +136,7 @@
4
     ifeq ($(ARCH),ppc)
4
     ifeq ($(ARCH),ppc)
5
       NEWPGCC=/loki/global/ppc/bin/gcc
5
       NEWPGCC=/loki/global/ppc/bin/gcc
(-)quake3/files/patch-code-unix-unix_shared.c (-3 / +3 lines)
Lines 1-11 Link Here
1
--- code/unix/unix_shared.c	Tue Aug 16 02:10:07 2005
1
--- code/unix/unix_shared.c.orig	Mon Aug 15 20:10:07 2005
2
+++ ../../work/quake3-1.32b/code/unix/unix_shared.c	Mon Aug 29 00:37:41 2005
2
+++ code/unix/unix_shared.c	Sun Nov 20 18:41:22 2005
3
@@ -38,7 +38,7 @@
3
@@ -38,7 +38,7 @@
4
 static char cdPath[MAX_OSPATH];
4
 static char cdPath[MAX_OSPATH];
5
 
5
 
6
 // Used to determine local installation path
6
 // Used to determine local installation path
7
-static char installPath[MAX_OSPATH];
7
-static char installPath[MAX_OSPATH];
8
+static char installPath[MAX_OSPATH] = "##PREFIX##/lib/quake3";	// FreeBSD
8
+static char installPath[MAX_OSPATH] = %%Q3DIR%%;
9
 
9
 
10
 // Used to determine where to store user-specific files
10
 // Used to determine where to store user-specific files
11
 static char homePath[MAX_OSPATH];
11
 static char homePath[MAX_OSPATH];
(-)quake3/pkg-message (-7 lines)
Lines 1-7 Link Here
1
-----
2
Quake III client is installed in bin/quake3 and
3
Quake III dedicated server in bin/q3ded.
4
5
No .pak3's are installed, you need to copy/link them to
6
~/.q3a/baseq3
7
-----
(-)quake3/pkg-plist (-19 lines)
Lines 1-19 Link Here
1
bin/q3ded
2
bin/quake3
3
lib/quake3/baseq3/cgamei386.so
4
lib/quake3/baseq3/qagamei386.so
5
lib/quake3/baseq3/uii386.so
6
lib/quake3/baseq3/vm/cgame.qvm
7
lib/quake3/baseq3/vm/qagame.qvm
8
lib/quake3/baseq3/vm/ui.qvm
9
lib/quake3/missionpack/cgamei386.so
10
lib/quake3/missionpack/qagamei386.so
11
lib/quake3/missionpack/uii386.so
12
lib/quake3/missionpack/vm/cgame.qvm
13
lib/quake3/missionpack/vm/qagame.qvm
14
lib/quake3/missionpack/vm/ui.qvm
15
@dirrm lib/quake3/baseq3/vm
16
@dirrm lib/quake3/baseq3
17
@dirrm lib/quake3/missionpack/vm
18
@dirrm lib/quake3/missionpack
19
@dirrm lib/quake3

Return to bug 89330