diff options
author | danfe <danfe@FreeBSD.org> | 2006-03-22 00:24:32 +0800 |
---|---|---|
committer | danfe <danfe@FreeBSD.org> | 2006-03-22 00:24:32 +0800 |
commit | 57d4c6530df87034d20861081f386847fe353c43 (patch) | |
tree | cebbb3cac85737281d22dbffba884cfae87645b0 /games/quake2lnx/files | |
parent | 3f77d7286de3f5b92b64497f11a66c31a83f71ef (diff) | |
download | freebsd-ports-gnome-57d4c6530df87034d20861081f386847fe353c43.tar.gz freebsd-ports-gnome-57d4c6530df87034d20861081f386847fe353c43.tar.zst freebsd-ports-gnome-57d4c6530df87034d20861081f386847fe353c43.zip |
Further work on my beloved port:
- Rework the way we handle BASEDIR/LIBDIR, keeping ability to set basedir
from command line. Only ref_*.so files path left hardcoded
- Tiny fix for dedicated server build (Makefile typo)
- Most importantly, help Quake II always find libGL.so (no more LD_PRELOAD
magic). Bump PORTREVISION for that [*]
- Restore my nifty comments in pkg-plist
References: http://utah-glx.sourceforge.net/faq.html#AEN262 [*]
Diffstat (limited to 'games/quake2lnx/files')
-rw-r--r-- | games/quake2lnx/files/patch-Makefile | 15 | ||||
-rw-r--r-- | games/quake2lnx/files/patch-src_linux_vid_so.c | 8 | ||||
-rw-r--r-- | games/quake2lnx/files/patch-src_qcommon_files.c | 13 |
3 files changed, 22 insertions, 14 deletions
diff --git a/games/quake2lnx/files/patch-Makefile b/games/quake2lnx/files/patch-Makefile index bd7c4aab765e..39e224b05022 100644 --- a/games/quake2lnx/files/patch-Makefile +++ b/games/quake2lnx/files/patch-Makefile @@ -1,5 +1,5 @@ ---- Makefile.orig Fri Sep 24 19:06:52 2004 -+++ Makefile Fri Oct 7 17:37:25 2005 +--- Makefile.orig Sat Sep 25 05:06:52 2004 ++++ Makefile Tue Mar 21 19:18:24 2006 @@ -12,30 +12,30 @@ # (Note: not all options are available for all platforms). # quake2 (uses OSS for sound, cdrom ioctls for cd audio) is automatically built. @@ -122,7 +122,7 @@ NULL_DIR=$(MOUNT_DIR)/null -BASE_CFLAGS=-Wall -pipe -Dstricmp=strcasecmp -+BASE_CFLAGS=-pipe -Dstricmp=strcasecmp -DDATADIR='\"${DATADIR}\"' -DLIBDIR='\"${LIBDIR}\"' $(CFLAGS) ++BASE_CFLAGS=-pipe -Dstricmp=strcasecmp $(CFLAGS) ifeq ($(HAVE_IPV6),YES) BASE_CFLAGS+= -DHAVE_IPV6 ifeq ($(OSTYPE),FreeBSD) @@ -419,6 +419,15 @@ endif $(BUILDDIR)/quake2 : $(QUAKE2_OBJS) $(QUAKE2_LNX_OBJS) $(QUAKE2_AS_OBJS) +@@ -719,7 +571,7 @@ + $(DO_DED_CC) + + $(BUILDDIR)/ded/q_shared.o : $(GAME_DIR)/q_shared.c +- $(DO_DED_DEBUG_CC) ++ $(DO_DED_CC) + + $(BUILDDIR)/ded/pmove.o : $(COMMON_DIR)/pmove.c + $(DO_DED_CC) @@ -821,7 +673,7 @@ $(BUILDDIR)/game/q_shared.o \ $(BUILDDIR)/game/m_flash.o diff --git a/games/quake2lnx/files/patch-src_linux_vid_so.c b/games/quake2lnx/files/patch-src_linux_vid_so.c index deb9d57f9d48..9c8e80cba5d4 100644 --- a/games/quake2lnx/files/patch-src_linux_vid_so.c +++ b/games/quake2lnx/files/patch-src_linux_vid_so.c @@ -1,5 +1,5 @@ ---- src/linux/vid_so.c.orig Fri Sep 24 19:11:44 2004 -+++ src/linux/vid_so.c Tue Sep 27 19:28:29 2005 +--- src/linux/vid_so.c.orig Tue Mar 21 19:43:33 2006 ++++ src/linux/vid_so.c Tue Mar 21 19:47:12 2006 @@ -216,7 +216,6 @@ refimport_t ri; GetRefAPI_t GetRefAPI; @@ -15,7 +15,7 @@ - path = Cvar_Get ("basedir", ".", CVAR_NOSET)->string; - - snprintf (fn, MAX_OSPATH, "%s/%s", path, name ); -+ snprintf (fn, MAX_OSPATH, LIBDIR"/%s", name ); ++ snprintf (fn, MAX_OSPATH, "%%LIBDIR%%/%s", name ); if (stat(fn, &st) == -1) { Com_Printf( "LoadLibrary(\"%s\") failed: %s\n", name, strerror(errno)); @@ -28,7 +28,7 @@ - path = Cvar_Get ("basedir", ".", CVAR_NOSET)->string; - snprintf (fn, MAX_OSPATH, "%s/ref_%s.so", path, ref ); -+ snprintf (fn, MAX_OSPATH, LIBDIR"/ref_%s.so", ref ); ++ snprintf (fn, MAX_OSPATH, "%%LIBDIR%%/ref_%s.so", ref ); if (stat(fn, &st) == 0) return true; diff --git a/games/quake2lnx/files/patch-src_qcommon_files.c b/games/quake2lnx/files/patch-src_qcommon_files.c index dca3a05e2a6d..a93235c61ea9 100644 --- a/games/quake2lnx/files/patch-src_qcommon_files.c +++ b/games/quake2lnx/files/patch-src_qcommon_files.c @@ -1,12 +1,11 @@ ---- src/qcommon/files.c.orig Sun Jan 2 00:38:12 2005 -+++ src/qcommon/files.c Tue Sep 27 18:25:41 2005 -@@ -912,7 +912,8 @@ - // +--- src/qcommon/files.c.orig Tue Mar 21 19:36:01 2006 ++++ src/qcommon/files.c Tue Mar 21 19:41:27 2006 +@@ -913,6 +913,8 @@ // add baseq2 to search path // -- FS_AddGameDirectory (va("%s/"BASEDIRNAME, fs_basedir->string) ); -+ FS_AddGameDirectory(LIBDIR"/"BASEDIRNAME); -+ FS_AddGameDirectory(DATADIR"/"BASEDIRNAME); + FS_AddGameDirectory (va("%s/"BASEDIRNAME, fs_basedir->string) ); ++ FS_AddGameDirectory ("%%LIBDIR%%/"BASEDIRNAME); ++ FS_AddGameDirectory ("%%DATADIR%%/"BASEDIRNAME); // // then add a '.quake2/baseq2' directory in home directory by default |