diff options
author | jmcneill <jmcneill@pkgsrc.org> | 2009-01-13 00:12:29 +0000 |
---|---|---|
committer | jmcneill <jmcneill@pkgsrc.org> | 2009-01-13 00:12:29 +0000 |
commit | 1573466b9da1923b65d5aec80287aaa77e4325f7 (patch) | |
tree | 31eeaf0bdd9f9492f81aa7588c1c75dabc1fc68f /games | |
parent | 729595e2d9cf45cf59725cbbce5b968e01c6bd6e (diff) | |
download | pkgsrc-1573466b9da1923b65d5aec80287aaa77e4325f7.tar.gz |
Import ioquake3 version 0.0.1490 (svn snapshot).
ioquake3 is a game engine project which aims to build upon id Software's Quake
3 source code release. The source code was released on August 20, 2005 under
the GPL.
The project's goal is to create a bug-free, enhanced open source Quake 3
source code distribution upon which new games and projects can be based, as
well as an improved version (in relation to the original binaries) of the
engine for playing Quake III: Arena, the Team Arena expansion pack and all the
popular mods.
Diffstat (limited to 'games')
-rw-r--r-- | games/ioquake3/DESCR | 9 | ||||
-rw-r--r-- | games/ioquake3/MESSAGE | 9 | ||||
-rw-r--r-- | games/ioquake3/Makefile | 22 | ||||
-rw-r--r-- | games/ioquake3/PLIST | 12 | ||||
-rw-r--r-- | games/ioquake3/distinfo | 9 | ||||
-rw-r--r-- | games/ioquake3/patches/patch-aa | 13 | ||||
-rw-r--r-- | games/ioquake3/patches/patch-ab | 13 | ||||
-rw-r--r-- | games/ioquake3/patches/patch-ac | 121 | ||||
-rw-r--r-- | games/ioquake3/patches/patch-ad | 15 |
9 files changed, 223 insertions, 0 deletions
diff --git a/games/ioquake3/DESCR b/games/ioquake3/DESCR new file mode 100644 index 00000000000..2f3385ad06d --- /dev/null +++ b/games/ioquake3/DESCR @@ -0,0 +1,9 @@ +ioquake3 is a game engine project which aims to build upon id Software's Quake +3 source code release. The source code was released on August 20, 2005 under +the GPL. + +The project's goal is to create a bug-free, enhanced open source Quake 3 +source code distribution upon which new games and projects can be based, as +well as an improved version (in relation to the original binaries) of the +engine for playing Quake III: Arena, the Team Arena expansion pack and all the +popular mods. diff --git a/games/ioquake3/MESSAGE b/games/ioquake3/MESSAGE new file mode 100644 index 00000000000..b5a34ab9d1c --- /dev/null +++ b/games/ioquake3/MESSAGE @@ -0,0 +1,9 @@ +=========================================================================== +$NetBSD: MESSAGE,v 1.1.1.1 2009/01/13 00:12:29 jmcneill Exp $ + +To run ioquake3, you must place the file 'pak0.pk3' from your +Quake 3 CD into: + + ${LOCALBASE}/lib/ioquake3/baseq3/ + +=========================================================================== diff --git a/games/ioquake3/Makefile b/games/ioquake3/Makefile new file mode 100644 index 00000000000..b12bf2a99ef --- /dev/null +++ b/games/ioquake3/Makefile @@ -0,0 +1,22 @@ +# $NetBSD: Makefile,v 1.1.1.1 2009/01/13 00:12:29 jmcneill Exp $ +# + +DISTNAME= ioquake3-0.0.1490 +CATEGORIES= games +MASTER_SITES= http://www.invisible.ca/~jmcneill/distfiles/ + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://www.ioquake3.org/ +COMMENT= Open source Quake 3 distribution +USE_TOOLS+= gmake + +BUILD_TARGET= release + +do-install: + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/lib/ioquake3 + cd ${WRKSRC} && ${GMAKE} copyfiles COPYDIR=${DESTDIR}${PREFIX}/lib/ioquake3 + +.include "../../audio/openal/buildlink3.mk" +.include "../../devel/SDL/buildlink3.mk" +.include "../../graphics/MesaLib/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/games/ioquake3/PLIST b/games/ioquake3/PLIST new file mode 100644 index 00000000000..31b5a84a496 --- /dev/null +++ b/games/ioquake3/PLIST @@ -0,0 +1,12 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2009/01/13 00:12:29 jmcneill Exp $ +lib/ioquake3/baseq3/cgame${MACHINE_ARCH}.so +lib/ioquake3/baseq3/qagame${MACHINE_ARCH}.so +lib/ioquake3/baseq3/ui${MACHINE_ARCH}.so +lib/ioquake3/ioq3ded.${MACHINE_ARCH} +lib/ioquake3/ioquake3.${MACHINE_ARCH} +lib/ioquake3/missionpack/cgame${MACHINE_ARCH}.so +lib/ioquake3/missionpack/qagame${MACHINE_ARCH}.so +lib/ioquake3/missionpack/ui${MACHINE_ARCH}.so +@dirrm lib/ioquake3/missionpack +@dirrm lib/ioquake3/baseq3 +@dirrm lib/ioquake3 diff --git a/games/ioquake3/distinfo b/games/ioquake3/distinfo new file mode 100644 index 00000000000..9db17c748e6 --- /dev/null +++ b/games/ioquake3/distinfo @@ -0,0 +1,9 @@ +$NetBSD: distinfo,v 1.1.1.1 2009/01/13 00:12:29 jmcneill Exp $ + +SHA1 (ioquake3-0.0.1490.tar.gz) = 249bf7e55d62adde90caa20aca05e2df10541079 +RMD160 (ioquake3-0.0.1490.tar.gz) = 16bc03444cfa8670b3f37cc713be52109bd528ba +Size (ioquake3-0.0.1490.tar.gz) = 4054017 bytes +SHA1 (patch-aa) = 3b23bdcb4b0b43c9a5520a2cce24ac9063aebebb +SHA1 (patch-ab) = 7808f9c26160ae1931c96fe1bc5e898b69afbde2 +SHA1 (patch-ac) = 174319bd674ebf809d371dc4b816eee2d79269ee +SHA1 (patch-ad) = be5e91745076c23b3984268f428445722223f350 diff --git a/games/ioquake3/patches/patch-aa b/games/ioquake3/patches/patch-aa new file mode 100644 index 00000000000..dbcb1cb2f32 --- /dev/null +++ b/games/ioquake3/patches/patch-aa @@ -0,0 +1,13 @@ +$NetBSD: patch-aa,v 1.1.1.1 2009/01/13 00:12:29 jmcneill Exp $ + +--- code/qcommon/q_platform.h.orig 2009-01-12 12:28:35.000000000 -0500 ++++ code/qcommon/q_platform.h +@@ -194,6 +194,8 @@ Foundation, Inc., 51 Franklin St, Fifth + #define ARCH_STRING "i386" + #elif defined __axp__ + #define ARCH_STRING "alpha" ++#elif defined __x86_64__ ++#define ARCH_STRING "x86_64" + #endif + + #if BYTE_ORDER == BIG_ENDIAN diff --git a/games/ioquake3/patches/patch-ab b/games/ioquake3/patches/patch-ab new file mode 100644 index 00000000000..c8d789301a1 --- /dev/null +++ b/games/ioquake3/patches/patch-ab @@ -0,0 +1,13 @@ +$NetBSD: patch-ab,v 1.1.1.1 2009/01/13 00:12:29 jmcneill Exp $ + +--- code/qcommon/q_shared.h.orig 2009-01-12 12:28:35.000000000 -0500 ++++ code/qcommon/q_shared.h +@@ -40,7 +40,7 @@ Foundation, Inc., 51 Franklin St, Fifth + #define GAMENAME_FOR_MASTER "Quake3Arena" + #endif + +-#ifdef _MSC_VER ++#if defined(_MSC_VER) || !defined(PRODUCT_VERSION) + #define PRODUCT_VERSION "1.35" + #endif + diff --git a/games/ioquake3/patches/patch-ac b/games/ioquake3/patches/patch-ac new file mode 100644 index 00000000000..000fdfeadbe --- /dev/null +++ b/games/ioquake3/patches/patch-ac @@ -0,0 +1,121 @@ +$NetBSD: patch-ac,v 1.1.1.1 2009/01/13 00:12:29 jmcneill Exp $ + +--- Makefile.orig 2009-01-12 12:28:41.000000000 -0500 ++++ Makefile +@@ -644,24 +644,109 @@ ifeq ($(PLATFORM),netbsd) + + ifeq ($(shell uname -m),i386) + ARCH=i386 ++ else ++ ifeq ($(shell uname -m),amd64) ++ ARCH=x86_64 ++ endif ++ endif ++ ++ USE_MUMBLE=0 ++ ++ BASE_CFLAGS = -Wall -fno-strict-aliasing -Wimplicit -Wstrict-prototypes \ ++ -pipe -DUSE_ICON $(shell sdl-config --cflags) ++ ++ ifeq ($(USE_OPENAL),1) ++ BASE_CFLAGS += -DUSE_OPENAL ++ ifeq ($(USE_OPENAL_DLOPEN),1) ++ BASE_CFLAGS += -DUSE_OPENAL_DLOPEN ++ endif ++ endif ++ ++ ifeq ($(USE_CURL),1) ++ BASE_CFLAGS += -DUSE_CURL ++ ifeq ($(USE_CURL_DLOPEN),1) ++ BASE_CFLAGS += -DUSE_CURL_DLOPEN ++ endif ++ endif ++ ++ ifeq ($(USE_CODEC_VORBIS),1) ++ BASE_CFLAGS += -DUSE_CODEC_VORBIS ++ endif ++ ++ OPTIMIZE = -O3 -ffast-math -funroll-loops -fomit-frame-pointer ++ ++ ifeq ($(ARCH),x86_64) ++ OPTIMIZE = -O3 -fomit-frame-pointer -ffast-math -funroll-loops \ ++ -falign-loops=2 -falign-jumps=2 -falign-functions=2 \ ++ -fstrength-reduce ++ # experimental x86_64 jit compiler! you need GNU as ++ HAVE_VM_COMPILED = true ++ else ++ ifeq ($(ARCH),i386) ++ OPTIMIZE = -O3 -march=i586 -fomit-frame-pointer -ffast-math \ ++ -funroll-loops -falign-loops=2 -falign-jumps=2 \ ++ -falign-functions=2 -fstrength-reduce ++ HAVE_VM_COMPILED=true ++ else ++ ifeq ($(ARCH),ppc) ++ BASE_CFLAGS += -maltivec ++ HAVE_VM_COMPILED=true ++ endif ++ ifeq ($(ARCH),ppc64) ++ BASE_CFLAGS += -maltivec ++ HAVE_VM_COMPILED=true ++ endif ++ endif ++ endif ++ ++ ifneq ($(HAVE_VM_COMPILED),true) ++ BASE_CFLAGS += -DNO_VM_COMPILED + endif + +- LIBS=-lm + SHLIBEXT=so + SHLIBCFLAGS=-fPIC + SHLIBLDFLAGS=-shared $(LDFLAGS) ++ + THREAD_LIBS=-lpthread ++ LIBS=-lm + +- BASE_CFLAGS = -Wall -fno-strict-aliasing -Wimplicit -Wstrict-prototypes ++ CLIENT_LIBS=$(shell sdl-config --libs) -lGL + +- ifneq ($(ARCH),i386) +- BASE_CFLAGS += -DNO_VM_COMPILED ++ ifeq ($(USE_OPENAL),1) ++ ifneq ($(USE_OPENAL_DLOPEN),1) ++ CLIENT_LIBS += -lopenal ++ endif + endif + +- DEBUG_CFLAGS=$(BASE_CFLAGS) -g ++ ifeq ($(USE_CURL),1) ++ ifneq ($(USE_CURL_DLOPEN),1) ++ CLIENT_LIBS += -lcurl ++ endif ++ endif + +- BUILD_CLIENT = 0 +- BUILD_GAME_QVM = 0 ++ ifeq ($(USE_CODEC_VORBIS),1) ++ CLIENT_LIBS += -lvorbisfile -lvorbis -logg ++ endif ++ ++ ifeq ($(USE_MUMBLE),1) ++ CLIENT_LIBS += -lrt ++ endif ++ ++ ifeq ($(USE_LOCAL_HEADERS),1) ++ BASE_CFLAGS += -I$(SDLHDIR)/include ++ endif ++ ++ ifeq ($(ARCH),i386) ++ # linux32 make ... ++ BASE_CFLAGS += -m32 ++ else ++ ifeq ($(ARCH),ppc64) ++ BASE_CFLAGS += -m64 ++ endif ++ endif ++ ++ DEBUG_CFLAGS = $(BASE_CFLAGS) -g -O0 ++ RELEASE_CFLAGS=$(BASE_CFLAGS) -DNDEBUG $(OPTIMIZE) + + else # ifeq netbsd + diff --git a/games/ioquake3/patches/patch-ad b/games/ioquake3/patches/patch-ad new file mode 100644 index 00000000000..61ee9138f59 --- /dev/null +++ b/games/ioquake3/patches/patch-ad @@ -0,0 +1,15 @@ +$NetBSD: patch-ad,v 1.1.1.1 2009/01/13 00:12:29 jmcneill Exp $ + +--- code/qcommon/vm_x86_64.c.orig 2009-01-12 18:50:39.000000000 -0500 ++++ code/qcommon/vm_x86_64.c +@@ -58,6 +58,10 @@ void assemble_line(const char* input, si + #endif + #endif // USE_GAS + ++#ifndef MAP_ANONYMOUS ++#define MAP_ANONYMOUS MAP_ANON ++#endif ++ + static void VM_Destroy_Compiled(vm_t* self); + + /* |