aboutsummaryrefslogtreecommitdiff
path: root/games/excido/files/patch-Makefile
blob: 114ba0dfd42efc82fae73b4361f9b30ba08faecf (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
--- Makefile.orig	Thu Jul 29 14:17:13 2004
+++ Makefile	Mon Oct 24 17:19:43 2005
@@ -1,10 +1,8 @@
-CC=g++
-CFLAGS=`sdl-config --cflags` #-g -Wall #-O2
+CFLAGS += -I${X11BASE}/include `${SDL_CONFIG} --cflags`
 #CFLAGS=`sdl-config --cflags` -I./physfs#-g -Wall #-O2
 OBJS    := ${patsubst %.cpp, %.o, ${wildcard src/*.cpp}}
-LIBS = -s -Bstatic `sdl-config --static-libs` -lSDL_image -lSDL_ttf -L. -lphysfs -lopenal -Bdynamic -lGL -lGLU  
+LIBS = -L${X11BASE}/lib `${SDL_CONFIG} --libs` -lSDL_image -lSDL_ttf -lphysfs -lopenal -lalut -lGL -lGLU
 #LIBS = -s -Bstatic `sdl-config --static-libs` SDL_image/*.o SDL_ttf/*.o -L. physfs/*.o openal/*.o -ljpeg -lpng -ltiff -lfreetype -Bdynamic -lGL -lGLU  
-PREFIX=/usr/local
 BINDIR=$(PREFIX)/bin/
 DATADIR=$(PREFIX)/share/excido/
 
@@ -28,9 +26,9 @@
 
 install:
 	[ -d $(BINDIR) ] || mkdir $(BINDIR)
-	$(INSTALL) -m 755 $(TARGET) $(BINDIR)
+	$(BSD_INSTALL_PROGRAM) $(TARGET) $(BINDIR)
 	[ -d $(DATADIR) ] || mkdir $(DATADIR)
-	$(INSTALL) -m 644 data/* $(DATADIR)
+	$(BSD_INSTALL_DATA) data/* $(DATADIR)
 
 uninstall:
 	rm $(BINDIR)$(TARGET)