summaryrefslogtreecommitdiff
path: root/www/wslay/files/patch-CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'www/wslay/files/patch-CMakeLists.txt')
-rw-r--r--www/wslay/files/patch-CMakeLists.txt13
1 files changed, 13 insertions, 0 deletions
diff --git a/www/wslay/files/patch-CMakeLists.txt b/www/wslay/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..ac649aafdd1f
--- /dev/null
+++ b/www/wslay/files/patch-CMakeLists.txt
@@ -0,0 +1,13 @@
+--- CMakeLists.txt.orig 2021-01-15 10:48:52 UTC
++++ CMakeLists.txt
+@@ -35,4 +35,10 @@ if (WSLAY_CONFIGURE_INSTALL)
+ configure_file(wslay-config.cmake.in wslay-config.cmake @ONLY)
+ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/wslay-config.cmake
+ DESTINATION ${INSTALL_CMAKE_DIR})
++
++ set(INSTALL_LIB_DIR ${CMAKE_INSTALL_PREFIX}/lib)
++ set(INSTALL_INC_DIR ${CMAKE_INSTALL_PREFIX}/include)
++ configure_file(wslay.pc.cmake.in libwslay.pc @ONLY)
++ set(INSTALL_PKGCONFIG_DIR "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig" CACHE PATH "Installation directory for pkgconfig (.pc) files")
++ install(FILES ${CMAKE_BINARY_DIR}/libwslay.pc DESTINATION "${INSTALL_PKGCONFIG_DIR}")
+ endif()