summaryrefslogtreecommitdiff
path: root/games/amphetamine/files/patch-aa
blob: da6c08b725e9ff5c68e92b634ec29fa9b2871dff (plain) (blame)
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
$FreeBSD$

--- Makefile.orig	Wed Mar 28 12:11:39 2001
+++ Makefile	Fri Oct  5 19:43:34 2001
@@ -3,8 +3,8 @@
 #===============
 
 # Install Paths
-PREFIX := /usr/local
-INSTALL_DIR := ${PREFIX}/games/amph
+PREFIX ?= /usr/local
+INSTALL_DIR := ${PREFIX}/share/amph
 
 # Endianess:
 # LITTLE_ENDIAN    (for Intel) 
@@ -14,7 +14,7 @@
 # Libraries
 USE_LIB_XPM := TRUE
 
-SDL_CONFIG := sdl-config
+SDL_CONFIG ?= sdl-config
 SDL_HEADERS := $(shell $(SDL_CONFIG) --cflags)
 SDL_LIBS := $(shell $(SDL_CONFIG) --libs)
 
@@ -27,7 +27,7 @@
 
 # Directories to search for header files
 
-SEARCHDIRS := -I${MYCODEDIR} ${SDL_HEADERS}
+SEARCHDIRS := -I${MYCODEDIR} ${SDL_HEADERS} -I ${X11BASE}/include
 
 # makemake variables
 
@@ -37,13 +37,13 @@
 
 # C
 
-CC     := gcc
-CFLAGS  = ${DEPENDFLAGS}
+CC     ?= gcc
+CFLAGS += ${DEPENDFLAGS}
 
 # C++
 
-CXX      := g++ 
-CXXFLAGS  = ${DEPENDFLAGS} -O9 -funroll-loops -fomit-frame-pointer -ffast-math -Wcast-align
+CXX      ?= g++ 
+CXXFLAGS += ${DEPENDFLAGS} -Wcast-align
 
 %.o : %.cpp
 	${CXX} ${CPPFLAGS} -c $< ${CXXFLAGS} -o $@
@@ -76,7 +76,7 @@
     LOADLIBES := $(LOADLIBES) -lXpm -lXt
 endif
 
-LDFLAGS   = -L/usr/lib -L/usr/local/lib -L/usr/X11R6/lib 
+LDFLAGS   = -L$(X11BASE)/lib
 
 .PHONY : default
 default : amph
@@ -84,9 +84,9 @@
 .PHONY : install
 install: amph
 	@./mkinstalldirs ${INSTALL_DIR}
-	@install -c ./amph ${INSTALL_DIR}
-	@strip ${INSTALL_DIR}/amph
-	@ln -s ${INSTALL_DIR}/amph ${PREFIX}/bin/amph
+	@${BSD_INSTALL_PROGRAM} ./amph ${PREFIX}/bin/amph
+#${INSTALL_DIR}
+#	@ln -s ${INSTALL_DIR}/amph ${PREFIX}/bin/amph
 
 # This is what makemake added
 
@@ -204,7 +204,7 @@
 
 ./src/Surface.o: ./src/AmpHead.hpp ./src/Clut.hpp ./src/ConstVal.hpp ./src/Graphfil.hpp ./src/Shape.hpp ./src/ShapeLd.hpp ./src/Surface.hpp ./src/System.hpp /usr/include/limits.h /usr/include/math.h /usr/include/stdio.h /usr/include/stdlib.h
 
-./src/System.o: ./src/AmpHead.hpp ./src/Graphfil.hpp ./src/System.hpp /usr/include/X11/xpm.h /usr/include/fcntl.h /usr/include/limits.h /usr/include/math.h /usr/include/stdio.h /usr/include/stdlib.h /usr/include/string.h /usr/include/sys/stat.h /usr/include/sys/time.h /usr/include/sys/types.h /usr/include/unistd.h
+./src/System.o: ./src/AmpHead.hpp ./src/Graphfil.hpp ./src/System.hpp ${X11BASE}/include/X11/xpm.h /usr/include/fcntl.h /usr/include/limits.h /usr/include/math.h /usr/include/stdio.h /usr/include/stdlib.h /usr/include/string.h /usr/include/sys/stat.h /usr/include/sys/time.h /usr/include/sys/types.h /usr/include/unistd.h
 
 ./src/Thing.o: ./src/AmpHead.hpp ./src/Appl.hpp ./src/Bullet.hpp ./src/ConstVal.hpp ./src/Element.hpp ./src/File.hpp ./src/Graphfil.hpp ./src/Level.hpp ./src/ObjInfo.hpp ./src/Object.hpp ./src/Pltform.hpp ./src/Shape.hpp ./src/ShapeLd.hpp ./src/Surface.hpp ./src/System.hpp ./src/Thing.hpp /usr/include/limits.h /usr/include/math.h /usr/include/stdio.h /usr/include/stdlib.h