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 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 + #include + #include ++#ifdef __FreeBSD__ ++#include ++#else + #include ++#endif + #include + #include + 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