summaryrefslogtreecommitdiff
blob: 5b0143ed9a505f578e93ac31f5c3709c6a50f99f (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-2.1.20130907.ORIG/Makefile opentyrian-2.1.20130907/Makefile
--- opentyrian-2.1.20130907.ORIG/Makefile	2013-12-08 17:40:23.470846371 +0000
+++ opentyrian-2.1.20130907/Makefile	2013-12-08 17:40:49.355847165 +0000
@@ -49,6 +49,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-2.1.20130907.ORIG/src/file.c opentyrian-2.1.20130907/src/file.c
--- opentyrian-2.1.20130907.ORIG/src/file.c	2013-12-08 17:40:23.468846371 +0000
+++ opentyrian-2.1.20130907/src/file.c	2013-12-08 17:40:49.355847165 +0000
@@ -34,7 +34,7 @@
 #ifdef TARGET_MACOSX
 		tyrian_game_folder(),
 #endif
-		"/usr/share/opentyrian/data"
+		DATA_PATH
 	};
 	
 	static const char *dir = NULL;