mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-13 23:36:08 +00:00
A simple X11 snake game.
PR: 5905 Submitted by: Andrey Zakhvatov <andy@icc.surw.chel.su>
This commit is contained in:
parent
59902de629
commit
a17a1365ec
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=10160
45
games/xnibbles/Makefile
Normal file
45
games/xnibbles/Makefile
Normal file
@ -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>
|
1
games/xnibbles/distinfo
Normal file
1
games/xnibbles/distinfo
Normal file
@ -0,0 +1 @@
|
|||||||
|
MD5 (xnibbles-1.0BETA3.tar.gz) = 0ea17759f099c1de038abed89831219c
|
39
games/xnibbles/files/patch-aa
Normal file
39
games/xnibbles/files/patch-aa
Normal file
@ -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
|
14
games/xnibbles/files/patch-ab
Normal file
14
games/xnibbles/files/patch-ab
Normal file
@ -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>
|
||||||
|
|
1
games/xnibbles/pkg-comment
Normal file
1
games/xnibbles/pkg-comment
Normal file
@ -0,0 +1 @@
|
|||||||
|
simple X11 snake game
|
21
games/xnibbles/pkg-descr
Normal file
21
games/xnibbles/pkg-descr
Normal file
@ -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.
|
33
games/xnibbles/pkg-plist
Normal file
33
games/xnibbles/pkg-plist
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user