summaryrefslogtreecommitdiff
path: root/sysutils/ttyd/files/patch-CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/ttyd/files/patch-CMakeLists.txt')
-rw-r--r--sysutils/ttyd/files/patch-CMakeLists.txt20
1 files changed, 20 insertions, 0 deletions
diff --git a/sysutils/ttyd/files/patch-CMakeLists.txt b/sysutils/ttyd/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..72c238549302
--- /dev/null
+++ b/sysutils/ttyd/files/patch-CMakeLists.txt
@@ -0,0 +1,20 @@
+--- CMakeLists.txt.orig 2023-01-18 03:42:54 UTC
++++ CMakeLists.txt
+@@ -58,11 +58,15 @@ if(JSON-C_FOUND)
+ SET(JSON-C_LIBRARIES "${JSON-C_LIBRARY}")
+ endif()
+
++find_package(PkgConfig REQUIRED)
+ find_package(ZLIB REQUIRED)
+-find_package(Libwebsockets 3.2.0 REQUIRED)
++pkg_search_module(LIBWEBSOCKETS REQUIRED libwebsockets>=3.2.0)
++if(LIBWEBSOCKETS_FOUND)
++ message(STATUS "Found LIBWEBSOCKETS: ${LIBWEBSOCKETS_LINK_LIBRARIES} - Version: ${LIBWEBSOCKETS_VERSION}")
++endif()
+
+ set(INCLUDE_DIRS ${ZLIB_INCLUDE_DIR} ${LIBWEBSOCKETS_INCLUDE_DIRS} ${JSON-C_INCLUDE_DIRS} ${LIBUV_INCLUDE_DIRS})
+-set(LINK_LIBS ${ZLIB_LIBRARIES} ${LIBWEBSOCKETS_LIBRARIES} ${JSON-C_LIBRARIES} ${LIBUV_LIBRARIES})
++set(LINK_LIBS ${ZLIB_LIBRARIES} ${LIBWEBSOCKETS_LINK_LIBRARIES} ${JSON-C_LIBRARIES} ${LIBUV_LIBRARIES})
+
+ set (CMAKE_REQUIRED_INCLUDES ${INCLUDE_DIRS})
+ include(CheckSymbolExists)