summaryrefslogtreecommitdiff
path: root/games/xnibbles
diff options
context:
space:
mode:
authorgarbled <garbled>1998-08-23 09:55:26 +0000
committergarbled <garbled>1998-08-23 09:55:26 +0000
commit4d10c2c39e04703e7306732a3a111d68436fa2bf (patch)
treea92dcea6180fa7bd8aafc29346ed4f11d448f06d /games/xnibbles
parent79c6842540691ff6425dcbc2744ce6613b00c888 (diff)
downloadpkgsrc-4d10c2c39e04703e7306732a3a111d68436fa2bf.tar.gz
Add new pkg for xnibbles-1.0b4
a winding snakes game for X11
Diffstat (limited to 'games/xnibbles')
-rw-r--r--games/xnibbles/Makefile19
-rw-r--r--games/xnibbles/files/md53
-rw-r--r--games/xnibbles/patches/patch-aa72
-rw-r--r--games/xnibbles/patches/patch-ab12
-rw-r--r--games/xnibbles/pkg/COMMENT1
-rw-r--r--games/xnibbles/pkg/DESCR4
-rw-r--r--games/xnibbles/pkg/PLIST42
7 files changed, 153 insertions, 0 deletions
diff --git a/games/xnibbles/Makefile b/games/xnibbles/Makefile
new file mode 100644
index 00000000000..0f111d0447f
--- /dev/null
+++ b/games/xnibbles/Makefile
@@ -0,0 +1,19 @@
+# $NetBSD: Makefile,v 1.1 1998/08/23 09:55:26 garbled Exp $
+#
+
+DISTNAME= xnibbles-1.0BETA4
+PKGNAME= xnibbles-1.0b4
+CATEGORIES= games x11
+MASTER_SITES= http://www.tjhsst.edu/xnibbles/
+
+MAINTAINER= root@garbled.net
+HOMEPAGE= http://www.tjhsst.edu/xnibbles/
+
+DEPENDS+= xpm-3.4k:../../graphics/xpm
+
+WRKSRC= ${WRKDIR}/xnibbles
+USE_X11= yes
+USE_GMAKE= yes
+ALL_TARGET= netbsd
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/games/xnibbles/files/md5 b/games/xnibbles/files/md5
new file mode 100644
index 00000000000..9546ab9755d
--- /dev/null
+++ b/games/xnibbles/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1 1998/08/23 09:55:27 garbled Exp $
+
+MD5 (xnibbles-1.0BETA4.tar.gz) = d498e1faaea4388175e6e74685c22872
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>
diff --git a/games/xnibbles/pkg/COMMENT b/games/xnibbles/pkg/COMMENT
new file mode 100644
index 00000000000..0bca9f39797
--- /dev/null
+++ b/games/xnibbles/pkg/COMMENT
@@ -0,0 +1 @@
+a winding snakes game for X11
diff --git a/games/xnibbles/pkg/DESCR b/games/xnibbles/pkg/DESCR
new file mode 100644
index 00000000000..5e660fdf772
--- /dev/null
+++ b/games/xnibbles/pkg/DESCR
@@ -0,0 +1,4 @@
+XNibbles is a game for X11R6. It is conceptually based on nibbles, which was a
+program that came with qbasic for MS-DOS. XNibbles is actually written in C++,
+and shares no code with qbasic nibbles. For those of you who have played the
+game before, you can attest to the fact that it is extremely fun and addictive.
diff --git a/games/xnibbles/pkg/PLIST b/games/xnibbles/pkg/PLIST
new file mode 100644
index 00000000000..8ff19d858f0
--- /dev/null
+++ b/games/xnibbles/pkg/PLIST
@@ -0,0 +1,42 @@
+@comment $NetBSD: PLIST,v 1.1 1998/08/23 09:55:27 garbled Exp $
+bin/xnibbles
+bin/xnleditor
+man/man6/xnibbles.6
+share/xnibbles/levels/level001.xnl
+share/xnibbles/levels/level002.xnl
+share/xnibbles/levels/level003.xnl
+share/xnibbles/levels/level004.xnl
+share/xnibbles/levels/level005.xnl
+share/xnibbles/levels/level006.xnl
+share/xnibbles/levels/level007.xnl
+share/xnibbles/levels/level008.xnl
+share/xnibbles/levels/level009.xnl
+share/xnibbles/levels/level010.xnl
+share/xnibbles/levels/level011.xnl
+share/xnibbles/levels/level012.xnl
+share/xnibbles/levels/level013.xnl
+share/xnibbles/levels/level014.xnl
+share/xnibbles/levels/level015.xnl
+share/xnibbles/levels/level016.xnl
+share/xnibbles/levels/level017.xnl
+share/xnibbles/levels/level018.xnl
+share/xnibbles/levels/level019.xnl
+share/xnibbles/levels/level020.xnl
+share/xnibbles/levels/template.xnl
+share/xnibbles/levels/README
+share/xnibbles/levels/LEVELS
+share/xnibbles/sounds/appear.ub
+share/xnibbles/sounds/break.ub
+share/xnibbles/sounds/destroy.ub
+share/xnibbles/sounds/double.ub
+share/xnibbles/sounds/gotdiamond.ub
+share/xnibbles/sounds/half.ub
+share/xnibbles/sounds/laughter.ub
+share/xnibbles/sounds/life.ub
+share/xnibbles/sounds/pop.ub
+share/xnibbles/sounds/spring.ub
+share/xnibbles/sounds/start.ub
+share/xnibbles/sounds/teleport.ub
+@dirrm share/xnibbles/levels
+@dirrm share/xnibbles/sounds
+@dirrm share/xnibbles