Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

4
games/xnibbles/DESCR Normal file
View File

@@ -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.

30
games/xnibbles/Makefile Normal file
View File

@@ -0,0 +1,30 @@
# $NetBSD: Makefile,v 1.22 2012/10/06 11:55:01 asau Exp $
#
DISTNAME= xnibbles-1.0BETA4
PKGNAME= xnibbles-1.0b4
PKGREVISION= 3
CATEGORIES= games x11
MASTER_SITES= http://www.tjhsst.edu/xnibbles/
MAINTAINER= pkgsrc-users@NetBSD.org
# HOMEPAGE= http://www.tjhsst.edu/xnibbles/
# not maintained since 1999, rewritten into gnibbles
COMMENT= Winding snakes game for X11
WRKSRC= ${WRKDIR}/xnibbles
USE_TOOLS+= gmake
USE_LANGUAGES= c c++
INSTALLATION_DIRS= bin ${PKGMANDIR}/man6
SUBST_CLASSES+= audio
SUBST_STAGE.audio= pre-build
SUBST_MESSAGE.audio= Adjusting path to audio device
SUBST_FILES.audio= Makefile
SUBST_SED.audio= -e "s|/dev/dsp|${DEVOSSAUDIO}|"
.include "../../x11/libXpm/buildlink3.mk"
.include "../../mk/oss.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

39
games/xnibbles/PLIST Normal file
View File

@@ -0,0 +1,39 @@
@comment $NetBSD: PLIST,v 1.2 2009/06/14 17:57:00 joerg 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

11
games/xnibbles/distinfo Normal file
View File

@@ -0,0 +1,11 @@
$NetBSD: distinfo,v 1.11 2012/03/07 16:19:20 hans Exp $
SHA1 (xnibbles-1.0BETA4.tar.gz) = 2f0ed0ea1184cb3e81fa56a430d3c53e96618452
RMD160 (xnibbles-1.0BETA4.tar.gz) = a07ae907d72a5b4aac093cfe5a3cf7d02a4024e9
Size (xnibbles-1.0BETA4.tar.gz) = 134982 bytes
SHA1 (patch-aa) = 2917223959062c339df0ffb9666d4420e511c602
SHA1 (patch-ab) = b3d5062ec5ab7cdce85a2cd279dd882e1946b295
SHA1 (patch-ac) = ce907c27ea5211a46b7f3a3eaa5f13ca22ee4da5
SHA1 (patch-ad) = beb17a68983e9312b0874ff6deea351dba27fc32
SHA1 (patch-ae) = 637b213b92ab2dcd12690606d96dc3c11002b9bf
SHA1 (patch-af) = 5a51b3effd218e77bc1ed47b3e0311df1c5eb3e6

View File

@@ -0,0 +1,75 @@
$NetBSD: patch-aa,v 1.6 2008/09/21 08:17:40 dholland Exp $
--- Makefile.orig 1998-03-05 17:06:19.000000000 -0500
+++ Makefile 2008-09-21 02:02:55.000000000 -0400
@@ -21,14 +21,15 @@
### GENERAL OPTIONS ###
# Compiler to use (C++ compiler _please_)
- CC = g++
+ CC = ${CXX}
# Directory for XNibbles specific data
# This must be set correctly at compile time
- DATADIR = /usr/local/games/xnibbles
+ DATADIR=$(PREFIX)/share/xnibbles
+ CPPFLAGS+=-DDATADIR=\"$(DATADIR)\" $(SDEV)
+ #CFLAGS+=-fwritable-strings
# Prefix to find bin and man directories for installation
- PREFIX = /usr/local
# Install program
INSTALL = /usr/bin/install
@@ -41,10 +42,10 @@
# Requires kernel sound support, change from 0 to 1 if you want it
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
JOYSTICK1DEV = /dev/js1
@@ -90,7 +91,7 @@ xnibbles: bodyPart.o boni.o bonus.o dead
$(CC) $(CFLAGS) $(LDFLAGS) \
bodyPart.o boni.o bonus.o levels.o people.o statusBar.o ticker.o \
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 ${LIBOSSAUDIO}
xnleditor: xnleditor/level.o xnleditor/newWalls.o xnleditor/sideBar.o xnleditor/walls.o xnleditor/xnleditor.o xnleditor/xpms.o xnleditor/numericDisplay.o
$(CC) $(CFLAGS) $(LDFLAGS) \
@@ -115,20 +116,15 @@ tar: pristine
(cd ..; tar -cvzf xnibbles.tgz xnibbles/ ; chmod 644 xnibbles.tgz)
install:
- $(INSTALL) -d $(DATADIR) -g $(GROUP) -m 755 -o $(USER)
- $(INSTALL) -d $(DATADIR)/levels -g $(GROUP) -m 755 -o $(USER)
- $(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
- ./make-LEVELS $(DATADIR) OOGA
+ $(BSD_INSTALL_DATA_DIR) $(DESTDIR)$(DATADIR)/levels
+ $(BSD_INSTALL_DATA_DIR) $(DESTDIR)$(DATADIR)/sounds
+ $(BSD_INSTALL_DATA) levels/*.xnl $(DESTDIR)$(DATADIR)/levels
+ $(BSD_INSTALL_DATA) levels/README $(DESTDIR)$(DATADIR)/levels
+ $(BSD_INSTALL_DATA) sounds/*.ub $(DESTDIR)$(DATADIR)/sounds
+ $(BSD_INSTALL_PROGRAM) xnibbles $(DESTDIR)$(PREFIX)/bin
+ $(BSD_INSTALL_PROGRAM) xnleditor/xnleditor $(DESTDIR)$(PREFIX)/bin
+ $(BSD_INSTALL_MAN) xnibbles.6 $(DESTDIR)$(PREFIX)/$(PKGMANDIR)/man6
+ ./make-LEVELS $(DESTDIR)$(DATADIR) $(DATADIR) OOGA
bodyPart.o: common.h bodyPart.h
boni.o: common.h boni.h

View File

@@ -0,0 +1,25 @@
$NetBSD: patch-ab,v 1.4 2012/03/07 16:19:21 hans Exp $
--- sound.c.orig 1998-02-28 20:40:49.000000000 +0000
+++ sound.c
@@ -19,12 +19,18 @@
Sean Macisaac (sjm@acm.org), and Ian Peters (ipeters@acm.org). */
#include "common.h"
-#include <malloc.h>
+#include <stdlib.h>
#include <limits.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
-#include <linux/soundcard.h>
+#if defined(__NetBSD__) || defined(__OpenBSD__)
+ #include <soundcard.h>
+#elif defined(__DragonFly__) || defined(__FreeBSD__) || defined(__sun)
+ #include <sys/soundcard.h>
+#else
+ #include <linux/soundcard.h>
+#endif
#include <sys/ioctl.h>
#include <sys/wait.h>

View File

@@ -0,0 +1,19 @@
$NetBSD: patch-ac,v 1.1 2008/09/21 08:17:40 dholland Exp $
--- make-LEVELS~ 1998-02-23 13:37:57.000000000 -0500
+++ make-LEVELS 2008-09-21 02:04:01.000000000 -0400
@@ -1,6 +1,6 @@
#!/bin/sh
-if [ $2"X" != "OOGAX" ]; then
+if [ $3"X" != "OOGAX" ]; then
echo "You shouldn't run this script yourself! Let the Makefile do it!"
exit 1
fi
@@ -9,5 +9,5 @@ cd levels
rm -f $1"/levels/LEVELS"
touch $1"/levels/LEVELS"
for i in level???.xnl ; do
- echo $1"/levels/"$i >> $1"/levels/LEVELS"
+ echo $2"/levels/"$i >> $1"/levels/LEVELS"
done

View File

@@ -0,0 +1,216 @@
$NetBSD: patch-ad,v 1.1 2008/09/21 08:17:40 dholland Exp $
--- statusBar.c.orig 1998-03-02 13:22:25.000000000 -0500
+++ statusBar.c 2008-09-21 02:17:18.000000000 -0400
@@ -52,159 +52,159 @@ statusBar::statusBar(char theName[], int
theName[foo]=tolower(theName[foo]);
switch (theName[foo]) {
case 'a':
- strcpy (a_xpm[2],colors[6*which+2]);
+ a_xpm[2] = strdup(colors[6*which+2]);
a_xpm[2][0]='a';
- strcpy (a_xpm[3],colors[6*which+5]);
+ a_xpm[3] = colors[6*which+5];
makePixmap(a_xpm, &letters[foo]);
break;
case 'b':
- strcpy (b_xpm[2],colors[6*which+2]);
+ b_xpm[2] = strdup(colors[6*which+2]);
b_xpm[2][0]='a';
- strcpy (b_xpm[3],colors[6*which+5]);
+ b_xpm[3] = colors[6*which+5];
makePixmap(b_xpm, &letters[foo]);
break;
case 'c':
- strcpy (c_xpm[2],colors[6*which+2]);
+ c_xpm[2] = strdup(colors[6*which+2]);
c_xpm[2][0]='a';
- strcpy (c_xpm[3],colors[6*which+5]);
+ c_xpm[3] = colors[6*which+5];
makePixmap(c_xpm, &letters[foo]);
break;
case 'd':
- strcpy (d_xpm[2],colors[6*which+2]);
+ d_xpm[2] = strdup(colors[6*which+2]);
d_xpm[2][0]='a';
- strcpy (d_xpm[3],colors[6*which+5]);
+ d_xpm[3] = colors[6*which+5];
makePixmap(d_xpm, &letters[foo]);
break;
case 'e':
- strcpy (e_xpm[2],colors[6*which+2]);
+ e_xpm[2] = strdup(colors[6*which+2]);
e_xpm[2][0]='a';
- strcpy (e_xpm[3],colors[6*which+5]);
+ e_xpm[3] = colors[6*which+5];
makePixmap(e_xpm, &letters[foo]);
break;
case 'f':
- strcpy (f_xpm[2],colors[6*which+2]);
+ f_xpm[2] = strdup(colors[6*which+2]);
f_xpm[2][0]='a';
- strcpy (f_xpm[3],colors[6*which+5]);
+ f_xpm[3] = colors[6*which+5];
makePixmap(f_xpm, &letters[foo]);
break;
case 'g':
- strcpy (g_xpm[2],colors[6*which+2]);
+ g_xpm[2] = strdup(colors[6*which+2]);
g_xpm[2][0]='a';
- strcpy (g_xpm[3],colors[6*which+5]);
+ g_xpm[3] = colors[6*which+5];
makePixmap(g_xpm, &letters[foo]);
break;
case 'h':
- strcpy (h_xpm[2],colors[6*which+2]);
+ h_xpm[2] = strdup(colors[6*which+2]);
h_xpm[2][0]='a';
- strcpy (h_xpm[3],colors[6*which+5]);
+ h_xpm[3] = colors[6*which+5];
makePixmap(h_xpm, &letters[foo]);
break;
case 'i':
- strcpy (i_xpm[2],colors[6*which+2]);
+ i_xpm[2] = strdup(colors[6*which+2]);
i_xpm[2][0]='a';
- strcpy (i_xpm[3],colors[6*which+5]);
+ i_xpm[3] = colors[6*which+5];
makePixmap(i_xpm, &letters[foo]);
break;
case 'j':
- strcpy (j_xpm[2],colors[6*which+2]);
+ j_xpm[2] = strdup(colors[6*which+2]);
j_xpm[2][0]='a';
- strcpy (j_xpm[3],colors[6*which+5]);
+ j_xpm[3] = colors[6*which+5];
makePixmap(j_xpm, &letters[foo]);
break;
case 'k':
- strcpy (k_xpm[2],colors[6*which+2]);
+ k_xpm[2] = strdup(colors[6*which+2]);
k_xpm[2][0]='a';
- strcpy (k_xpm[3],colors[6*which+5]);
+ k_xpm[3] = colors[6*which+5];
makePixmap(k_xpm, &letters[foo]);
break;
case 'l':
- strcpy (l_xpm[2],colors[6*which+2]);
+ l_xpm[2] = strdup(colors[6*which+2]);
l_xpm[2][0]='a';
- strcpy (l_xpm[3],colors[6*which+5]);
+ l_xpm[3] = colors[6*which+5];
makePixmap(l_xpm, &letters[foo]);
break;
case 'm':
- strcpy (m_xpm[2],colors[6*which+2]);
+ m_xpm[2] = strdup(colors[6*which+2]);
m_xpm[2][0]='a';
- strcpy (m_xpm[3],colors[6*which+5]);
+ m_xpm[3] = colors[6*which+5];
makePixmap(m_xpm, &letters[foo]);
break;
case 'n':
- strcpy (n_xpm[2],colors[6*which+2]);
+ n_xpm[2] = strdup(colors[6*which+2]);
n_xpm[2][0]='a';
- strcpy (n_xpm[3],colors[6*which+5]);
+ n_xpm[3] = colors[6*which+5];
makePixmap(n_xpm, &letters[foo]);
break;
case 'o':
- strcpy (o_xpm[2],colors[6*which+2]);
+ o_xpm[2] = strdup(colors[6*which+2]);
o_xpm[2][0]='a';
- strcpy (o_xpm[3],colors[6*which+5]);
+ o_xpm[3] = colors[6*which+5];
makePixmap(o_xpm, &letters[foo]);
break;
case 'p':
- strcpy (p_xpm[2],colors[6*which+2]);
+ p_xpm[2] = strdup(colors[6*which+2]);
p_xpm[2][0]='a';
- strcpy (p_xpm[3],colors[6*which+5]);
+ p_xpm[3] = colors[6*which+5];
makePixmap(p_xpm, &letters[foo]);
break;
case 'q':
- strcpy (q_xpm[2],colors[6*which+2]);
+ q_xpm[2] = strdup(colors[6*which+2]);
q_xpm[2][0]='a';
- strcpy (q_xpm[3],colors[6*which+5]);
+ q_xpm[3] = colors[6*which+5];
makePixmap(q_xpm, &letters[foo]);
break;
case 'r':
- strcpy (r_xpm[2],colors[6*which+2]);
+ r_xpm[2] = strdup(colors[6*which+2]);
r_xpm[2][0]='a';
- strcpy (r_xpm[3],colors[6*which+5]);
+ r_xpm[3] = colors[6*which+5];
makePixmap(r_xpm, &letters[foo]);
break;
case 's':
- strcpy (s_xpm[2],colors[6*which+2]);
+ s_xpm[2] = strdup(colors[6*which+2]);
s_xpm[2][0]='a';
- strcpy (s_xpm[3],colors[6*which+5]);
+ s_xpm[3] = colors[6*which+5];
makePixmap(s_xpm, &letters[foo]);
break;
case 't':
- strcpy (t_xpm[2],colors[6*which+2]);
+ t_xpm[2] = strdup(colors[6*which+2]);
t_xpm[2][0]='a';
- strcpy (t_xpm[3],colors[6*which+5]);
+ t_xpm[3] = colors[6*which+5];
makePixmap(t_xpm, &letters[foo]);
break;
case 'u':
- strcpy (u_xpm[2],colors[6*which+2]);
+ u_xpm[2] = strdup(colors[6*which+2]);
u_xpm[2][0]='a';
- strcpy (u_xpm[3],colors[6*which+5]);
+ u_xpm[3] = colors[6*which+5];
makePixmap(u_xpm, &letters[foo]);
break;
case 'v':
- strcpy (v_xpm[2],colors[6*which+2]);
+ v_xpm[2] = strdup(colors[6*which+2]);
v_xpm[2][0]='a';
- strcpy (v_xpm[3],colors[6*which+5]);
+ v_xpm[3] = colors[6*which+5];
makePixmap(v_xpm, &letters[foo]);
break;
case 'w':
- strcpy (w_xpm[2],colors[6*which+2]);
+ w_xpm[2] = strdup(colors[6*which+2]);
w_xpm[2][0]='a';
- strcpy (w_xpm[3],colors[6*which+5]);
+ w_xpm[3] = colors[6*which+5];
makePixmap(w_xpm, &letters[foo]);
break;
case 'x':
- strcpy (x_xpm[2],colors[6*which+2]);
+ x_xpm[2] = strdup(colors[6*which+2]);
x_xpm[2][0]='a';
- strcpy (x_xpm[3],colors[6*which+5]);
+ x_xpm[3] = colors[6*which+5];
makePixmap(x_xpm, &letters[foo]);
break;
case 'y':
- strcpy (y_xpm[2],colors[6*which+2]);
+ y_xpm[2] = strdup(colors[6*which+2]);
y_xpm[2][0]='a';
- strcpy (y_xpm[3],colors[6*which+5]);
+ y_xpm[3] = colors[6*which+5];
makePixmap(y_xpm, &letters[foo]);
break;
case 'z':
- strcpy (z_xpm[2],colors[6*which+2]);
+ z_xpm[2] = strdup(colors[6*which+2]);
z_xpm[2][0]='a';
- strcpy (z_xpm[3],colors[6*which+5]);
+ z_xpm[3] = colors[6*which+5];
makePixmap(z_xpm, &letters[foo]);
break;
}

View File

@@ -0,0 +1,21 @@
$NetBSD: patch-ae,v 1.1 2008/09/21 08:17:40 dholland Exp $
--- worm.c~ 1998-03-03 20:48:43.000000000 -0500
+++ worm.c 2008-09-21 02:15:07.000000000 -0400
@@ -52,11 +52,11 @@ worm::worm(int aup, int adown, int aleft
score = 0;
dscore = 0;
numCuts = 0;
- strcpy (worm_xpm[2],colors[6*which]);
- strcpy (worm_xpm[3],colors[6*which+1]);
- strcpy (worm_xpm[4],colors[6*which+2]);
- strcpy (worm_xpm[5],colors[6*which+3]);
- strcpy (worm_xpm[6],colors[6*which+4]);
+ worm_xpm[2] = colors[6*which];
+ worm_xpm[3] = colors[6*which+1];
+ worm_xpm[4] = colors[6*which+2];
+ worm_xpm[5] = colors[6*which+3];
+ worm_xpm[6] = colors[6*which+4];
makePixmap (worm_xpm, &wormImage);
meltCount = MELTSIZE;
meltFlag = meltDelay;

View File

@@ -0,0 +1,17 @@
$NetBSD: patch-af,v 1.1 2008/09/21 08:17:40 dholland Exp $
--- xnibbles.6~ 1998-03-05 18:34:29.000000000 -0500
+++ xnibbles.6 2008-09-21 02:25:22.000000000 -0400
@@ -95,7 +95,11 @@ This bonus reverses the direction of you
.SH GAME PLAY
Each player has five keys. Worm controls for the first player are the arrow
keys, sometimes the numeric keypad :), and for the second player control is
-'w' up, 's' down, 'a' left, and 'd' right. Each player also has an action key,
+ 'w' up,
+ 's' down,
+ 'a' left, and
+ 'd' right.
+Each player also has an action key,
which activates the cyan bonus described in section [4]. For the first player,
the action key is Right Control, and for the second, the action key is Left
Control.