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/ioquake3/patches | |
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/ioquake3/patches')
-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 |
4 files changed, 162 insertions, 0 deletions
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); + + /* |