summaryrefslogtreecommitdiff
path: root/games/xgalaga/patches
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2006-01-13 02:02:50 +0000
committerjoerg <joerg@pkgsrc.org>2006-01-13 02:02:50 +0000
commit1a61430cc16891d27ae22c02245702f81b77a4b5 (patch)
tree57dc1f63214041987de8de05b4e828bc444d79ad /games/xgalaga/patches
parenta1ca3d5c5a3d3184c3b80e477c7d5bf7f2316655 (diff)
downloadpkgsrc-1a61430cc16891d27ae22c02245702f81b77a4b5.tar.gz
Add DragonFly support. Install sound server under libexec/, no need
for OS suffix. Bump revision.
Diffstat (limited to 'games/xgalaga/patches')
-rw-r--r--games/xgalaga/patches/patch-aa21
-rw-r--r--games/xgalaga/patches/patch-ab33
2 files changed, 40 insertions, 14 deletions
diff --git a/games/xgalaga/patches/patch-aa b/games/xgalaga/patches/patch-aa
index 4bf08cfb6bc..de93951fff4 100644
--- a/games/xgalaga/patches/patch-aa
+++ b/games/xgalaga/patches/patch-aa
@@ -1,8 +1,14 @@
-$NetBSD: patch-aa,v 1.5 2005/06/14 17:56:41 minskim Exp $
+$NetBSD: patch-aa,v 1.6 2006/01/13 02:02:50 joerg Exp $
---- Makefile.in.orig 1998-05-11 01:52:59.000000000 -0500
+--- Makefile.in.orig 1998-05-11 06:52:59.000000000 +0000
+++ Makefile.in
-@@ -25,7 +25,7 @@ SOUNDDEFS = -DSOUNDSERVER=\"@prefix@/@SO
+@@ -20,12 +20,12 @@ SOUNDSRV = @SOUNDSERVER@
+ SOUNDOBJS = @SOUNDSERVER@.o
+ SOUNDSRCS = @SOUNDSERVER@.c
+
+-SOUNDDEFS = -DSOUNDSERVER=\"@prefix@/@SOUNDSERVER@\"
++SOUNDDEFS = -DSOUNDSERVER=\"${PREFIX}/libexec/xgalaga.sndsrv\"
+
RM = rm -f
CC = @CC@
CFLAGS = -I. @CFLAGS@ @DEFS@ @X_CFLAGS@ -DXGALAGADIR=\"@prefix@/\" $(SOUNDDEFS)
@@ -11,7 +17,7 @@ $NetBSD: patch-aa,v 1.5 2005/06/14 17:56:41 minskim Exp $
LIBS = @LIBS@ libsprite/libsprite.a @X_LIBS@
INSTALL = @INSTALL@
-@@ -40,7 +40,7 @@ SUBDIRS = libsprite
+@@ -40,19 +40,22 @@ SUBDIRS = libsprite
all: $(TARGET) $(SOUNDSRV)
$(SOUNDSRV): $(SOUNDOBJS)
@@ -20,7 +26,12 @@ $NetBSD: patch-aa,v 1.5 2005/06/14 17:56:41 minskim Exp $
install: all
./mkinstalldirs $(bindir)
-@@ -52,7 +52,10 @@ install: all
+ ./mkinstalldirs $(prefix)
+ $(INSTALL) $(TARGET) $(bindir)/$(TARGET)
+- $(INSTALL) $(SOUNDSRV) $(prefix)/$(SOUNDSRV)
++ $(INSTALL) $(SOUNDSRV) ${PREFIX}/libexec/xgalaga.sndsrv
+ ./mkinstalldirs $(prefix)/sounds
+ ./mkinstalldirs $(prefix)/levels
for i in levels/*.xgl; do $(INSTALL) $$i $(prefix)/$$i ; done
for i in sounds/*.raw; do $(INSTALL) $$i $(prefix)/$$i ; done
touch $(prefix)/scores
diff --git a/games/xgalaga/patches/patch-ab b/games/xgalaga/patches/patch-ab
index 8fd2a9121f2..501c3bf6ff9 100644
--- a/games/xgalaga/patches/patch-ab
+++ b/games/xgalaga/patches/patch-ab
@@ -1,8 +1,14 @@
-$NetBSD: patch-ab,v 1.1 2001/09/10 01:03:28 hubertf Exp $
+$NetBSD: patch-ab,v 1.2 2006/01/13 02:02:50 joerg Exp $
---- configure.orig Mon May 11 09:02:12 1998
+--- configure.orig 1998-05-11 07:02:12.000000000 +0000
+++ configure
-@@ -1813,6 +1813,9 @@
+@@ -1810,9 +1810,15 @@ if test -n "$sound-type"; then
+ *linux*)
+ sound_type=native
+ ;;
++ *dragonfly*)
++ sound_type=native
++ ;;
*freebsd*)
sound_type=native
;;
@@ -12,12 +18,19 @@ $NetBSD: patch-ab,v 1.1 2001/09/10 01:03:28 hubertf Exp $
*sunos*)
sound_type=native
;;
-@@ -1848,6 +1851,16 @@
+@@ -1839,7 +1845,7 @@ EOF
+ EOF
+
+ ;;
+- *freebsd*)
++ *freebsd* | *dragonfly*)
+ SOUNDSERVER=xgal.sndsrv.freebsd
cat >> confdefs.h <<\EOF
- #define SOUND 1
+ #define SOUNDDEV "/dev/dsp"
+@@ -1850,6 +1856,16 @@ EOF
EOF
-+
-+ ;;
+
+ ;;
+ *netbsd*)
+ SOUNDSERVER=xgal.sndsrv.linux
+ cat >> confdefs.h <<\EOF
@@ -26,6 +39,8 @@ $NetBSD: patch-ab,v 1.1 2001/09/10 01:03:28 hubertf Exp $
+ cat >> confdefs.h <<\EOF
+#define SOUND 1
+EOF
-
- ;;
++
++ ;;
*sunos*)
+ SOUNDSERVER=xgal.sndsrv.sun.c
+ cat >> confdefs.h <<\EOF