$NetBSD: patch-aa,v 1.6 2006/01/13 02:02:50 joerg Exp $ --- Makefile.in.orig 1998-05-11 06:52:59.000000000 +0000 +++ Makefile.in @@ -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) + $(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 - 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