summaryrefslogtreecommitdiff
blob: 6d7f52cd6bd62195015353e69fcb53b8b6d4704d (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
diff -uNr opentyrian.ORIG//Makefile opentyrian/Makefile
--- opentyrian.ORIG//Makefile	2011-05-17 11:26:17.030004857 +0100
+++ opentyrian/Makefile	2011-05-17 11:26:52.595004876 +0100
@@ -39,6 +39,10 @@
 ALL_LDFLAGS += $(LDFLAGS)
 LDLIBS += $(EXTRA_LDLIBS) $(SDL_LDLIBS)
 
+ifneq ($(DATA_PATH), )
+	CFLAGS += -DDATA_PATH=\"$(DATA_PATH)\"
+endif
+
 # RULES ####################################################
 
 .PHONY : all release clean
diff -uNr opentyrian.ORIG//src/file.c opentyrian/src/file.c
--- opentyrian.ORIG//src/file.c	2011-05-17 11:26:17.020004860 +0100
+++ opentyrian/src/file.c	2011-05-17 11:26:52.595004876 +0100
@@ -34,7 +34,7 @@
 #ifdef TARGET_MACOSX
 		tyrian_game_folder(),
 #endif
-		"/usr/share/opentyrian/data"
+		DATA_PATH
 	};
 	
 	static const char *dir = NULL;