updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / hoxchess / hoxchess-1.0.0-paths.diff
blob9cf71032804d2ecbd75944ea587bab9e4d43b039
1 diff -Naur hox_Client~/hoxUtil.cpp hox_Client/hoxUtil.cpp
2 --- hox_Client~/hoxUtil.cpp 2009-12-27 00:05:42.000000000 -0600
3 +++ hox_Client/hoxUtil.cpp 2009-12-27 00:06:40.000000000 -0600
4 @@ -81,8 +81,8 @@
5 wxLogDebug("%s: wxStandardPaths::Get().GetDataDir() = [%s].", __FUNCTION__, base.c_str());
6 prefix = "";
7 #else
8 - base = ::wxPathOnly(wxStandardPaths::Get().GetExecutablePath()) + "/..";
9 - prefix = "/resource";
10 + base = "/usr/share";
11 + prefix = "/hoxchess";
12 #endif
14 switch ( rType )
15 @@ -92,7 +92,7 @@
16 case hoxRT_PIECE: return base + prefix + "/pieces/";
17 case hoxRT_BOARD: return base + prefix + "/boards/";
18 case hoxRT_LOCALE: return base + prefix + "/locale/";
19 - case hoxRT_AI_PLUGIN: return base + "/plugins/";
20 + case hoxRT_AI_PLUGIN: return "/usr/lib/hoxchess/";
22 default /* hoxRT_UNKNOWN */: return "__UNKNOWN__";
24 diff -Naur hox_Client~/Makefile hox_Client/Makefile
25 --- hox_Client~/Makefile 2009-12-27 00:05:42.000000000 -0600
26 +++ hox_Client/Makefile 2009-12-27 00:05:59.000000000 -0600
27 @@ -18,8 +18,8 @@
28 CXX = g++
30 # RELEASE build
31 -WX_CXXFLAGS = $(shell wx-config --cxxflags --debug=no)
32 -WX_LDLIBS = $(shell wx-config --libs --debug=no)
33 +WX_CXXFLAGS = $(shell wx-config-2.9 --cxxflags --debug=no)
34 +WX_LDLIBS = $(shell wx-config-2.9 --libs --debug=no)
35 DEBUGFLAGS =
37 # DEBUG build
38 @@ -27,8 +27,8 @@
39 #WX_LDLIBS = $(shell wx-config --libs --debug=yes)
40 #DEBUGFLAGS = -g
42 -#CXXFLAGS = $(WX_CXXFLAGS) -I../lib/boost_1_41_0 -I../lib/asio-1.4.1/include
43 -CXXFLAGS = $(WX_CXXFLAGS)
44 +CXXFLAGS = $(WX_CXXFLAGS) -I../lib/boost_1_41_0 -I../lib/asio-1.4.1/include
45 +#CXXFLAGS = $(WX_CXXFLAGS)
46 LDFLAGS = -pthread
48 # The main source