summaryrefslogtreecommitdiff
path: root/games/xgalaga/patches/patch-aa
blob: 4bf08cfb6bc3e3126bca1e925246b7b1cac0961e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
$NetBSD: patch-aa,v 1.5 2005/06/14 17:56:41 minskim Exp $

--- Makefile.in.orig	1998-05-11 01:52:59.000000000 -0500
+++ Makefile.in
@@ -25,7 +25,7 @@ SOUNDDEFS = -DSOUNDSERVER=\"@prefix@/@SO
 RM = rm -f
 CC = @CC@
 CFLAGS = -I. @CFLAGS@ @DEFS@ @X_CFLAGS@ -DXGALAGADIR=\"@prefix@/\" $(SOUNDDEFS)
-LDFLAGS = @LDFLAGS@
+
 LIBS = @LIBS@ libsprite/libsprite.a @X_LIBS@
 INSTALL = @INSTALL@
 
@@ -40,7 +40,7 @@ SUBDIRS = libsprite
 all: $(TARGET) $(SOUNDSRV)
 
 $(SOUNDSRV): $(SOUNDOBJS)
-	$(CC) $(LDFLAGS) -o $(SOUNDSRV) $(SOUNDOBJS) $(SOUNDLIBS)
+	$(CC) $(LDFLAGS) -o $(SOUNDSRV) $(SOUNDOBJS) $(SOUNDLIBS) $(LIBOSSAUDIO)
 
 install: all
 	./mkinstalldirs $(bindir)
@@ -52,7 +52,10 @@ install: all
 	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 ${GAMEOWN}:${GAMEGRP} $(prefix)/scores
+	chown ${GAMEOWN}:${GAMEGRP} $(bindir)/$(TARGET)
+	chmod ${GAMEMODE} $(bindir)/$(TARGET)
+	chmod ${GAMEDATAMODE} $(prefix)/scores
 
 subdirs:
 	for i in $(SUBDIRS); do cd $$i ; make ; done