summaryrefslogtreecommitdiff
path: root/games/xgalaga/patches
diff options
context:
space:
mode:
authorhubertf <hubertf@pkgsrc.org>2001-09-08 00:09:10 +0000
committerhubertf <hubertf@pkgsrc.org>2001-09-08 00:09:10 +0000
commit79dce68c89a99741049c71a16a95c4c10827b497 (patch)
tree03333bedcfb626977c7e4713c9b514931bf3ead8 /games/xgalaga/patches
parentd67031e5bb43a6b65a62ba3eaafc9fd89cdd74ac (diff)
downloadpkgsrc-79dce68c89a99741049c71a16a95c4c10827b497.tar.gz
Add sounds support.
Patches submitted by Rui-Xiang Guo <rxg@ms25.url.com.tw> in PR 13893
Diffstat (limited to 'games/xgalaga/patches')
-rw-r--r--games/xgalaga/patches/patch-aa35
1 files changed, 23 insertions, 12 deletions
diff --git a/games/xgalaga/patches/patch-aa b/games/xgalaga/patches/patch-aa
index 6a5a6658141..a910909d7f8 100644
--- a/games/xgalaga/patches/patch-aa
+++ b/games/xgalaga/patches/patch-aa
@@ -1,19 +1,28 @@
-$NetBSD: patch-aa,v 1.2 1998/08/07 10:40:44 agc Exp $
+$NetBSD: patch-aa,v 1.3 2001/09/08 00:09:10 hubertf Exp $
---- Makefile.in.orig Sun May 10 23:52:59 1998
-+++ Makefile.in Fri Jul 31 02:26:57 1998
-@@ -27,3 +27,3 @@
+--- Makefile.in.orig Mon May 11 08:52:59 1998
++++ Makefile.in
+@@ -25,7 +25,7 @@
+ RM = rm -f
+ CC = @CC@
CFLAGS = -I. @CFLAGS@ @DEFS@ @X_CFLAGS@ -DXGALAGADIR=\"@prefix@/\" $(SOUNDDEFS)
-LDFLAGS = @LDFLAGS@
-+LDFLAGS = -Wl,-R$(X11BASE)/lib @LDFLAGS@
++
LIBS = @LIBS@ libsprite/libsprite.a @X_LIBS@
-@@ -47,4 +47,3 @@
- ./mkinstalldirs $(prefix)
-- $(INSTALL) $(TARGET) $(bindir)/$(TARGET)
-- $(INSTALL) $(SOUNDSRV) $(prefix)/$(SOUNDSRV)
-+ $(INSTALL) $(SOUNDSRV) $(TARGET) $(bindir)/
- ./mkinstalldirs $(prefix)/sounds
-@@ -54,3 +53,6 @@
+ INSTALL = @INSTALL@
+
+@@ -40,7 +40,7 @@
+ all: $(TARGET) $(SOUNDSRV)
+
+ $(SOUNDSRV): $(SOUNDOBJS)
+- $(CC) $(LDFLAGS) -o $(SOUNDSRV) $(SOUNDOBJS) $(SOUNDLIBS)
++ $(CC) $(LDFLAGS) -o $(SOUNDSRV) $(SOUNDOBJS) $(SOUNDLIBS) -lossaudio
+
+ install: all
+ ./mkinstalldirs $(bindir)
+@@ -52,7 +52,10 @@
+ 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
- chmod 666 $(prefix)/scores
+ chown bin:games $(prefix)/scores
@@ -21,3 +30,5 @@ $NetBSD: patch-aa,v 1.2 1998/08/07 10:40:44 agc Exp $
+ chmod 2755 $(bindir)/$(TARGET)
+ chmod 664 $(prefix)/scores
+ subdirs:
+ for i in $(SUBDIRS); do cd $$i ; make ; done