summaryrefslogtreecommitdiff
path: root/games/quake/patches
diff options
context:
space:
mode:
authormarino <marino@pkgsrc.org>2011-09-14 19:19:37 +0000
committermarino <marino@pkgsrc.org>2011-09-14 19:19:37 +0000
commit235bfa14fbb77cb08a32b15655c07c481894bff1 (patch)
tree2503916528997b01c69cadf2b1caa1c696dad489 /games/quake/patches
parentcbada095bc213aeb177e0608d5d5bbdecbce1087 (diff)
downloadpkgsrc-235bfa14fbb77cb08a32b15655c07c481894bff1.tar.gz
Restore DragonFly ability to build Quake
A number of switches in the Quake makefile are no longer recognized by the system compiler in DragonFly (gcc 4.4), e.g. -m486 and -mpentium. These switches have alternatives such as mtune= that allows Quake to build on i386-DragonFly, so the existing patches were updated to used them. i386-NetBSD-5.99 was verified as well. i386-NetBSD-5.1 remains broken due to an unrelated X11 header buildlink problem (Xxf86dga.h vs xf86dga.h)
Diffstat (limited to 'games/quake/patches')
-rw-r--r--games/quake/patches/patch-ae28
-rw-r--r--games/quake/patches/patch-ai11
2 files changed, 24 insertions, 15 deletions
diff --git a/games/quake/patches/patch-ae b/games/quake/patches/patch-ae
index 3a242eb357f..a842874df18 100644
--- a/games/quake/patches/patch-ae
+++ b/games/quake/patches/patch-ae
@@ -1,8 +1,8 @@
-$NetBSD: patch-ae,v 1.9 2009/08/29 19:26:01 wiz Exp $
+$NetBSD: patch-ae,v 1.10 2011/09/14 19:19:37 marino Exp $
---- QW/Makefile.Linux.orig Wed Apr 21 20:16:24 1999
+--- QW/Makefile.Linux.orig 1999-04-21 18:16:24.000000000 +0000
+++ QW/Makefile.Linux
-@@ -27,41 +27,51 @@
+@@ -27,41 +27,57 @@ ARCH=i386
RPMARCH=i386
endif
@@ -30,13 +30,21 @@ $NetBSD: patch-ae,v 1.9 2009/08/29 19:26:01 wiz Exp $
-fomit-frame-pointer -fexpensive-optimizations
else
-RELEASE_CFLAGS=$(BASE_CFLAGS) -m486 -O6 -ffast-math -funroll-loops \
+- -fomit-frame-pointer -fexpensive-optimizations -malign-loops=2 \
+- -malign-jumps=2 -malign-functions=2
+# Optimizer bug?!?!?
+#RELEASE_CFLAGS=$(BASE_CFLAGS) -m486 -O6 -ffast-math -funroll-loops \
+# -fomit-frame-pointer -fexpensive-optimizations -malign-loops=2 \
+# -malign-jumps=2 -malign-functions=2
-+RELEASE_CFLAGS=$(BASE_CFLAGS) -m486 -ffast-math -funroll-loops \
- -fomit-frame-pointer -fexpensive-optimizations -malign-loops=2 \
- -malign-jumps=2 -malign-functions=2
++RELEASE_CFLAGS=$(BASE_CFLAGS) \
++ -mtune=i486 \
++ -ffast-math \
++ -funroll-loops \
++ -fomit-frame-pointer \
++ -fexpensive-optimizations \
++ -falign-loops=2 \
++ -falign-jumps=2 \
++ -falign-functions=2
endif
-GLCFLAGS=-DGLQUAKE -I/usr/local/src/Mesa-3.0/include -I/usr/include/glide
+GLCFLAGS=-DGLQUAKE -I${MESA_DIR}/include -I/usr/include/glide
@@ -69,7 +77,7 @@ $NetBSD: patch-ae,v 1.9 2009/08/29 19:26:01 wiz Exp $
#############################################################################
# SETUP AND BUILD
-@@ -71,7 +81,7 @@
+@@ -71,7 +87,7 @@ ifeq ($(ARCH),axp)
TARGETS=$(BUILDDIR)/qwsv
#$(BUILDDIR)/qwcl.x11
else
@@ -78,7 +86,7 @@ $NetBSD: patch-ae,v 1.9 2009/08/29 19:26:01 wiz Exp $
endif
build_debug:
-@@ -485,7 +495,7 @@
+@@ -485,7 +501,7 @@ $(BUILDDIR)/client/wad.o : $(
$(BUILDDIR)/client/zone.o : $(CLIENT_DIR)/zone.c
$(DO_CC)
@@ -87,7 +95,7 @@ $NetBSD: patch-ae,v 1.9 2009/08/29 19:26:01 wiz Exp $
$(DO_CC)
$(BUILDDIR)/client/sys_linux.o : $(CLIENT_DIR)/sys_linux.c
-@@ -609,7 +619,7 @@
+@@ -609,7 +625,7 @@ GLQWCL_OBJS = \
$(BUILDDIR)/glclient/math.o \
$(BUILDDIR)/glclient/snd_mixa.o \
$(BUILDDIR)/glclient/sys_dosa.o
@@ -96,7 +104,7 @@ $NetBSD: patch-ae,v 1.9 2009/08/29 19:26:01 wiz Exp $
GLQWCL_SVGA_OBJS = $(BUILDDIR)/glclient/gl_vidlinux.o
GLQWCL_X11_OBJS = $(BUILDDIR)/glclient/gl_vidlinuxglx.o
-@@ -715,7 +725,7 @@
+@@ -715,7 +731,7 @@ $(BUILDDIR)/glclient/wad.o : $
$(BUILDDIR)/glclient/zone.o : $(CLIENT_DIR)/zone.c
$(DO_GL_CC)
diff --git a/games/quake/patches/patch-ai b/games/quake/patches/patch-ai
index a40444ebb38..619332cabb4 100644
--- a/games/quake/patches/patch-ai
+++ b/games/quake/patches/patch-ai
@@ -1,8 +1,8 @@
-$NetBSD: patch-ai,v 1.9 2009/08/30 05:17:44 hasso Exp $
+$NetBSD: patch-ai,v 1.10 2011/09/14 19:19:37 marino Exp $
---- WinQuake/Makefile.linuxi386.orig Tue Apr 27 17:51:18 1999
+--- WinQuake/Makefile.linuxi386.orig 1999-04-27 15:51:18.000000000 +0000
+++ WinQuake/Makefile.linuxi386
-@@ -25,29 +25,31 @@
+@@ -25,29 +25,31 @@ ARCH=i386
endif
NOARCH=noarch
@@ -25,8 +25,9 @@ $NetBSD: patch-ai,v 1.9 2009/08/30 05:17:44 hasso Exp $
+#CC=$(EGCS)
-BASE_CFLAGS=-Dstricmp=strcasecmp
+-RELEASE_CFLAGS=$(BASE_CFLAGS) -g -mpentiumpro -O6 -ffast-math -funroll-loops \
+BASE_CFLAGS=-Dstricmp=strcasecmp -I${X11BASE}/include ${CFLAGS}
- RELEASE_CFLAGS=$(BASE_CFLAGS) -g -mpentiumpro -O6 -ffast-math -funroll-loops \
++RELEASE_CFLAGS=$(BASE_CFLAGS) -g -mtune=pentiumpro -O6 -ffast-math -funroll-loops \
-fomit-frame-pointer -fexpensive-optimizations
DEBUG_CFLAGS=$(BASE_CFLAGS) -g
-LDFLAGS=-lm
@@ -45,7 +46,7 @@ $NetBSD: patch-ai,v 1.9 2009/08/30 05:17:44 hasso Exp $
GLCFLAGS=-DGLQUAKE -I$(MESA_DIR)/include -I/usr/include/glide
DO_CC=$(CC) $(CFLAGS) -o $@ -c $<
-@@ -57,19 +59,28 @@
+@@ -57,19 +59,28 @@ DO_GL_DEBUG_CC=$(CC) $(DEBUG_CFLAGS) $(G
DO_X11_CC=$(CC) $(CFLAGS) $(XCFLAGS) -o $@ -c $<
DO_X11_DEBUG_CC=$(CC) $(DEBUG_CFLAGS) $(XCFLAGS) -o $@ -c $<
DO_O_CC=$(CC) -O $(CFLAGS) -o $@ -c $<