summaryrefslogtreecommitdiff
path: root/games/starfighter/patches/patch-aa
blob: a9aa79f46fec3e802a72268f39364b4fac9170fa (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
35
36
37
38
39
40
41
42
43
44
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)