diff options
author | garbled <garbled@pkgsrc.org> | 1998-08-23 09:55:26 +0000 |
---|---|---|
committer | garbled <garbled@pkgsrc.org> | 1998-08-23 09:55:26 +0000 |
commit | cafe756656abc0d5f53327f45ad6e817c38de37e (patch) | |
tree | a92dcea6180fa7bd8aafc29346ed4f11d448f06d /games/xnibbles/patches | |
parent | 24bbc2c23db4a018c97b5008e52193ddde47c054 (diff) | |
download | pkgsrc-cafe756656abc0d5f53327f45ad6e817c38de37e.tar.gz |
Add new pkg for xnibbles-1.0b4
a winding snakes game for X11
Diffstat (limited to 'games/xnibbles/patches')
-rw-r--r-- | games/xnibbles/patches/patch-aa | 72 | ||||
-rw-r--r-- | games/xnibbles/patches/patch-ab | 12 |
2 files changed, 84 insertions, 0 deletions
diff --git a/games/xnibbles/patches/patch-aa b/games/xnibbles/patches/patch-aa new file mode 100644 index 00000000000..0e7fb2d0816 --- /dev/null +++ b/games/xnibbles/patches/patch-aa @@ -0,0 +1,72 @@ +$NetBSD: patch-aa,v 1.1 1998/08/23 09:55:27 garbled Exp $ +--- Makefile.orig Thu Mar 5 15:06:19 1998 ++++ Makefile Sun Aug 23 02:42:30 1998 +@@ -27,6 +27,6 @@ + # This must be set correctly at compile time +- DATADIR = /usr/local/games/xnibbles ++ DATADIR = $(PREFIX)/share/xnibbles + + # Prefix to find bin and man directories for installation +- PREFIX = /usr/local ++# PREFIX = $(PREFIX) + +@@ -36,4 +36,4 @@ + # User to own the program +- USER = 0 +- GROUP = 0 ++ USER = root ++ GROUP = wheel + +@@ -43,6 +43,6 @@ + SOUND = 1 +- SOUNDDEV = /dev/dsp ++ SOUNDDEV = /dev/audio + + # Requires kernel joystick support, change from 0 to 1 if you want it +- JOYSTICK = 1 ++ JOYSTICK = 0 + JOYSTICK0DEV = /dev/js0 +@@ -68,2 +68,3 @@ + @echo "make irix Irix 5.3 (6.x?)" ++ @echo "make netbsd NetBSD 1.3 or higher" + @echo "" +@@ -81,2 +82,11 @@ + ++netbsd: ++ $(MAKE) OBJECTS='$(OBJECTS)' \ ++ CC=$(CC) LDFLAGS='-Wl,-R$(X11BASE)/lib -L$(X11BASE)/lib' \ ++ CFLAGS='-Wall -O2 $(SDEV) \ ++ -I$(X11BASE)/include -fwritable-strings \ ++ $(JDEV) \ ++ -DDATADIR=\"$(DATADIR)\"' \ ++ all ++ + irix: +@@ -92,3 +102,3 @@ + timer.o walls.o worm.o xnibbles.o xpms.o $(OBJECTS) deadWorm.o counter.o \ +- -o xnibbles -lm -lXpm -lX11 ++ -o xnibbles -lm -lXpm -lX11 -lossaudio + +@@ -120,12 +130,12 @@ + $(INSTALL) -d $(DATADIR)/sounds -g $(GROUP) -m 755 -o $(USER) +- $(INSTALL) -d $(PREFIX) -g $(GROUP) -m 755 -o $(USER) +- $(INSTALL) -d $(PREFIX)/bin -g $(GROUP) -m 755 -o $(USER) +- $(INSTALL) -d $(PREFIX)/man -g $(GROUP) -m 755 -o $(USER) +- $(INSTALL) -d $(PREFIX)/man/man6 -g $(GROUP) -m 755 -o $(USER) +- $(INSTALL) -g $(GROUP) -m 644 -o $(USER) levels/*.xnl $(DATADIR)/levels +- $(INSTALL) -g $(GROUP) -m 644 -o $(USER) levels/README $(DATADIR)/levels +- $(INSTALL) -g $(GROUP) -m 644 -o $(USER) sounds/*.ub $(DATADIR)/sounds +- $(INSTALL) -g $(GROUP) -m 755 -o $(USER) xnibbles $(PREFIX)/bin +- $(INSTALL) -g $(GROUP) -m 755 -o $(USER) xnleditor/xnleditor $(PREFIX)/bin +- $(INSTALL) -g $(GROUP) -m 644 -o $(USER) xnibbles.6 $(PREFIX)/man/man6 ++# $(INSTALL) -d $(PREFIX) -g $(GROUP) -m 755 -o $(USER) ++# $(INSTALL) -d $(PREFIX)/bin -g $(GROUP) -m 755 -o $(USER) ++# $(INSTALL) -d $(PREFIX)/man -g $(GROUP) -m 755 -o $(USER) ++# $(INSTALL) -d $(PREFIX)/man/man6 -g $(GROUP) -m 755 -o $(USER) ++ $(INSTALL) -c -g $(GROUP) -m 644 -o $(USER) levels/*.xnl $(DATADIR)/levels ++ $(INSTALL) -c -g $(GROUP) -m 644 -o $(USER) levels/README $(DATADIR)/levels ++ $(INSTALL) -c -g $(GROUP) -m 644 -o $(USER) sounds/*.ub $(DATADIR)/sounds ++ $(INSTALL) -c -s -g $(GROUP) -m 755 -o $(USER) xnibbles $(PREFIX)/bin ++ $(INSTALL) -c -s -g $(GROUP) -m 755 -o $(USER) xnleditor/xnleditor $(PREFIX)/bin ++ $(INSTALL) -c -g $(GROUP) -m 644 -o $(USER) xnibbles.6 $(PREFIX)/man/man6 + ./make-LEVELS $(DATADIR) OOGA diff --git a/games/xnibbles/patches/patch-ab b/games/xnibbles/patches/patch-ab new file mode 100644 index 00000000000..e76022b468f --- /dev/null +++ b/games/xnibbles/patches/patch-ab @@ -0,0 +1,12 @@ +$NetBSD: patch-ab,v 1.1 1998/08/23 09:55:27 garbled Exp $ +--- sound.c.orig Sun Aug 23 02:24:57 1998 ++++ sound.c Sun Aug 23 02:25:31 1998 +@@ -26,3 +26,7 @@ + #include <fcntl.h> +-#include <linux/soundcard.h> ++#ifdef __NetBSD__ ++ #include <soundcard.h> ++#else ++ #include <linux/soundcard.h> ++#endif + #include <sys/ioctl.h> |