$ git show --format=fuller --patch-with-stat --summary c5f8ec6c37a16c55bd9ac6df970f6743924459c9
commit c5f8ec6c37a16c55bd9ac6df970f6743924459c9
Author: mandian <mandian@users.noreply.github.com>
AuthorDate: Sun Nov 7 00:58:44 2021 +0100
Commit: mandian <mandian@users.noreply.github.com>
CommitDate: Sun Nov 7 00:58:44 2021 +0100
add patches
---
lime-4.4.9-cmake-fix-pkgconfig-pc-file.patch | 13 +++++++++++++
lime-5.0.18-cmake-fix-cmake-path.patch | 12 ++++++++++++
2 files changed, 25 insertions(+)
create mode 100644 lime-4.4.9-cmake-fix-pkgconfig-pc-file.patch
create mode 100644 lime-5.0.18-cmake-fix-cmake-path.patch
diff --git a/lime-4.4.9-cmake-fix-pkgconfig-pc-file.patch b/lime-4.4.9-cmake-fix-pkgconfig-pc-file.patch
new file mode 100644
index 0000000..891d402
--- /dev/null
+++ b/lime-4.4.9-cmake-fix-pkgconfig-pc-file.patch
@@ -0,0 +1,13 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -82,6 +82,9 @@
+ endif()
+ add_definitions("-DLIME_EXPORTS")
+
++configure_file(${CMAKE_CURRENT_SOURCE_DIR}/lime.pc.in ${CMAKE_CURRENT_BINARY_DIR}/lime.pc)
++install(FILES ${CMAKE_CURRENT_BINARY_DIR}/lime.pc DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
++
+ set(STRICT_OPTIONS_C)
+ set(STRICT_OPTIONS_CPP )
+ set(STRICT_OPTIONS_CXX )
+
diff --git a/lime-5.0.18-cmake-fix-cmake-path.patch b/lime-5.0.18-cmake-fix-cmake-path.patch
new file mode 100644
index 0000000..9c250a4
--- /dev/null
+++ b/lime-5.0.18-cmake-fix-cmake-path.patch
@@ -0,0 +1,12 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -159,7 +159,7 @@
+ add_subdirectory(tester)
+ endif()
+
+-set(ConfigPackageLocation "${CMAKE_INSTALL_DATADIR}/${PROJECT_NAME}/cmake")
++set(ConfigPackageLocation "${CMAKE_INSTALL_DATADIR}/cmake/${PROJECT_NAME}")
+
+ export(EXPORT ${EXPORT_TARGETS_NAME}Targets
+ FILE "${CMAKE_CURRENT_BINARY_DIR}/${EXPORT_TARGETS_NAME}Targets.cmake"
+