aboutsummaryrefslogtreecommitdiff
path: root/games/glmaze/files
diff options
context:
space:
mode:
authorAdam Weinberger <adamw@FreeBSD.org>2003-06-06 03:18:22 +0000
committerAdam Weinberger <adamw@FreeBSD.org>2003-06-06 03:18:22 +0000
commit98429e0a05632846624ddd353338fbd409e4558b (patch)
treec491bdb60949504836e60aaba33c553cbd03aef9 /games/glmaze/files
parenta4e862af1a27a56ce8f7fde60753082c1712f63c (diff)
downloadports-98429e0a05632846624ddd353338fbd409e4558b.tar.gz
ports-98429e0a05632846624ddd353338fbd409e4558b.zip
Notes
Diffstat (limited to 'games/glmaze/files')
-rw-r--r--games/glmaze/files/patch-Makefile36
-rw-r--r--games/glmaze/files/patch-shot.c10
-rw-r--r--games/glmaze/files/patch-sound.c11
3 files changed, 57 insertions, 0 deletions
diff --git a/games/glmaze/files/patch-Makefile b/games/glmaze/files/patch-Makefile
new file mode 100644
index 000000000000..b8ad19757aa4
--- /dev/null
+++ b/games/glmaze/files/patch-Makefile
@@ -0,0 +1,36 @@
+--- Makefile.orig Wed Jan 23 06:44:46 2002
++++ Makefile Thu Jun 5 19:54:58 2003
+@@ -2,16 +2,16 @@
+
+ VERSION = "1.1a"
+
+-DESTPATH = /usr/local
++DESTPATH = ${PREFIX}
+ BINPATH = $(DESTPATH)/bin
+-GAMEPATH = $(DESTPATH)/games/glMaze
++GAMEPATH = $(DESTPATH)/share/glmaze
+ MANPATH = $(DESTPATH)/man/man1
+
+ OBJECTS = load_maze.o main.o controls.o shot.o player.o net.o \
+ username.o radar.o prefs.o sound.o
+
+-SDL_FLAGS=`sdl-config --cflags`
+-SDL_LIBS=`sdl-config --libs`
++SDL_FLAGS=`sdl11-config --cflags`
++SDL_LIBS=`sdl11-config --libs`
+
+ # comment the follwing if you don't want sound
+ CC += -DSOUND
+@@ -31,10 +31,10 @@
+ prefs.o: prefs.c maze.h
+
+ .c.o:
+- $(CC) -DVERSION=\"$(VERSION)\" $(SDL_FLAGS) -c -o $@ $<
++ $(CC) -I${X11BASE}/include -DVERSION=\"$(VERSION)\" $(SDL_FLAGS) -c -o $@ $<
+
+ glmaze: $(OBJECTS)
+- $(CC) $(OBJECTS) -o $@ $(SDL_LIBS) -lGL -lGLU -lm
++ $(CC) $(OBJECTS) -o $@ -L${X11BASE}/lib $(SDL_LIBS) -lGL -lGLU -lm
+
+ clean:
+ @echo Cleaning up...
diff --git a/games/glmaze/files/patch-shot.c b/games/glmaze/files/patch-shot.c
new file mode 100644
index 000000000000..7330ae2f4aed
--- /dev/null
+++ b/games/glmaze/files/patch-shot.c
@@ -0,0 +1,10 @@
+--- shot.c.orig Thu Jun 5 19:55:39 2003
++++ shot.c Thu Jun 5 19:56:34 2003
+@@ -47,6 +47,7 @@
+ "/usr/games/glmaze/",
+ "/usr/local/games/glMaze/",
+ "/usr/local/games/glmaze/",
++ "%%PREFIX%%/share/glmaze/",
+ "./",
+ ""
+ };
diff --git a/games/glmaze/files/patch-sound.c b/games/glmaze/files/patch-sound.c
new file mode 100644
index 000000000000..ab3771b21533
--- /dev/null
+++ b/games/glmaze/files/patch-sound.c
@@ -0,0 +1,11 @@
+--- sound.c.orig Thu Jun 5 19:49:36 2003
++++ sound.c Thu Jun 5 19:50:22 2003
+@@ -18,7 +18,7 @@
+ #include "maze.h"
+
+ #ifdef SOUND
+-#include <SDL/SDL_mixer.h>
++#include <SDL_mixer.h>
+ Mix_Chunk *sound[5];
+ Mix_Music *music;
+ #endif