55 lines
2 KiB
Text
55 lines
2 KiB
Text
$NetBSD: patch-aa,v 1.7 2009/11/15 01:29:34 dholland Exp $
|
|
|
|
Patch installation paths. DESTDIR support.
|
|
|
|
--- Makefile.in.orig 1998-05-11 02:52:59.000000000 -0400
|
|
+++ Makefile.in 2009-11-14 20:26:16.000000000 -0500
|
|
@@ -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)
|
|
-LDFLAGS = @LDFLAGS@
|
|
+
|
|
LIBS = @LIBS@ libsprite/libsprite.a @X_LIBS@
|
|
INSTALL = @INSTALL@
|
|
|
|
@@ -40,19 +40,22 @@ SUBDIRS = libsprite
|
|
all: $(TARGET) $(SOUNDSRV)
|
|
|
|
$(SOUNDSRV): $(SOUNDOBJS)
|
|
- $(CC) $(LDFLAGS) -o $(SOUNDSRV) $(SOUNDOBJS) $(SOUNDLIBS)
|
|
+ $(CC) $(LDFLAGS) -o $(SOUNDSRV) $(SOUNDOBJS) $(SOUNDLIBS) $(LIBOSSAUDIO)
|
|
|
|
install: all
|
|
- ./mkinstalldirs $(bindir)
|
|
- ./mkinstalldirs $(prefix)
|
|
- $(INSTALL) $(TARGET) $(bindir)/$(TARGET)
|
|
- $(INSTALL) $(SOUNDSRV) $(prefix)/$(SOUNDSRV)
|
|
- ./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
|
|
- chmod 666 $(prefix)/scores
|
|
+ ./mkinstalldirs $(DESTDIR)$(bindir)
|
|
+ ./mkinstalldirs $(DESTDIR)$(prefix)
|
|
+ $(INSTALL) $(TARGET) $(DESTDIR)$(bindir)/$(TARGET)
|
|
+ $(INSTALL) $(SOUNDSRV) $(DESTDIR)${PREFIX}/libexec/xgalaga.sndsrv
|
|
+ ./mkinstalldirs $(DESTDIR)$(prefix)/sounds
|
|
+ ./mkinstalldirs $(DESTDIR)$(prefix)/levels
|
|
+ for i in levels/*.xgl; do $(INSTALL) $$i $(DESTDIR)$(prefix)/$$i ; done
|
|
+ for i in sounds/*.raw; do $(INSTALL) $$i $(DESTDIR)$(prefix)/$$i ; done
|
|
+ touch $(DESTDIR)$(prefix)/scores
|
|
+ chown ${GAMEOWN}:${GAMEGRP} $(DESTDIR)$(prefix)/scores
|
|
+ chown ${GAMEOWN}:${GAMEGRP} $(DESTDIR)$(bindir)/$(TARGET)
|
|
+ chmod ${GAMEMODE} $(DESTDIR)$(bindir)/$(TARGET)
|
|
+ chmod ${GAMEDATAMODE} $(DESTDIR)$(prefix)/scores
|
|
|
|
subdirs:
|
|
for i in $(SUBDIRS); do cd $$i ; make ; done
|