summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Cowgill <jcowgill@debian.org>2018-05-15 16:09:37 +0100
committerJames Cowgill <jcowgill@debian.org>2018-05-16 11:34:09 +0100
commit8ebd932b3cddb73533191ce8d976054339dc1bba (patch)
tree43c9d1162918c49caee19e40a7b97f6d21118a2e
parentd1820e52ba1ab6bfef3372357aef269f6452974a (diff)
Add patch to fix CMake config file install path
-rw-r--r--debian/patches/05_cmake-config-LIB_SIFFIX.patch17
-rw-r--r--debian/patches/series1
2 files changed, 18 insertions, 0 deletions
diff --git a/debian/patches/05_cmake-config-LIB_SIFFIX.patch b/debian/patches/05_cmake-config-LIB_SIFFIX.patch
new file mode 100644
index 0000000..b7f4fa2
--- /dev/null
+++ b/debian/patches/05_cmake-config-LIB_SIFFIX.patch
@@ -0,0 +1,17 @@
+Description: Install CMake config files into lib${LIB_SIFFIX}
+Author: James Cowgill <jcowgill@debian.org>
+Forwarded: no
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+
+--- a/cmake/Macros.cmake
++++ b/cmake/Macros.cmake
+@@ -320,7 +320,7 @@ function(sfml_export_targets)
+ if (SFML_BUILD_FRAMEWORKS)
+ set(config_package_location "SFML.framework/Resources/CMake")
+ else()
+- set(config_package_location lib/cmake/SFML)
++ set(config_package_location lib${LIB_SUFFIX}/cmake/SFML)
+ endif()
+ configure_package_config_file("${CURRENT_DIR}/SFMLConfig.cmake.in" "${CMAKE_CURRENT_BINARY_DIR}/SFMLConfig.cmake"
+ INSTALL_DESTINATION "${config_package_location}")
diff --git a/debian/patches/series b/debian/patches/series
index 4c18e4f..2cb92b1 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@
02_build-doc-once.patch
03_pkgconfig-cleanup.patch
04_pkgconfig-freebsd.patch
+05_cmake-config-LIB_SIFFIX.patch