summaryrefslogtreecommitdiff
path: root/games/blockout/files/patch-Makefile
blob: 6b8ac18621a263548b8dd181bc20e53bff209985 (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
--- BlockOut/Makefile.orig	2014-05-06 09:47:56 UTC
+++ BlockOut/Makefile
@@ -47,27 +47,27 @@ else
 SDL_LIBS = /usr/lib/i386-linux-gnu
 endif
 
-CXX		= g++
+#CXX		= g++
 
 ifdef _release
 
-CXXFLAGS =     -O2 -Dlinux -c \
-               -I/usr/include/SDL -I../ImageLib/src -I.
+CXXFLAGS +=     -Dlinux -c \
+		-I$(LOCALBASE)/include/SDL -I$(LOCALBASE)/include -I../ImageLib/src -I.
 
 LFLAGS   =      -Wl,--strip-all \
 		$(ADD_LIBS) \
-		-lSDL_mixer -lSDL -lasound \
-		-lGL -lGLU -lpthread -lm -ldl
+		-lSDL_mixer -lSDL \
+		-lGL -lGLU -lpthread -lm
 
 else
 
-CXXFLAGS =     -g -D_DEBUG -Dlinux -c \
-               -I/usr/include/SDL -I../ImageLib/src -I.
+CXXFLAGS +=     -D_DEBUG -Dlinux -c \
+		-I$(LOCALBASE)/include/SDL -I$(LOCALBASE)/include -I../ImageLib/src -I.
 
-LFLAGS   =      -L $(SDL_LIBS) \
+LFLAGS   =      -L $(LOCALBASE)/lib \
 		$(ADD_LIBS) \
-		-lSDL_mixer -lSDL -lasound \
-		-lGL -lGLU -lpthread -lm -ldl
+		-lSDL_mixer -lSDL \
+		-lGL -lGLU -lpthread -lm
 
 endif