Date: Tue, 3 Mar 1998 11:12:41 +0300 (MSK) From: Andrey Zakhvatov <andy@icc.surw.chel.su> To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: ports/5905: New port: xnibbles-1.0b3 Message-ID: <199803030812.LAA05081@icc.surw.chel.su>
next in thread | raw e-mail | index | archive | help
>Number: 5905 >Category: ports >Synopsis: New port: xnibbles-1.0b3 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Mar 3 00:20:00 PST 1998 >Last-Modified: >Originator: Andrey Zakhvatov >Organization: South Ural Railway ICC >Release: FreeBSD 2.2.2-RELEASE i386 >Environment: >Description: This is a port of the XNibbles - simple X11 snake game XNibbles is a game for X11R6. It is conceptually based on nibbles, which was a program that came with qbasic for MS-DOS. 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. # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # xnibbles-1.0b3 # xnibbles-1.0b3/Makefile # xnibbles-1.0b3/files # xnibbles-1.0b3/files/md5 # xnibbles-1.0b3/patches # xnibbles-1.0b3/patches/patch-ab # xnibbles-1.0b3/patches/patch-aa # xnibbles-1.0b3/pkg # xnibbles-1.0b3/pkg/COMMENT # xnibbles-1.0b3/pkg/PLIST # xnibbles-1.0b3/pkg/DESCR # echo c - xnibbles-1.0b3 mkdir -p xnibbles-1.0b3 > /dev/null 2>&1 echo x - xnibbles-1.0b3/Makefile sed 's/^X//' >xnibbles-1.0b3/Makefile << 'END-of-xnibbles-1.0b3/Makefile' X# New ports collection makefile for: xnibbles X# Version required: 1.0b3 X# Date created: 2 March 1998 X# Whom: Andrey Zakhvatov X# X# $Id$ X# X XDISTNAME= xnibbles-1.0BETA3 XPKGNAME= xnibbles-1.0b3 XCATEGORIES= games x11 XMASTER_SITES= http://www.tjhsst.edu/xnibbles/ X XMAINTAINER= andy@icc.surw.chel.su X XLIB_DEPENDS= Xpm\\.4\\.:${PORTSDIR}/graphics/xpm X XALL_TARGET= linux XUSE_GMAKE= yes XUSE_X11= yes XWRKSRC= ${WRKDIR}/xnibbles X XMAN6= xnibbles.6 X Xdo-install: X @ ${INSTALL_PROGRAM} ${WRKSRC}/xnibbles ${PREFIX}/bin X @ ${INSTALL_MAN} ${WRKSRC}/xnibbles.6 ${PREFIX}/man/man6 X @ ${MKDIR} ${PREFIX}/share/xnibbles/sounds X @ ${INSTALL_DATA} ${WRKSRC}/sounds/*.ub ${PREFIX}/share/xnibbles/sounds X @ ${MKDIR} ${PREFIX}/share/xnibbles/levels X @ if [ -f ${PREFIX}/share/xnibbles/levels/LEVELS ]; then \ X ${RM} ${PREFIX}/share/xnibbles/levels/LEVELS; \ X fi X @ ${TOUCH} ${PREFIX}/share/xnibbles/levels/LEVELS X.for file in 001 002 003 004 005 006 007 008 009 010 011 012 X @ ${ECHO} ${PREFIX}/share/xnibbles/levels/level${file}.xnl >> ${PREFIX}/share/xnibbles/levels/LEVELS X @ ${INSTALL_DATA} ${WRKSRC}/levels/*.xnl ${PREFIX}/share/xnibbles/levels X.endfor X @ ${MKDIR} ${PREFIX}/share/doc/xnibbles X.for file in COPYING README TODO X @ ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/xnibbles X.endfor X @ ${INSTALL_DATA} ${WRKSRC}/levels/README ${PREFIX}/share/doc/xnibbles/README.levels X X.include <bsd.port.mk> END-of-xnibbles-1.0b3/Makefile echo c - xnibbles-1.0b3/files mkdir -p xnibbles-1.0b3/files > /dev/null 2>&1 echo x - xnibbles-1.0b3/files/md5 sed 's/^X//' >xnibbles-1.0b3/files/md5 << 'END-of-xnibbles-1.0b3/files/md5' XMD5 (xnibbles-1.0BETA3.tar.gz) = 0ea17759f099c1de038abed89831219c END-of-xnibbles-1.0b3/files/md5 echo c - xnibbles-1.0b3/patches mkdir -p xnibbles-1.0b3/patches > /dev/null 2>&1 echo x - xnibbles-1.0b3/patches/patch-ab sed 's/^X//' >xnibbles-1.0b3/patches/patch-ab << 'END-of-xnibbles-1.0b3/patches/patch-ab' X--- sound.c Sun Feb 22 22:52:08 1998 X+++ /home/andy/tmp/wrk/sound.c Mon Mar 2 23:25:48 1998 X@@ -24,7 +24,11 @@ X #include <sys/types.h> X #include <sys/stat.h> X #include <fcntl.h> X+#ifdef __FreeBSD__ X+#include <machine/soundcard.h> X+#else X #include <linux/soundcard.h> X+#endif X #include <sys/ioctl.h> X #include <sys/wait.h> X END-of-xnibbles-1.0b3/patches/patch-ab echo x - xnibbles-1.0b3/patches/patch-aa sed 's/^X//' >xnibbles-1.0b3/patches/patch-aa << 'END-of-xnibbles-1.0b3/patches/patch-aa' X--- Makefile Thu Feb 26 00:14:35 1998 X+++ /home/andy/tmp/wrk/Makefile Tue Mar 3 00:00:39 1998 X@@ -23,12 +23,14 @@ X # Compiler to use (C++ compiler _please_) X CC = g++ X X- # Directory for XNibbles specific data X- # This must be set correctly at compile time X- DATADIR = /usr/local/games/xnibbles X- X # Prefix to find bin and man directories for installation X+ifndef PREFIX X PREFIX = /usr/local X+endif X+ X+ # Directory for XNibbles specific data X+ # This must be set correctly at compile time X+ DATADIR = $(PREFIX)/share/xnibbles X X # Install program X INSTALL = /usr/bin/install X@@ -40,7 +42,7 @@ X ### LINUX ONLY OPTIONS ### X X # Requires kernel sound support, change from 0 to 1 if you want it X- SOUND = 0 X+ SOUND = 1 X SOUNDDEV = /dev/dsp X X # Requires kernel joystick support, change from 0 to 1 if you want it X@@ -77,7 +79,7 @@ X linux: X $(MAKE) OBJECTS=$(OBJECTS) \ X CC=$(CC) LDFLAGS='-L/usr/X11R6/lib' \ X- CFLAGS='-Wall -O2 $(SDEV) \ X+ CFLAGS+='-Wall $(SDEV) \ X -I/usr/X11R6/include -fwritable-strings \ X $(JDEV) -DDATADIR=\"$(DATADIR)\"' \ X xnibbles END-of-xnibbles-1.0b3/patches/patch-aa echo c - xnibbles-1.0b3/pkg mkdir -p xnibbles-1.0b3/pkg > /dev/null 2>&1 echo x - xnibbles-1.0b3/pkg/COMMENT sed 's/^X//' >xnibbles-1.0b3/pkg/COMMENT << 'END-of-xnibbles-1.0b3/pkg/COMMENT' Xsimple X11 snake game END-of-xnibbles-1.0b3/pkg/COMMENT echo x - xnibbles-1.0b3/pkg/PLIST sed 's/^X//' >xnibbles-1.0b3/pkg/PLIST << 'END-of-xnibbles-1.0b3/pkg/PLIST' Xbin/xnibbles Xman/man6/xnibbles.6.gz Xshare/doc/xnibbles/COPYING Xshare/doc/xnibbles/README Xshare/doc/xnibbles/README.levels Xshare/doc/xnibbles/TODO Xshare/xnibbles/levels/LEVELS Xshare/xnibbles/levels/level001.xnl Xshare/xnibbles/levels/level002.xnl Xshare/xnibbles/levels/level003.xnl Xshare/xnibbles/levels/level004.xnl Xshare/xnibbles/levels/level005.xnl Xshare/xnibbles/levels/level006.xnl Xshare/xnibbles/levels/level007.xnl Xshare/xnibbles/levels/level008.xnl Xshare/xnibbles/levels/level009.xnl Xshare/xnibbles/levels/level010.xnl Xshare/xnibbles/levels/level011.xnl Xshare/xnibbles/levels/level012.xnl Xshare/xnibbles/levels/template.xnl Xshare/xnibbles/sounds/appear.ub Xshare/xnibbles/sounds/destroy.ub Xshare/xnibbles/sounds/double.ub Xshare/xnibbles/sounds/gotdiamond.ub Xshare/xnibbles/sounds/half.ub Xshare/xnibbles/sounds/laughter.ub Xshare/xnibbles/sounds/life.ub Xshare/xnibbles/sounds/start.ub Xshare/xnibbles/sounds/teleport.ub X@dirrm share/doc/xnibbles X@dirrm share/xnibbles/levels X@dirrm share/xnibbles/sounds X@dirrm share/xnibbles END-of-xnibbles-1.0b3/pkg/PLIST echo x - xnibbles-1.0b3/pkg/DESCR sed 's/^X//' >xnibbles-1.0b3/pkg/DESCR << 'END-of-xnibbles-1.0b3/pkg/DESCR' X XNibbles is a game for X11R6. It is conceptually based on Xnibbles, which was a program that came with qbasic for MS-DOS. X X XNibbles is actually written in C++, and shares no code Xwith qbasic nibbles. For those of you who have played the Xgame before, you can attest to the fact that it is extremely Xfun and addictive. X X The goal of the game is to work your way through the Xlevels, which become harder and harder. You do this by running Xyour snake over the blue diamonds. For every 10 diamonds you Xacquire, you move up one level. Along the way, a number of Xother diamonds will be encountered. Gold doubles your length, Xand red halves your length, both giving you points. Green Xgives you an extra life. You die if you run into yourself or a Xwall. Question marks serve as warps. X X The authors of XNibbles are Ian Peters (ipeters@acm.org), Xand Sean MacIsaac (sjm@acm.org). X XNibbles is Copyleft'd under the GNU Public License. See Xthe file COPYING for information. END-of-xnibbles-1.0b3/pkg/DESCR exit >How-To-Repeat: >Fix: Please, check and commit this port. >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199803030812.LAA05081>