summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs/libRocket/files/libRocket-1.2.1-build.patch')
-rw-r--r--dev-libs/libRocket/files/libRocket-1.2.1-build.patch44
1 files changed, 44 insertions, 0 deletions
diff --git a/dev-libs/libRocket/files/libRocket-1.2.1-build.patch b/dev-libs/libRocket/files/libRocket-1.2.1-build.patch
new file mode 100644
index 000000000000..e578b441f42b
--- /dev/null
+++ b/dev-libs/libRocket/files/libRocket-1.2.1-build.patch
@@ -0,0 +1,44 @@
+From: Julian Ospald <hasufell@gentoo.org>
+--- Build/CMakeLists.txt
++++ Build/CMakeLists.txt
+@@ -11,6 +11,9 @@
+
+ project(libRocket C CXX)
+
++# paths
++include(GNUInstallDirs)
++
+ set(LIBROCKET_VERSION_MAJOR 1)
+ set(LIBROCKET_VERSION_MINOR 2)
+ set(LIBROCKET_VERSION_PATCH 1)
+@@ -131,8 +134,8 @@
+ endif()
+
+ install(TARGETS ${NAME}
+- LIBRARY DESTINATION lib
+- ARCHIVE DESTINATION lib
++ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
++ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
+ )
+ endforeach(library)
+
+@@ -237,7 +240,7 @@
+ endif()
+ endif()
+
+- set(SAMPLES_DIR opt/Rocket/Samples)
++ set(SAMPLES_DIR opt/Rocket/Samples CACHE PATH "path to samples dir")
+
+ # The samples use the shell library
+ include_directories(${PROJECT_SOURCE_DIR}/Samples/shell/include)
+@@ -256,8 +259,8 @@
+ target_link_libraries(${sample_LIBRARIES})
+
+ install(TARGETS shell
+- LIBRARY DESTINATION lib
+- ARCHIVE DESTINATION lib
++ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
++ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
+ )
+
+ list(APPEND samples treeview customlog drag loaddocument)