summaryrefslogtreecommitdiff
path: root/games/xbreaky
diff options
context:
space:
mode:
authorrh <rh@pkgsrc.org>2000-10-15 18:04:19 +0000
committerrh <rh@pkgsrc.org>2000-10-15 18:04:19 +0000
commitab462946f120c9b4afb3bc5aafc6b80baae8e53b (patch)
tree09dc0b5a6577c7bb72c5f35ed9fc81749b808cd4 /games/xbreaky
parent5c6342ac11e54117ba5d2f0b8eb8f170c8def4fa (diff)
downloadpkgsrc-ab462946f120c9b4afb3bc5aafc6b80baae8e53b.tar.gz
Initial import of xbreaky-0.0.4, a breakout game for X11.
Diffstat (limited to 'games/xbreaky')
-rw-r--r--games/xbreaky/Makefile13
-rw-r--r--games/xbreaky/files/md53
-rw-r--r--games/xbreaky/files/patch-sum5
-rw-r--r--games/xbreaky/patches/patch-aa52
-rw-r--r--games/xbreaky/patches/patch-ab13
-rw-r--r--games/xbreaky/patches/patch-ac41
-rw-r--r--games/xbreaky/pkg/COMMENT1
-rw-r--r--games/xbreaky/pkg/DESCR4
-rw-r--r--games/xbreaky/pkg/PLIST23
9 files changed, 155 insertions, 0 deletions
diff --git a/games/xbreaky/Makefile b/games/xbreaky/Makefile
new file mode 100644
index 00000000000..dc18edb94c4
--- /dev/null
+++ b/games/xbreaky/Makefile
@@ -0,0 +1,13 @@
+# $NetBSD: Makefile,v 1.1.1.1 2000/10/15 18:04:19 rh Exp $
+#
+
+DISTNAME= xbreaky-0.0.4
+CATEGORIES= games
+MASTER_SITES= http://xbreaky.sourceforge.net/
+
+MAINTAINER= rh@netbsd.org
+HOMEPAGE= http://xbreaky.sourceforge.net/
+
+USE_X11BASE= yes
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/games/xbreaky/files/md5 b/games/xbreaky/files/md5
new file mode 100644
index 00000000000..3a3c037f2c8
--- /dev/null
+++ b/games/xbreaky/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1.1.1 2000/10/15 18:04:19 rh Exp $
+
+MD5 (xbreaky-0.0.4.tar.gz) = 441438b41d11a4d61776a4cff8cfbcdf
diff --git a/games/xbreaky/files/patch-sum b/games/xbreaky/files/patch-sum
new file mode 100644
index 00000000000..4a2afa5bf2a
--- /dev/null
+++ b/games/xbreaky/files/patch-sum
@@ -0,0 +1,5 @@
+$NetBSD: patch-sum,v 1.1.1.1 2000/10/15 18:04:19 rh Exp $
+
+MD5 (patch-aa) = 03a53935f3335d5fb88604e7dbd45d3c
+MD5 (patch-ab) = a18fdb17162d825ce50ba12e6c607804
+MD5 (patch-ac) = 2c04ef8550ab597b538b17cfd7ad5ad0
diff --git a/games/xbreaky/patches/patch-aa b/games/xbreaky/patches/patch-aa
new file mode 100644
index 00000000000..5c23db9a082
--- /dev/null
+++ b/games/xbreaky/patches/patch-aa
@@ -0,0 +1,52 @@
+$NetBSD: patch-aa,v 1.1.1.1 2000/10/15 18:04:19 rh Exp $
+
+--- Makefile.orig Thu May 11 09:53:15 2000
++++ Makefile
+@@ -4,9 +4,9 @@
+ CC=g++
+ GC=gcc
+
+-CFLAGS = -O2 -DPREFIX=\"${prefix}\"
+-LDFLAGS = -L/usr/X11R6/lib -I/usr/X11/include/X11 -lX11 -lXpm -lm
+-prefix = /usr/local
++prefix?=${PREFIX}
++CFLAGS+= -DPREFIX=\"${prefix}\" -I${X11BASE}/include
++LDFLAGS = -Wl,-R${X11BASE}/lib -L${X11BASE}/lib -lX11 -lXpm -lm
+
+ all: xbreaky xbreaky.snd
+
+@@ -15,22 +15,22 @@
+ $(CC) $(LDFLAGS) xbreaky.o -o xbreaky
+
+ xbreaky.snd:
+- $(GC) $(CFLAGS) -lm -o xbreaky.snd xbreaky.snd.c
++ $(GC) $(CFLAGS) -lm -o xbreaky.snd xbreaky.snd.c -lossaudio
+
+ install:
+ for d in $(prefix)/bin $(prefix)/share/pixmaps $(prefix)/man/man6 \
+- $(prefix)/share/games/xbreaky $(prefix)/doc/xbreaky ; do \
+- test -d $$d || install -d -m755 $$d ; \
++ $(prefix)/share/games/xbreaky $(prefix)/share/doc/xbreaky ; do \
++ test -d $$d || ${BSD_INSTALL_DATA_DIR} $$d ; \
+ done
+- install -m6755 -s xbreaky $(prefix)/bin
+- install -m6755 -s xbreaky.snd $(prefix)/bin
+- install -m644 xbreaky.xpm $(prefix)/share/pixmaps
+- install -m644 *.dat $(prefix)/share/games/xbreaky
+- install -m644 *.raw $(prefix)/share/games/xbreaky
+- install -m644 README $(prefix)/doc/xbreaky
+- install -m644 COPYING $(prefix)/doc/xbreaky
+- install -m644 AUTHORS $(prefix)/doc/xbreaky
+- install -m644 xbreaky.6 $(prefix)/man/man6
++ ${BSD_INSTALL_PROGRAM} xbreaky $(prefix)/bin
++ ${BSD_INSTALL_PROGRAM} xbreaky.snd $(prefix)/bin
++ ${BSD_INSTALL_DATA} xbreaky.xpm $(prefix)/share/pixmaps
++ ${BSD_INSTALL_DATA} *.dat $(prefix)/share/games/xbreaky
++ ${BSD_INSTALL_DATA} *.raw $(prefix)/share/games/xbreaky
++ ${BSD_INSTALL_DATA} README $(prefix)/share/doc/xbreaky
++ ${BSD_INSTALL_DATA} COPYING $(prefix)/share/doc/xbreaky
++ ${BSD_INSTALL_DATA} AUTHORS $(prefix)/share/doc/xbreaky
++ ${BSD_INSTALL_DATA} xbreaky.6 $(prefix)/man/man6
+
+ clean:
+ rm -f xbreaky a.out core xbreaky.snd *.o
diff --git a/games/xbreaky/patches/patch-ab b/games/xbreaky/patches/patch-ab
new file mode 100644
index 00000000000..f6e12b2f70a
--- /dev/null
+++ b/games/xbreaky/patches/patch-ab
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1.1.1 2000/10/15 18:04:20 rh Exp $
+
+--- xbreaky.cpp.orig Thu May 11 10:06:12 2000
++++ xbreaky.cpp
+@@ -1569,7 +1569,7 @@
+ close(fd[1]);
+ dup2(fd[0],STDIN_FILENO);
+ close(fd[0]);
+- execlp("xbreaky.snd", 0 );
++ execlp("xbreaky.snd", "xbreaky.snd", 0 );
+ fprintf (stderr, "Couldn't Execute Sound Server xbreaky.snd!\n");
+ exit (0);
+ }
diff --git a/games/xbreaky/patches/patch-ac b/games/xbreaky/patches/patch-ac
new file mode 100644
index 00000000000..10942e60ea5
--- /dev/null
+++ b/games/xbreaky/patches/patch-ac
@@ -0,0 +1,41 @@
+$NetBSD: patch-ac,v 1.1.1.1 2000/10/15 18:04:20 rh Exp $
+
+--- xbreaky.snd.c.orig Thu May 11 10:13:45 2000
++++ xbreaky.snd.c
+@@ -28,11 +28,19 @@
+ #include <string.h>
+ #include <strings.h>
+ #include <signal.h>
++#ifdef __NetBSD__
++#include <soundcard.h>
++#else
+ #include <sys/soundcard.h>
++#endif
+ #include <sys/ioctl.h>
+
+ #define DEFAULT_DSP_SPEED 8000
++#ifdef __NetBSD__
++#define AUDIO "/dev/audio"
++#else
+ #define AUDIO "/dev/dsp"
++#endif
+ #define RAWFILESDIR PREFIX"/share/games/xbreaky"
+
+ int timelimit = 0, dsp_speed = DEFAULT_DSP_SPEED, dsp_stereo = 0;
+@@ -53,7 +61,6 @@
+ char k;
+
+ signal(SIGTERM, quit);
+- fcntl(STDIN_FILENO,F_SETFL,O_NONBLOCK);
+ audio = open (AUDIO, O_WRONLY, 0);
+ if (audio == -1)
+ {
+@@ -101,7 +108,7 @@
+ }
+ if(i!=-1)
+ {
+- play(names[(int)k]);
++ play(names[(int)k & 1]);
+ }
+ }
+
diff --git a/games/xbreaky/pkg/COMMENT b/games/xbreaky/pkg/COMMENT
new file mode 100644
index 00000000000..7045b3285be
--- /dev/null
+++ b/games/xbreaky/pkg/COMMENT
@@ -0,0 +1 @@
+breakout game for X11
diff --git a/games/xbreaky/pkg/DESCR b/games/xbreaky/pkg/DESCR
new file mode 100644
index 00000000000..31d096fc605
--- /dev/null
+++ b/games/xbreaky/pkg/DESCR
@@ -0,0 +1,4 @@
+ Xbreaky is an X11 version of the classical arcade game 'breakout'. The goal
+of writing this program was to get a well working game, which was fun to play.
+Of course the program isn't perfect yet, the author is still working on a lot
+of extra game modes, removing bugs and speeding up the overall performance.
diff --git a/games/xbreaky/pkg/PLIST b/games/xbreaky/pkg/PLIST
new file mode 100644
index 00000000000..e0ccaf5134b
--- /dev/null
+++ b/games/xbreaky/pkg/PLIST
@@ -0,0 +1,23 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2000/10/15 18:04:19 rh Exp $
+bin/xbreaky
+bin/xbreaky.snd
+man/man6/xbreaky.6
+share/doc/xbreaky/README
+share/doc/xbreaky/COPYING
+share/doc/xbreaky/AUTHORS
+share/games/xbreaky/catch.raw
+share/games/xbreaky/fire.raw
+share/games/xbreaky/level0.dat
+share/games/xbreaky/level1.dat
+share/games/xbreaky/level2.dat
+share/games/xbreaky/level3.dat
+share/games/xbreaky/level4.dat
+share/games/xbreaky/level5.dat
+share/games/xbreaky/level6.dat
+share/games/xbreaky/level7.dat
+share/games/xbreaky/level8.dat
+share/games/xbreaky/level9.dat
+share/pixmaps/xbreaky.xpm
+@dirrm share/doc/xbreaky
+@dirrm share/games/xbreaky
+@dirrm share/games