summaryrefslogtreecommitdiff
path: root/games/xbomber
diff options
context:
space:
mode:
authorfrueauf <frueauf@pkgsrc.org>1998-07-24 10:36:09 +0000
committerfrueauf <frueauf@pkgsrc.org>1998-07-24 10:36:09 +0000
commit565616d5f7671fa92dfaf5336b4bffc88ed8c11b (patch)
treed08ec541dc71d0ab0d4ed8d629efd6fece5846c0 /games/xbomber
parent2d4a002178d970de4c7abb24b4cb1c839973d9da (diff)
downloadpkgsrc-565616d5f7671fa92dfaf5336b4bffc88ed8c11b.tar.gz
Initial addition of xbomber-0.8, a colorful game where you blow other
people/robots up. Closes pr 5822 by Tim Rightnour.
Diffstat (limited to 'games/xbomber')
-rw-r--r--games/xbomber/Makefile18
-rw-r--r--games/xbomber/files/md51
-rw-r--r--games/xbomber/patches/patch-aa42
-rw-r--r--games/xbomber/patches/patch-ab64
-rw-r--r--games/xbomber/pkg/COMMENT1
-rw-r--r--games/xbomber/pkg/DESCR13
-rw-r--r--games/xbomber/pkg/PLIST224
7 files changed, 363 insertions, 0 deletions
diff --git a/games/xbomber/Makefile b/games/xbomber/Makefile
new file mode 100644
index 00000000000..a81fecd0ecc
--- /dev/null
+++ b/games/xbomber/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 1998/07/24 10:36:09 frueauf Exp $
+#
+
+DISTNAME= xbomber.0.8
+PKGNAME= xbomber-0.8
+CATEGORIES= games x11
+MASTER_SITES= ftp://ftp.sonic.net/pub/users/nbs/unix/x/xbomber/
+
+MAINTAINER= root@garbled.net
+
+WRKSRC= ${WRKDIR}/xbomber
+
+USE_X11= yes
+
+post-patch:
+ @${MV} ${WRKSRC}/makefile ${WRKSRC}/Makefile
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/games/xbomber/files/md5 b/games/xbomber/files/md5
new file mode 100644
index 00000000000..ed83f816be3
--- /dev/null
+++ b/games/xbomber/files/md5
@@ -0,0 +1 @@
+MD5 (xbomber.0.8.tar.gz) = c17b5dda0241d29ea4644b2906985716
diff --git a/games/xbomber/patches/patch-aa b/games/xbomber/patches/patch-aa
new file mode 100644
index 00000000000..f82017f2c4d
--- /dev/null
+++ b/games/xbomber/patches/patch-aa
@@ -0,0 +1,42 @@
+--- makefile.orig Thu Jun 18 20:28:34 1998
++++ makefile Thu Jul 23 07:31:00 1998
+@@ -13,5 +13,12 @@
+
++INSTALLROOT= $(PREFIX)
++INSTALLBIN= $(INSTALLROOT)/bin
++SOUNDS= $(INSTALLROOT)/share/xbomber/sounds
++PIXMAPS= $(INSTALLROOT)/share/xbomber/pixmap
++LEVELS= $(INSTALLROOT)/share/xbomber/level
++BITMAPS= $(INSTALLROOT)/share/xbomber/bitmaps
++
+ CC=gcc
+ MATHLIB=-lm
+-CFLAGS=-I/usr/X11/include
++CFLAGS=-I$(PREFIX)/include -DSOUNDS=\"$(SOUNDS)\" -DPIXMAPS=\"$(PIXMAPS)\" -DLEVELS=\"$(LEVELS)\" -DBITMAPS=\"$(BITMAPS)\"
+
+@@ -21,3 +28,3 @@
+ # adjust according to target
+-XLIB=-L/usr/X11/lib -lX11
++XLIB=-L$(PREFIX)/lib -lX11
+
+@@ -42,5 +49,19 @@
+ chmod 755 sounds bitmaps pixmaps sounds/numbers levels
+- chmod 644 *.c *.h makefile sounds/*.au *.txt \
++ chmod 644 *.c *.h Makefile sounds/*.au *.txt \
+ bitmaps/*.xbm pixmaps/*.ppm \
+ sounds/numbers/*.au levels/*.dat
++
++install: xbomber
++ install -s -c -o bin -g bin xbomber $(INSTALLBIN)/xbomber
++ mkdir -p $(LEVELS)
++ mkdir -p $(SOUNDS)/numbers
++ mkdir -p $(PIXMAPS)/jungle
++ mkdir -p $(BITMAPS)
++ install -o bin -g bin -m 0644 pixmaps/* $(PIXMAPS)
++ install -o bin -g bin -m 0644 bitmaps/* $(BITMAPS)
++ install -o bin -g bin -m 0644 jungle/* $(PIXMAPS)/jungle
++ install -o bin -g bin -m 0644 sounds/numbers/* $(SOUNDS)/numbers
++ @rm -rf sounds/numbers
++ install -o bin -g bin -m 0644 sounds/* $(SOUNDS)
++ install -o bin -g bin -m 0644 levels/* $(LEVELS)
+
diff --git a/games/xbomber/patches/patch-ab b/games/xbomber/patches/patch-ab
new file mode 100644
index 00000000000..de2135d039f
--- /dev/null
+++ b/games/xbomber/patches/patch-ab
@@ -0,0 +1,64 @@
+--- xbomber.c.orig Fri Jun 19 19:09:35 1998
++++ xbomber.c Thu Jul 23 07:41:03 1998
+@@ -1601,3 +1601,3 @@
+ use_color = 0;
+- strcpy(graphicsset, "./pixmaps");
++ strcpy(graphicsset, "PIXMAPS");
+
+@@ -1685,3 +1685,3 @@
+ {
+- sprintf(file, "sounds/%s.au", sound_names[i]);
++ sprintf(file, "%s/%s.au",SOUNDS, sound_names[i]);
+
+@@ -1722,3 +1722,3 @@
+ {
+- sprintf(file, "sounds/numbers/%s.au", nsound_names[i]);
++ sprintf(file, "%s/numbers/%s.au",SOUNDS, nsound_names[i]);
+
+@@ -2071,2 +2071,3 @@
+ char file[128];
++ char temp[128];
+ int status, temp_depth;
+@@ -2097,4 +2098,4 @@
+ /* Make cursor: */
+-
+- ret = XReadBitmapFile(display[pln], window[pln], "bitmaps/cursor.xbm",
++ sprintf(temp,"%s/cursor.xbm",BITMAPS);
++ ret = XReadBitmapFile(display[pln], window[pln], temp,
+ &tempint1, &tempint2, &cursor_pixmap[pln],
+@@ -2104,7 +2105,7 @@
+ {
+- perror("bitmaps/cursor.xbm");
++ perror(temp);
+ exit(1);
+ }
+-
+- ret = XReadBitmapFile(display[pln], window[pln], "bitmaps/cursor-mask.xbm",
++ sprintf(temp,"%s/cursor-mask.xbm",BITMAPS);
++ ret = XReadBitmapFile(display[pln], window[pln], temp,
+ &tempint1, &tempint2, &cursor_mask[pln],
+@@ -2114,3 +2115,3 @@
+ {
+- perror("bitmaps/cursor-mask.xbm");
++ perror(temp);
+ exit(1);
+@@ -2151,3 +2152,3 @@
+
+- sprintf(file, "bitmaps/%s.xbm", object_names[i]);
++ sprintf(file, "%s/%s.xbm",BITMAPS,object_names[i]);
+
+@@ -2865,3 +2866,3 @@
+
+- sprintf(filename, "levels/level%.2d.dat", level);
++ sprintf(filename, "%s/level%.2d.dat",LEVELS, level);
+
+@@ -3295,3 +3296,3 @@
+ {
+- sprintf(file, "%s/%s.ppm", graphicsset, object_names[i]);
++ sprintf(file, "%s/%s/%s.ppm",PIXMAPS, graphicsset, object_names[i]);
+ fi = fopen(file, "r");
+@@ -3305,3 +3306,3 @@
+
+- sprintf(file, "pixmaps/%s.ppm", object_names[i]);
++ sprintf(file, "%s/%s.ppm",PIXMAPS, object_names[i]);
+
diff --git a/games/xbomber/pkg/COMMENT b/games/xbomber/pkg/COMMENT
new file mode 100644
index 00000000000..68d3d2790ab
--- /dev/null
+++ b/games/xbomber/pkg/COMMENT
@@ -0,0 +1 @@
+a colorful game where you blow other people/robots up.
diff --git a/games/xbomber/pkg/DESCR b/games/xbomber/pkg/DESCR
new file mode 100644
index 00000000000..8c79ad65fbe
--- /dev/null
+++ b/games/xbomber/pkg/DESCR
@@ -0,0 +1,13 @@
+WHAT IS X-BOMBER?
+
+ X-Bomber is a multiplayer game for the X-Window system. The concept is
+ loosely based on the game "Super Bomberman" for the Super Nintendo
+ game system.
+
+ Up to four players can play simultaneously. The game runs as one client
+ which connects to multiple X displays (servers).
+
+by Bill Kendrick
+kendrick@zippy.sonoma.edu
+New Breed Software
+http://zippy.sonoma.edu/kendrick/nbs/
diff --git a/games/xbomber/pkg/PLIST b/games/xbomber/pkg/PLIST
new file mode 100644
index 00000000000..f1e9a90e90a
--- /dev/null
+++ b/games/xbomber/pkg/PLIST
@@ -0,0 +1,224 @@
+@comment $NetBSD: PLIST,v 1.1 1998/07/24 10:36:10 frueauf Exp $
+bin/xbomber
+share/xbomber/level/level00.dat
+share/xbomber/level/level01.dat
+share/xbomber/level/level02.dat
+share/xbomber/level/level03.dat
+share/xbomber/level/level04.dat
+share/xbomber/level/level05.dat
+share/xbomber/level/level06.dat
+share/xbomber/level/level07.dat
+share/xbomber/level/level08.dat
+share/xbomber/level/level09.dat
+share/xbomber/level/level10.dat
+share/xbomber/level/level11.dat
+share/xbomber/level/level12.dat
+share/xbomber/level/level13.dat
+share/xbomber/level/level14.dat
+share/xbomber/level/level15.dat
+share/xbomber/level/level16.dat
+share/xbomber/level/level17.dat
+share/xbomber/level/level18.dat
+share/xbomber/level/level19.dat
+share/xbomber/level/level20.dat
+share/xbomber/level/level21.dat
+share/xbomber/level/level22.dat
+share/xbomber/level/level23.dat
+share/xbomber/level/level24.dat
+share/xbomber/level/level25.dat
+share/xbomber/level/level26.dat
+share/xbomber/level/level27.dat
+share/xbomber/level/level28.dat
+share/xbomber/level/level29.dat
+share/xbomber/level/level30.dat
+share/xbomber/level/level31.dat
+share/xbomber/level/level32.dat
+share/xbomber/level/level33.dat
+share/xbomber/level/level34.dat
+share/xbomber/level/level35.dat
+share/xbomber/level/level36.dat
+share/xbomber/level/level37.dat
+share/xbomber/level/level38.dat
+share/xbomber/level/level39.dat
+share/xbomber/level/level40.dat
+share/xbomber/level/level41.dat
+share/xbomber/level/level42.dat
+share/xbomber/level/level43.dat
+share/xbomber/level/level44.dat
+share/xbomber/level/level45.dat
+share/xbomber/level/level46.dat
+share/xbomber/level/level47.dat
+share/xbomber/level/level48.dat
+share/xbomber/level/level49.dat
+share/xbomber/level/level50.dat
+share/xbomber/level/level51.dat
+share/xbomber/level/level52.dat
+share/xbomber/level/level53.dat
+share/xbomber/level/level54.dat
+share/xbomber/level/level55.dat
+share/xbomber/level/level56.dat
+share/xbomber/level/level57.dat
+share/xbomber/level/level58.dat
+share/xbomber/level/level59.dat
+share/xbomber/level/level60.dat
+share/xbomber/level/level61.dat
+share/xbomber/level/level62.dat
+share/xbomber/level/level63.dat
+share/xbomber/level/level64.dat
+share/xbomber/level/level65.dat
+share/xbomber/level/level66.dat
+share/xbomber/level/level67.dat
+share/xbomber/level/level68.dat
+share/xbomber/level/level69.dat
+share/xbomber/level/level70.dat
+share/xbomber/level/level71.dat
+share/xbomber/level/level72.dat
+share/xbomber/level/level73.dat
+share/xbomber/level/level74.dat
+share/xbomber/level/level75.dat
+share/xbomber/level/level76.dat
+share/xbomber/level/level77.dat
+share/xbomber/level/level78.dat
+share/xbomber/level/level79.dat
+share/xbomber/level/level80.dat
+share/xbomber/level/level81.dat
+share/xbomber/level/level82.dat
+share/xbomber/level/level83.dat
+share/xbomber/level/level84.dat
+share/xbomber/level/level85.dat
+share/xbomber/level/level86.dat
+share/xbomber/level/level87.dat
+share/xbomber/level/level88.dat
+share/xbomber/level/level89.dat
+share/xbomber/level/level90.dat
+share/xbomber/level/level91.dat
+share/xbomber/level/level92.dat
+share/xbomber/level/level93.dat
+share/xbomber/level/level94.dat
+share/xbomber/level/level95.dat
+share/xbomber/level/level96.dat
+share/xbomber/level/level97.dat
+share/xbomber/level/level98.dat
+share/xbomber/level/level99.dat
+share/xbomber/sounds/explode.au
+share/xbomber/sounds/got.au
+share/xbomber/sounds/invert.au
+share/xbomber/sounds/kicker.au
+share/xbomber/sounds/laugh.au
+share/xbomber/sounds/levelend1.au
+share/xbomber/sounds/levelend2.au
+share/xbomber/sounds/levelend3.au
+share/xbomber/sounds/levelend4.au
+share/xbomber/sounds/numbers/1.au
+share/xbomber/sounds/numbers/10.au
+share/xbomber/sounds/numbers/11.au
+share/xbomber/sounds/numbers/12.au
+share/xbomber/sounds/numbers/13.au
+share/xbomber/sounds/numbers/14.au
+share/xbomber/sounds/numbers/15.au
+share/xbomber/sounds/numbers/2.au
+share/xbomber/sounds/numbers/20.au
+share/xbomber/sounds/numbers/3.au
+share/xbomber/sounds/numbers/30.au
+share/xbomber/sounds/numbers/4.au
+share/xbomber/sounds/numbers/40.au
+share/xbomber/sounds/numbers/5.au
+share/xbomber/sounds/numbers/50.au
+share/xbomber/sounds/numbers/6.au
+share/xbomber/sounds/numbers/60.au
+share/xbomber/sounds/numbers/7.au
+share/xbomber/sounds/numbers/70.au
+share/xbomber/sounds/numbers/8.au
+share/xbomber/sounds/numbers/80.au
+share/xbomber/sounds/numbers/9.au
+share/xbomber/sounds/numbers/90.au
+share/xbomber/sounds/numbers/level.au
+share/xbomber/sounds/numbers/teen.au
+share/xbomber/sounds/old_laugh.au
+share/xbomber/sounds/ouch1.au
+share/xbomber/sounds/ouch2.au
+share/xbomber/sounds/ouch3.au
+share/xbomber/sounds/pusher.au
+share/xbomber/sounds/warp.au
+share/xbomber/pixmap/jungle/block.ppm
+share/xbomber/pixmap/jungle/block2.ppm
+share/xbomber/pixmap/jungle/checker_dirt1.ppm
+share/xbomber/pixmap/jungle/checker_dirt2.ppm
+share/xbomber/pixmap/jungle/cross_dirt.ppm
+share/xbomber/pixmap/jungle/death.ppm
+share/xbomber/pixmap/jungle/death_eating.ppm
+share/xbomber/pixmap/jungle/dirt.ppm
+share/xbomber/pixmap/block.ppm
+share/xbomber/pixmap/block2.ppm
+share/xbomber/pixmap/bomb.ppm
+share/xbomber/pixmap/bones.ppm
+share/xbomber/pixmap/box.ppm
+share/xbomber/pixmap/checker_dirt1.ppm
+share/xbomber/pixmap/checker_dirt2.ppm
+share/xbomber/pixmap/cross_dirt.ppm
+share/xbomber/pixmap/death.ppm
+share/xbomber/pixmap/death_eating.ppm
+share/xbomber/pixmap/dirt.ppm
+share/xbomber/pixmap/explosion1.ppm
+share/xbomber/pixmap/explosion2.ppm
+share/xbomber/pixmap/invert.ppm
+share/xbomber/pixmap/invisible.ppm
+share/xbomber/pixmap/kicker.ppm
+share/xbomber/pixmap/man_down.ppm
+share/xbomber/pixmap/man_left.ppm
+share/xbomber/pixmap/man_right.ppm
+share/xbomber/pixmap/man_up.ppm
+share/xbomber/pixmap/morebomb.ppm
+share/xbomber/pixmap/morefire.ppm
+share/xbomber/pixmap/mushroom.ppm
+share/xbomber/pixmap/nuke.ppm
+share/xbomber/pixmap/pusher.ppm
+share/xbomber/pixmap/radio_bomb.ppm
+share/xbomber/pixmap/radioupgrade.ppm
+share/xbomber/pixmap/shield.ppm
+share/xbomber/pixmap/title.ppm
+share/xbomber/pixmap/tnt.ppm
+share/xbomber/pixmap/totalfire.ppm
+share/xbomber/pixmap/warp.ppm
+share/xbomber/pixmap/you_down.ppm
+share/xbomber/pixmap/you_left.ppm
+share/xbomber/pixmap/you_right.ppm
+share/xbomber/pixmap/you_up.ppm
+share/xbomber/bitmaps/block.xbm
+share/xbomber/bitmaps/block2.xbm
+share/xbomber/bitmaps/bomb.xbm
+share/xbomber/bitmaps/bones.xbm
+share/xbomber/bitmaps/box.xbm
+share/xbomber/bitmaps/cursor-mask.xbm
+share/xbomber/bitmaps/cursor.xbm
+share/xbomber/bitmaps/death.xbm
+share/xbomber/bitmaps/death_eating.xbm
+share/xbomber/bitmaps/dirt.xbm
+share/xbomber/bitmaps/explosion1.xbm
+share/xbomber/bitmaps/explosion2.xbm
+share/xbomber/bitmaps/invert.xbm
+share/xbomber/bitmaps/invisible.xbm
+share/xbomber/bitmaps/kicker.xbm
+share/xbomber/bitmaps/man_down.xbm
+share/xbomber/bitmaps/man_left.xbm
+share/xbomber/bitmaps/man_right.xbm
+share/xbomber/bitmaps/man_up.xbm
+share/xbomber/bitmaps/morebomb.xbm
+share/xbomber/bitmaps/morefire.xbm
+share/xbomber/bitmaps/mushroom.xbm
+share/xbomber/bitmaps/nuke.xbm
+share/xbomber/bitmaps/pusher.xbm
+share/xbomber/bitmaps/radio_bomb.xbm
+share/xbomber/bitmaps/radioupgrade.xbm
+share/xbomber/bitmaps/shield.xbm
+share/xbomber/bitmaps/title.xbm
+share/xbomber/bitmaps/tnt.xbm
+share/xbomber/bitmaps/totalfire.xbm
+share/xbomber/bitmaps/warp.xbm
+@dirrm share/xbomber/sounds/numbers
+@dirrm share/xbomber/sounds
+@dirrm share/xbomber/pixmap/jungle
+@dirrm share/xbomber/pixmap
+@dirrm share/xbomber/level
+@dirrm share/xbomber/bitmaps
+@dirrm share/xbomber