Add files from parent branch HEAD:
[pkgsrc.git] / games / xgalaga / patches / patch-aa
1 $NetBSD$
2
3 --- Makefile.in.orig    1998-05-11 06:52:59.000000000 +0000
4 +++ Makefile.in
5 @@ -20,12 +20,12 @@ SOUNDSRV = @SOUNDSERVER@
6  SOUNDOBJS = @SOUNDSERVER@.o
7  SOUNDSRCS = @SOUNDSERVER@.c
8  
9 -SOUNDDEFS = -DSOUNDSERVER=\"@prefix@/@SOUNDSERVER@\"
10 +SOUNDDEFS = -DSOUNDSERVER=\"${PREFIX}/libexec/xgalaga.sndsrv\"
11  
12  RM = rm -f
13  CC = @CC@
14  CFLAGS = -I. @CFLAGS@ @DEFS@ @X_CFLAGS@ -DXGALAGADIR=\"@prefix@/\" $(SOUNDDEFS)
15 -LDFLAGS = @LDFLAGS@
16 +
17  LIBS = @LIBS@ libsprite/libsprite.a @X_LIBS@
18  INSTALL = @INSTALL@
19  
20 @@ -40,19 +40,22 @@ SUBDIRS = libsprite
21  all: $(TARGET) $(SOUNDSRV)
22  
23  $(SOUNDSRV): $(SOUNDOBJS)
24 -       $(CC) $(LDFLAGS) -o $(SOUNDSRV) $(SOUNDOBJS) $(SOUNDLIBS)
25 +       $(CC) $(LDFLAGS) -o $(SOUNDSRV) $(SOUNDOBJS) $(SOUNDLIBS) $(LIBOSSAUDIO)
26  
27  install: all
28         ./mkinstalldirs $(bindir)
29         ./mkinstalldirs $(prefix)
30         $(INSTALL) $(TARGET) $(bindir)/$(TARGET)
31 -       $(INSTALL) $(SOUNDSRV) $(prefix)/$(SOUNDSRV)
32 +       $(INSTALL) $(SOUNDSRV) ${PREFIX}/libexec/xgalaga.sndsrv
33         ./mkinstalldirs $(prefix)/sounds
34         ./mkinstalldirs $(prefix)/levels
35         for i in levels/*.xgl; do $(INSTALL) $$i $(prefix)/$$i ; done
36         for i in sounds/*.raw; do $(INSTALL) $$i $(prefix)/$$i ; done
37         touch $(prefix)/scores
38 -       chmod 666 $(prefix)/scores
39 +       chown ${GAMEOWN}:${GAMEGRP} $(prefix)/scores
40 +       chown ${GAMEOWN}:${GAMEGRP} $(bindir)/$(TARGET)
41 +       chmod ${GAMEMODE} $(bindir)/$(TARGET)
42 +       chmod ${GAMEDATAMODE} $(prefix)/scores
43  
44  subdirs:
45         for i in $(SUBDIRS); do cd $$i ; make ; done