summaryrefslogtreecommitdiff
blob: 14d21626ff7bb37eb373af664dbe86562e3fc108 (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
From: Julian Ospald <hasufell@gentoo.org>
Date: Sat Oct 27 22:39:31 UTC 2012
Subject: FHS

paths hardcoded until upstream fixed the logic

--- mygui-MyGUI3.2.2.orig/CMake/InstallResources.cmake
+++ mygui-MyGUI3.2.2/CMake/InstallResources.cmake
@@ -24,7 +24,7 @@
 	else ()
 		install(FILES
 			${MYGUI_BINARY_DIR}/bin/${FILENAME}
-			DESTINATION "bin"
+			DESTINATION "/etc/MYGUI"
 		)
 	endif ()
 endfunction(install_file)
@@ -53,7 +53,7 @@
 	if (WIN32)
 		set(MYGUI_MEDIA_DIR "../../Media")
 	elseif (UNIX)
-		set(MYGUI_MEDIA_DIR "../share/MYGUI/Media")
+		set(MYGUI_MEDIA_DIR "${CMAKE_INSTALL_PREFIX}/share/MYGUI/Media")
 	else ()
 		set(MYGUI_MEDIA_DIR "../../Media")
 	endif ()
--- mygui-MyGUI3.2.2.orig/Common/Base/Ogre/BaseManager.cpp
+++ mygui-MyGUI3.2.2/Common/Base/Ogre/BaseManager.cpp
@@ -49,13 +49,13 @@
 		mWindow(nullptr),
 		mExit(false),
 		mPluginCfgName("plugins.cfg"),
-		mResourceXMLName("resources.xml"),
+		mResourceXMLName("/etc/MYGUI/resources.xml"),
 		mResourceFileName("MyGUI_Core.xml")
 	{
 		#if MYGUI_PLATFORM == MYGUI_PLATFORM_APPLE
 			mResourcePath = macBundlePath() + "/Contents/Resources/";
 		#else
-			mResourcePath = "";
+			mResourcePath = "/etc/MYGUI/";
 		#endif
 	}