summaryrefslogtreecommitdiff
path: root/games/quake/patches/patch-ae
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2000-02-01 02:30:29 +0000
committerwiz <wiz@pkgsrc.org>2000-02-01 02:30:29 +0000
commit4eb5e8ac6f755f486d4cade5e29c5176074d4f57 (patch)
tree313934adfc76b9f6e4fa635a0171b582ca797775 /games/quake/patches/patch-ae
parent08e833403e143dfa9357d623edda2a32c5401107 (diff)
downloadpkgsrc-4eb5e8ac6f755f486d4cade5e29c5176074d4f57.tar.gz
Quake now playable on NetBSD-1.4.x-i386. Heavily based on pkg/9270 by
Brad Spencer <brad@anduin.eldar.org>, with some modifications. Caveats: ELF builds fail; shareware WADs (level files) have to be gotten separately; playing audio from CDs seems to have problems (see pkg/9270); GLX Quakeworld client probably doesn't work; Quakeworld code perhaps triggers optimization bug? Committed mainly to avoid duplication of work, and for the 1.4.x/i386 users/gamers :-)
Diffstat (limited to 'games/quake/patches/patch-ae')
-rw-r--r--games/quake/patches/patch-ae114
1 files changed, 103 insertions, 11 deletions
diff --git a/games/quake/patches/patch-ae b/games/quake/patches/patch-ae
index 7de0754d02a..b06d31dd498 100644
--- a/games/quake/patches/patch-ae
+++ b/games/quake/patches/patch-ae
@@ -1,12 +1,104 @@
-$NetBSD: patch-ae,v 1.1 2000/01/13 00:35:06 wiz Exp $
+$NetBSD: patch-ae,v 1.2 2000/02/01 02:30:33 wiz Exp $
---- client/gl_vidlinuxglx.c~ Tue Dec 21 18:45:54 1999
-+++ client/gl_vidlinuxglx.c Thu Jan 13 01:02:59 2000
-@@ -20,7 +20,6 @@
- #include <termios.h>
- #include <sys/ioctl.h>
- #include <sys/stat.h>
--#include <sys/vt.h>
- #include <stdarg.h>
- #include <stdio.h>
- #include <signal.h>
+--- QW/Makefile.Linux Wed Apr 21 20:16:24 1999
++++ ../work/QW/Makefile.Linux Wed Jan 19 21:37:30 2000
+@@ -27,41 +27,51 @@
+ RPMARCH=i386
+ endif
+
+-MAINDIR=/grog/Projects/QW
+-
+-BUILD_DEBUG_DIR=debug$(ARCH)$(GLIBC)
+-BUILD_RELEASE_DIR=release$(ARCH)$(GLIBC)
++#BUILD_DEBUG_DIR=debug$(ARCH)$(GLIBC)
++#BUILD_RELEASE_DIR=release$(ARCH)$(GLIBC)
++BUILD_DEBUG_DIR=debug_version
++BUILD_RELEASE_DIR=release_version
+ CLIENT_DIR=$(MAINDIR)/client
+ SERVER_DIR=$(MAINDIR)/server
+
+ MESA_DIR=/usr/local/src/Mesa-3.0
+
+ CC=gcc
+-BASE_CFLAGS=-Wall -Dstricmp=strcasecmp -I$(CLIENT_DIR) -I$(SERVER_DIR)
++BASE_CFLAGS=-Wall -Dstricmp=strcasecmp -I$(CLIENT_DIR) -I$(SERVER_DIR) \
++ ${CFLAGS} -I${X11BASE}/include -O0
+ DEBUG_CFLAGS=$(BASE_CFLAGS) -g
+ ifeq ($(ARCH),axp)
+ RELEASE_CFLAGS=$(BASE_CFLAGS) -ffast-math -funroll-loops \
+ -fomit-frame-pointer -fexpensive-optimizations
+ else
+-RELEASE_CFLAGS=$(BASE_CFLAGS) -m486 -O6 -ffast-math -funroll-loops \
++# 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
+ endif
+ GLCFLAGS=-DGLQUAKE -I/usr/local/src/Mesa-3.0/include -I/usr/include/glide
+
+-LDFLAGS=-lm
++LDFLAGS=-lm -lossaudio
+ SVGALDFLAGS=-lvga
+ XLDFLAGS=-L/usr/X11R6/lib -lX11 -lXext
+-GL_SVGA_LDFLAGS=-L/usr/X11/lib -L/usr/local/src/Mesa-3.0/lib -lm -lMesaGL -lglide2x -lX11 -lXext -lvga
+-GL_X11_LDFLAGS=-L/usr/X11/lib -L/usr/local/src/Mesa-3.0/lib -lm -lGL -lX11 -lXext
++GL_SVGA_LDFLAGS=-L/usr/X11R6/lib -L/usr/local/src/Mesa-3.0/lib -lm -lMesaGL -lglide2x -lX11 -lXext -lvga
++GL_X11_LDFLAGS=-L/usr/X11R6/lib -L/usr/local/src/Mesa-3.0/lib -lm -lGL -lX11 -lXext
+
+ DO_CC=$(CC) $(CFLAGS) -o $@ -c $<
+-DO_O_CC=$(CC) -O $(CFLAGS) -o $@ -c $<
++#DO_O_CC=$(CC) -O $(CFLAGS) -o $@ -c $<
++DO_O_CC=$(CC) $(CFLAGS) -o $@ -c $<
+ DO_GL_CC=$(CC) $(CFLAGS) $(GLCFLAGS) -o $@ -c $<
+ DO_SERVER_CC=$(CC) -DSERVERONLY $(CFLAGS) -o $@ -c $<
+
+-DO_AS=$(CC) $(CFLAGS) -DELF -x assembler-with-cpp -o $@ -c $<
+-DO_GL_AS=$(CC) $(CFLAGS) $(GLCFLAGS) -DELF -x assembler-with-cpp -o $@ -c $<
++DO_AS=$(CC) $(CFLAGS) -x assembler-with-cpp -o $@ -c $<
++#DO_AS=$(CC) $(CFLAGS) -DAOUT -x assembler-with-cpp -o $@ -c $<
++#DO_AS=$(CC) $(CFLAGS) -DELF -x assembler-with-cpp -o $@ -c $<
++DO_GL_AS=$(CC) $(CFLAGS) $(GLCFLAGS) -x assembler-with-cpp -o $@ -c $<
++#DO_GL_AS=$(CC) $(CFLAGS) $(GLCFLAGS) -DAOUT -x assembler-with-cpp -o $@ -c $<
++#DO_GL_AS=$(CC) $(CFLAGS) $(GLCFLAGS) -DELF -x assembler-with-cpp -o $@ -c $<
+
+ #############################################################################
+ # SETUP AND BUILD
+@@ -71,7 +81,7 @@
+ TARGETS=$(BUILDDIR)/qwsv
+ #$(BUILDDIR)/qwcl.x11
+ else
+-TARGETS=$(BUILDDIR)/qwsv $(BUILDDIR)/qwcl $(BUILDDIR)/qwcl.x11 $(BUILDDIR)/glqwcl $(BUILDDIR)/glqwcl.glx
++TARGETS=$(BUILDDIR)/qwsv $(BUILDDIR)/qwcl.x11 $(BUILDDIR)/glqwcl.glx
+ endif
+
+ build_debug:
+@@ -485,7 +495,7 @@
+ $(BUILDDIR)/client/zone.o : $(CLIENT_DIR)/zone.c
+ $(DO_CC)
+
+-$(BUILDDIR)/client/cd_linux.o : $(CLIENT_DIR)/cd_linux.c
++$(BUILDDIR)/client/cd_linux.o : $(CLIENT_DIR)/cd_linux.c
+ $(DO_CC)
+
+ $(BUILDDIR)/client/sys_linux.o : $(CLIENT_DIR)/sys_linux.c
+@@ -609,7 +619,7 @@
+ $(BUILDDIR)/glclient/math.o \
+ $(BUILDDIR)/glclient/snd_mixa.o \
+ $(BUILDDIR)/glclient/sys_dosa.o
+-
++
+ GLQWCL_SVGA_OBJS = $(BUILDDIR)/glclient/gl_vidlinux.o
+ GLQWCL_X11_OBJS = $(BUILDDIR)/glclient/gl_vidlinuxglx.o
+
+@@ -715,7 +725,7 @@
+ $(BUILDDIR)/glclient/zone.o : $(CLIENT_DIR)/zone.c
+ $(DO_GL_CC)
+
+-$(BUILDDIR)/glclient/cd_linux.o : $(CLIENT_DIR)/cd_linux.c
++$(BUILDDIR)/glclient/cd_linux.o : $(CLIENT_DIR)/cd_linux.c
+ $(DO_GL_CC)
+
+ $(BUILDDIR)/glclient/sys_linux.o : $(CLIENT_DIR)/sys_linux.c