diff options
Diffstat (limited to 'games/starfighter/patches/patch-aa')
-rw-r--r-- | games/starfighter/patches/patch-aa | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/games/starfighter/patches/patch-aa b/games/starfighter/patches/patch-aa new file mode 100644 index 00000000000..a9aa79f46fe --- /dev/null +++ b/games/starfighter/patches/patch-aa @@ -0,0 +1,45 @@ +$NetBSD: patch-aa,v 1.1.1.1 2004/10/15 05:36:43 xtraeme Exp $ + +--- makefile.orig 2004-10-15 06:36:29.000000000 +0200 ++++ makefile 2004-10-15 06:39:17.000000000 +0200 +@@ -1,5 +1,5 @@ +-CFLAGS = `sdl-config --cflags` -Wall -DLINUX +-LIBS = `sdl-config --libs` -lSDL_mixer -lSDL_image ++CFLAGS += `sdl-config --cflags` -Wall -DLINUX ++LIBS += `sdl-config --libs` -lSDL_mixer -lSDL_image + OBJS = ai.o aliens.o audio.o bullets.o cargo.o collectable.o comms.o debris.o events.o explosions.o game.o globals.o graphics.o init.o intermission.o loadSave.o messages.o misc.o missions.o player.o resources.o script.o shop.o Starfighter.o title.o unpack.o weapons.o + + VERSION = 1.1 +@@ -7,15 +7,15 @@ + PACK = starfighter.pak + DOCS = docs/* + +-BINDIR = /usr/games/ +-DATADIR = /usr/share/games/parallelrealities/ +-DOCDIR = /usr/share/doc/starfighter/ ++BINDIR = ${PREFIX}/bin ++DATADIR = ${PREFIX}/share/starfighter/ ++DOCDIR = ${PREFIX}//share/doc/starfighter/ + # top-level rule to create the program. + all: $(PROG) + + # compiling other source files. + %.o: code/%.cpp code/%.h code/structs.h code/defs.h code/classes.h +- $(CXX) $(CFLAGS) -c -O3 -DVERSION=\"$(VERSION)\" -DPACKLOCATION=\"$(DATADIR)$(PACK)\" $< ++ $(CXX) $(CFLAGS) -c -DVERSION=\"$(VERSION)\" -DPACKLOCATION=\"$(DATADIR)$(PACK)\" $< + + # linking the program. + $(PROG): $(OBJS) +@@ -30,8 +30,7 @@ + + # install + install: +- mkdir -p $(DATADIR) +- strip $(PROG) +- install -o root -g games -m 755 $(PROG) $(BINDIR)$(PROG) +- install -o root -g games -m 644 $(PACK) $(DATADIR)$(PACK) +- cp $(DOCS) $(DOCDIR) ++ $(BSD_INSTALL_DATA_DIR) $(DATADIR) ++ $(BSD_INSTALL_PROGRAM) $(PROG) $(BINDIR)/$(PROG) ++ $(BSD_INSTALL_DATA) $(PACK) $(DATADIR)$(PACK) ++ $(BSD_INSTALL_DATA_DIR) $(DOCDIR); $(BSD_INSTALL_DATA) docs/*.png docs/*.html docs/*.gif docs/LICENSE $(DOCDIR) |