summaryrefslogtreecommitdiff
path: root/games/xnibbles
diff options
context:
space:
mode:
authorSteve Price <steve@FreeBSD.org>1998-03-15 20:38:42 +0000
committerSteve Price <steve@FreeBSD.org>1998-03-15 20:38:42 +0000
commita17a1365ec65c1844289d142b08d2487c7966aae (patch)
tree11c93ba7a2659c925dd229bebe8b80e847c2f96c /games/xnibbles
parentActivate xlaby. (diff)
A simple X11 snake game.
PR: 5905 Submitted by: Andrey Zakhvatov <andy@icc.surw.chel.su>
Notes
Notes: svn path=/head/; revision=10160
Diffstat (limited to 'games/xnibbles')
-rw-r--r--games/xnibbles/Makefile45
-rw-r--r--games/xnibbles/distinfo1
-rw-r--r--games/xnibbles/files/patch-aa39
-rw-r--r--games/xnibbles/files/patch-ab14
-rw-r--r--games/xnibbles/pkg-comment1
-rw-r--r--games/xnibbles/pkg-descr21
-rw-r--r--games/xnibbles/pkg-plist33
7 files changed, 154 insertions, 0 deletions
diff --git a/games/xnibbles/Makefile b/games/xnibbles/Makefile
new file mode 100644
index 000000000000..840bac343906
--- /dev/null
+++ b/games/xnibbles/Makefile
@@ -0,0 +1,45 @@
+# New ports collection makefile for: xnibbles
+# Version required: 1.0b3
+# Date created: 2 March 1998
+# Whom: Andrey Zakhvatov
+#
+# $Id$
+#
+
+DISTNAME= xnibbles-1.0BETA3
+PKGNAME= xnibbles-1.0b3
+CATEGORIES= games x11
+MASTER_SITES= http://www.tjhsst.edu/xnibbles/
+
+MAINTAINER= andy@icc.surw.chel.su
+
+LIB_DEPENDS= Xpm\\.4\\.:${PORTSDIR}/graphics/xpm
+
+ALL_TARGET= linux
+USE_GMAKE= yes
+USE_X11= yes
+WRKSRC= ${WRKDIR}/xnibbles
+
+MAN6= xnibbles.6
+
+do-install:
+ @ ${INSTALL_PROGRAM} ${WRKSRC}/xnibbles ${PREFIX}/bin
+ @ ${INSTALL_MAN} ${WRKSRC}/xnibbles.6 ${PREFIX}/man/man6
+ @ ${MKDIR} ${PREFIX}/share/xnibbles/sounds
+ @ ${INSTALL_DATA} ${WRKSRC}/sounds/*.ub ${PREFIX}/share/xnibbles/sounds
+ @ ${MKDIR} ${PREFIX}/share/xnibbles/levels
+ @ if [ -f ${PREFIX}/share/xnibbles/levels/LEVELS ]; then \
+ ${RM} ${PREFIX}/share/xnibbles/levels/LEVELS; \
+ fi
+ @ ${TOUCH} ${PREFIX}/share/xnibbles/levels/LEVELS
+.for file in 001 002 003 004 005 006 007 008 009 010 011 012
+ @ ${ECHO} ${PREFIX}/share/xnibbles/levels/level${file}.xnl >> ${PREFIX}/share/xnibbles/levels/LEVELS
+ @ ${INSTALL_DATA} ${WRKSRC}/levels/*.xnl ${PREFIX}/share/xnibbles/levels
+.endfor
+ @ ${MKDIR} ${PREFIX}/share/doc/xnibbles
+.for file in COPYING README TODO
+ @ ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/xnibbles
+.endfor
+ @ ${INSTALL_DATA} ${WRKSRC}/levels/README ${PREFIX}/share/doc/xnibbles/README.levels
+
+.include <bsd.port.mk>
diff --git a/games/xnibbles/distinfo b/games/xnibbles/distinfo
new file mode 100644
index 000000000000..da9ab482cf44
--- /dev/null
+++ b/games/xnibbles/distinfo
@@ -0,0 +1 @@
+MD5 (xnibbles-1.0BETA3.tar.gz) = 0ea17759f099c1de038abed89831219c
diff --git a/games/xnibbles/files/patch-aa b/games/xnibbles/files/patch-aa
new file mode 100644
index 000000000000..cc4bdec18789
--- /dev/null
+++ b/games/xnibbles/files/patch-aa
@@ -0,0 +1,39 @@
+--- Makefile Thu Feb 26 00:14:35 1998
++++ /home/andy/tmp/wrk/Makefile Tue Mar 3 00:00:39 1998
+@@ -23,12 +23,14 @@
+ # Compiler to use (C++ compiler _please_)
+ CC = g++
+
+- # Directory for XNibbles specific data
+- # This must be set correctly at compile time
+- DATADIR = /usr/local/games/xnibbles
+-
+ # Prefix to find bin and man directories for installation
++ifndef PREFIX
+ PREFIX = /usr/local
++endif
++
++ # Directory for XNibbles specific data
++ # This must be set correctly at compile time
++ DATADIR = $(PREFIX)/share/xnibbles
+
+ # Install program
+ INSTALL = /usr/bin/install
+@@ -40,7 +42,7 @@
+ ### LINUX ONLY OPTIONS ###
+
+ # Requires kernel sound support, change from 0 to 1 if you want it
+- SOUND = 0
++ SOUND = 1
+ SOUNDDEV = /dev/dsp
+
+ # Requires kernel joystick support, change from 0 to 1 if you want it
+@@ -77,7 +79,7 @@
+ linux:
+ $(MAKE) OBJECTS=$(OBJECTS) \
+ CC=$(CC) LDFLAGS='-L/usr/X11R6/lib' \
+- CFLAGS='-Wall -O2 $(SDEV) \
++ CFLAGS+='-Wall $(SDEV) \
+ -I/usr/X11R6/include -fwritable-strings \
+ $(JDEV) -DDATADIR=\"$(DATADIR)\"' \
+ xnibbles
diff --git a/games/xnibbles/files/patch-ab b/games/xnibbles/files/patch-ab
new file mode 100644
index 000000000000..b6a12fd8dc18
--- /dev/null
+++ b/games/xnibbles/files/patch-ab
@@ -0,0 +1,14 @@
+--- sound.c Sun Feb 22 22:52:08 1998
++++ /home/andy/tmp/wrk/sound.c Mon Mar 2 23:25:48 1998
+@@ -24,7 +24,11 @@
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <fcntl.h>
++#ifdef __FreeBSD__
++#include <machine/soundcard.h>
++#else
+ #include <linux/soundcard.h>
++#endif
+ #include <sys/ioctl.h>
+ #include <sys/wait.h>
+
diff --git a/games/xnibbles/pkg-comment b/games/xnibbles/pkg-comment
new file mode 100644
index 000000000000..a0b01155677f
--- /dev/null
+++ b/games/xnibbles/pkg-comment
@@ -0,0 +1 @@
+simple X11 snake game
diff --git a/games/xnibbles/pkg-descr b/games/xnibbles/pkg-descr
new file mode 100644
index 000000000000..c3c5a1a2f1ff
--- /dev/null
+++ b/games/xnibbles/pkg-descr
@@ -0,0 +1,21 @@
+ 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.
+
+ The goal of the game is to work your way through the
+levels, which become harder and harder. You do this by running
+your snake over the blue diamonds. For every 10 diamonds you
+acquire, you move up one level. Along the way, a number of
+other diamonds will be encountered. Gold doubles your length,
+and red halves your length, both giving you points. Green
+gives you an extra life. You die if you run into yourself or a
+wall. Question marks serve as warps.
+
+ The authors of XNibbles are Ian Peters (ipeters@acm.org),
+and Sean MacIsaac (sjm@acm.org).
+ XNibbles is Copyleft'd under the GNU Public License. See
+the file COPYING for information.
diff --git a/games/xnibbles/pkg-plist b/games/xnibbles/pkg-plist
new file mode 100644
index 000000000000..f14304565427
--- /dev/null
+++ b/games/xnibbles/pkg-plist
@@ -0,0 +1,33 @@
+bin/xnibbles
+man/man6/xnibbles.6.gz
+share/doc/xnibbles/COPYING
+share/doc/xnibbles/README
+share/doc/xnibbles/README.levels
+share/doc/xnibbles/TODO
+share/xnibbles/levels/LEVELS
+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/template.xnl
+share/xnibbles/sounds/appear.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/start.ub
+share/xnibbles/sounds/teleport.ub
+@dirrm share/doc/xnibbles
+@dirrm share/xnibbles/levels
+@dirrm share/xnibbles/sounds
+@dirrm share/xnibbles