Bug 89330 - [UPDATE] games/quake3: integrate with quake3-data
Summary: [UPDATE] games/quake3: integrate with quake3-data
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-20 22:10 UTC by Alejandro Pulver
Modified: 2005-11-22 05:23 UTC (History)
0 users

See Also:


Attachments
quake3.diff (5.67 KB, patch)
2005-11-20 22:10 UTC, Alejandro Pulver
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alejandro Pulver 2005-11-20 22:10:15 UTC

Changes:
* Don't build install QVM's and shared libraries (QVM's are provided in the PAK files).
* Look for data in the same directory as linux-quake3.
* Add mirror.
* Remove pkg-message and pkg-plist (not needed anymore).
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2005-11-20 22:12:16 UTC
Maintainer of games/quake3,

Please note that PR ports/89330 has just been submitted.

If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.

The full text of the PR can be found at:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/89330

-- 
Edwin Groothuis
edwin@FreeBSD.org
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2005-11-20 22:12:21 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback
Comment 3 shirshegsm 2005-11-21 16:01:22 UTC
Okay, but please add my mirror list too
(http://www.freebsd.org/cgi/query-pr.cgi?pr=3D89321).

Regards,

--
Linas Valiukas
gsm: +370 687 65 870
email: shirshegsm@gmail.com
icq: 147235316
Comment 4 Alejandro Pulver 2005-11-21 16:49:02 UTC
>Submitter-Id:	current-users 
>Originator:	Alejandro Pulver 
>Organization:	 
>Confidential:	no 
>Synopsis:	Re: ports/89330: [UPDATE] games/quake3: integrate with quake3-data 
>Severity:	non-critical 
>Priority:	low 
>Category:	ports 
>Class:		update 
>Release:	FreeBSD 5.4-RELEASE i386 
>Environment:


System: FreeBSD 5.4-RELEASE #0: Sat May 21 12:14:47 ART 2005
    root@ale.varnet.bsd:/usr/src/sys/i386/compile/ATHLON-ALE



>Description:


Add mirror list.


>How-To-Repeat:





>Fix:


--- quake3.diff begins here ---
diff -urN /usr/ports/games/quake3/Makefile quake3/Makefile
--- /usr/ports/games/quake3/Makefile	Thu Nov 17 07:35:03 2005
+++ quake3/Makefile	Mon Nov 21 13:47:17 2005
@@ -8,59 +8,44 @@
 PORTNAME=	quake3
 PORTVERSION=	1.32b
 CATEGORIES=	games
-MASTER_SITES=	ftp://ftp.idsoftware.com/idstuff/source/
-EXTRACT_SUFX=	-source.zip
-EXTRACT_ONLY=
+MASTER_SITES=	ftp://ftp.idsoftware.com/idstuff/source/ \
+		ftp://ftp.fasta.fh-dortmund.de/mirror/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)
 
-EXTRACT_DEPENDS=	unzip:${PORTSDIR}/archivers/unzip
-BUILD_DEPENDS=		nasm:${PORTSDIR}/devel/nasm
+BUILD_DEPENDS=	nasm:${PORTSDIR}/devel/nasm
 
-USE_GMAKE=		yes
-USE_PERL5_BUILD=	yes
-USE_GL=			yes
-USE_REINPLACE=		yes
-CONFLICTS=		q3server-1.32*
-
-# We need that -a flag
-do-extract:
-		${MKDIR} ${WRKDIR} && \
-		cd ${WRKDIR} && \
-		${UNZIP_CMD} -aqx ${DISTDIR}/${PORTNAME}-${PORTVERSION}-source.zip
+USE_ZIP=	yes
+USE_GMAKE=	yes
+USE_REINPLACE=	yes
+USE_PERL5_BUILD=yes
+USE_GL=		yes
+
+PLIST_FILES=	bin/q3ded bin/quake3
 
 post-patch:
-		@${REINPLACE_CMD} -e 's|##PREFIX##|${PREFIX}|g' ${WRKSRC}/code/unix/unix_shared.c
+	@${REINPLACE_CMD} -e 's|%%Q3DIR%%|"${Q3DIR}"|' \
+		${WRKSRC}/code/unix/unix_shared.c
 
 pre-build:
-		${MKDIR} ${WRKSRC}/lcc/build
+	${MKDIR} ${WRKSRC}/lcc/build
 
 do-build:
-		cd ${WRKSRC}/code && \
-		${PERL} unix/cons
-		${MV} ${WRKSRC}/code/install/linuxq3ded ${WRKSRC}/code/install/q3ded
-		${MV} ${WRKSRC}/code/install/linuxquake3 ${WRKSRC}/code/install/quake3
+	cd ${WRKSRC}/code && ${PERL} unix/cons
 
 do-install:
-		${INSTALL_PROGRAM} ${WRKSRC}/code/install/q3ded ${PREFIX}/bin
-		${INSTALL_PROGRAM} ${WRKSRC}/code/install/quake3 ${PREFIX}/bin
-		${MKDIR} ${PREFIX}/lib/quake3/baseq3/vm
-		${CP} ${WRKSRC}/code/install/baseq3/cgamei386.so ${PREFIX}/lib/quake3/baseq3
-		${CP} ${WRKSRC}/code/install/baseq3/qagamei386.so ${PREFIX}/lib/quake3/baseq3
-		${CP} ${WRKSRC}/code/install/baseq3/uii386.so ${PREFIX}/lib/quake3/baseq3
-		${CP} ${WRKSRC}/code/install/baseq3/vm/cgame.qvm ${PREFIX}/lib/quake3/baseq3/vm
-		${CP} ${WRKSRC}/code/install/baseq3/vm/qagame.qvm ${PREFIX}/lib/quake3/baseq3/vm
-		${CP} ${WRKSRC}/code/install/baseq3/vm/ui.qvm ${PREFIX}/lib/quake3/baseq3/vm
-		${MKDIR} ${PREFIX}/lib/quake3/missionpack/vm
-		${CP} ${WRKSRC}/code/install/missionpack/cgamei386.so ${PREFIX}/lib/quake3/missionpack
-		${CP} ${WRKSRC}/code/install/missionpack/qagamei386.so ${PREFIX}/lib/quake3/missionpack
-		${CP} ${WRKSRC}/code/install/missionpack/uii386.so ${PREFIX}/lib/quake3/missionpack
-		${CP} ${WRKSRC}/code/install/missionpack/vm/cgame.qvm ${PREFIX}/lib/quake3/missionpack/vm
-		${CP} ${WRKSRC}/code/install/missionpack/vm/qagame.qvm ${PREFIX}/lib/quake3/missionpack/vm
-		${CP} ${WRKSRC}/code/install/missionpack/vm/ui.qvm ${PREFIX}/lib/quake3/missionpack/vm
+	${INSTALL_PROGRAM} ${WRKSRC}/code/install/linuxq3ded \
+		${PREFIX}/bin/q3ded
+	${INSTALL_PROGRAM} ${WRKSRC}/code/install/linuxquake3 \
+		${PREFIX}/bin/quake3
 
-post-install:
-		${CAT} pkg-message
+.include "${.CURDIR}/../quake3-data/Makefile.include"
 
 .include <bsd.port.mk>
diff -urN /usr/ports/games/quake3/files/patch-code-unix-Makefile quake3/files/patch-code-unix-Makefile
--- /usr/ports/games/quake3/files/patch-code-unix-Makefile	Thu Nov 17 07:35:03 2005
+++ quake3/files/patch-code-unix-Makefile	Sun Nov 20 18:48:53 2005
@@ -1,5 +1,5 @@
---- code/unix/Makefile	Sun May  5 12:21:10 2002
-+++ ../../work/quake3-1.32b/code/unix/Makefile	Sun Aug 28 23:16:03 2005
+--- code/unix/Makefile.orig	Sun May  5 07:21:10 2002
++++ code/unix/Makefile	Sun Nov 20 18:48:48 2005
 @@ -136,7 +136,7 @@
      ifeq ($(ARCH),ppc)
        NEWPGCC=/loki/global/ppc/bin/gcc
diff -urN /usr/ports/games/quake3/files/patch-code-unix-unix_shared.c quake3/files/patch-code-unix-unix_shared.c
--- /usr/ports/games/quake3/files/patch-code-unix-unix_shared.c	Thu Nov 17 07:35:03 2005
+++ quake3/files/patch-code-unix-unix_shared.c	Sun Nov 20 18:51:13 2005
@@ -1,11 +1,11 @@
---- code/unix/unix_shared.c	Tue Aug 16 02:10:07 2005
-+++ ../../work/quake3-1.32b/code/unix/unix_shared.c	Mon Aug 29 00:37:41 2005
+--- code/unix/unix_shared.c.orig	Mon Aug 15 20:10:07 2005
++++ code/unix/unix_shared.c	Sun Nov 20 18:41:22 2005
 @@ -38,7 +38,7 @@
  static char cdPath[MAX_OSPATH];
  
  // Used to determine local installation path
 -static char installPath[MAX_OSPATH];
-+static char installPath[MAX_OSPATH] = "##PREFIX##/lib/quake3";	// FreeBSD
++static char installPath[MAX_OSPATH] = %%Q3DIR%%;
  
  // Used to determine where to store user-specific files
  static char homePath[MAX_OSPATH];
diff -urN /usr/ports/games/quake3/pkg-message quake3/pkg-message
--- /usr/ports/games/quake3/pkg-message	Thu Nov 17 07:35:03 2005
+++ quake3/pkg-message	Wed Dec 31 21:00:00 1969
@@ -1,7 +0,0 @@
------
-Quake III client is installed in bin/quake3 and
-Quake III dedicated server in bin/q3ded.
-
-No .pak3's are installed, you need to copy/link them to
-~/.q3a/baseq3
------
diff -urN /usr/ports/games/quake3/pkg-plist quake3/pkg-plist
--- /usr/ports/games/quake3/pkg-plist	Thu Nov 17 07:35:03 2005
+++ quake3/pkg-plist	Wed Dec 31 21:00:00 1969
@@ -1,19 +0,0 @@
-bin/q3ded
-bin/quake3
-lib/quake3/baseq3/cgamei386.so
-lib/quake3/baseq3/qagamei386.so
-lib/quake3/baseq3/uii386.so
-lib/quake3/baseq3/vm/cgame.qvm
-lib/quake3/baseq3/vm/qagame.qvm
-lib/quake3/baseq3/vm/ui.qvm
-lib/quake3/missionpack/cgamei386.so
-lib/quake3/missionpack/qagamei386.so
-lib/quake3/missionpack/uii386.so
-lib/quake3/missionpack/vm/cgame.qvm
-lib/quake3/missionpack/vm/qagame.qvm
-lib/quake3/missionpack/vm/ui.qvm
-@dirrm lib/quake3/baseq3/vm
-@dirrm lib/quake3/baseq3
-@dirrm lib/quake3/missionpack/vm
-@dirrm lib/quake3/missionpack
-@dirrm lib/quake3
--- quake3.diff ends here ---
Comment 5 Edwin Groothuis freebsd_committer freebsd_triage 2005-11-22 05:22:51 UTC
State Changed
From-To: feedback->closed

Committed, thanks!