diff options
Diffstat (limited to 'www/wslay/files')
-rw-r--r-- | www/wslay/files/patch-CMakeLists.txt | 13 | ||||
-rw-r--r-- | www/wslay/files/wslay.pc.cmake.in | 13 |
2 files changed, 26 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() diff --git a/www/wslay/files/wslay.pc.cmake.in b/www/wslay/files/wslay.pc.cmake.in new file mode 100644 index 000000000000..11ea4f98366a --- /dev/null +++ b/www/wslay/files/wslay.pc.cmake.in @@ -0,0 +1,13 @@ +prefix=@CMAKE_INSTALL_PREFIX@ +exec_prefix=@CMAKE_INSTALL_PREFIX@ +libdir=@INSTALL_LIB_DIR@ +sharedlibdir=@INSTALL_LIB_DIR@ +includedir=@INSTALL_INC_DIR@ + +Name: wslay +Description: The WebSocket library in C +Version: @PACKAGE_VERSION@ + +Requires: +Libs: -L${libdir} -L${sharedlibdir} -lwslay_shared +Cflags: -I${includedir} |