ttyd: update to 1.6.3.

This commit is contained in:
mobinmob 2021-04-10 17:39:54 +03:00 committed by Enno Boland
parent 8d9c45f5c3
commit 9945a2ab09
2 changed files with 3 additions and 30 deletions

View file

@ -1,27 +0,0 @@
# make it link against libwebsockets dynamically
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -53,21 +53,9 @@
find_package(OpenSSL REQUIRED)
find_package(ZLIB REQUIRED)
-find_package(Libwebsockets 1.7.0 QUIET)
-
-if(NOT Libwebsockets_FOUND) # for libwebsockets-dev on ubuntu 16.04
- find_path(LIBWEBSOCKETS_INCLUDE_DIR NAMES libwebsockets.h)
- find_library(LIBWEBSOCKETS_LIBRARY NAMES websockets)
- find_package_handle_standard_args(Libwebsockets REQUIRED_VARS LIBWEBSOCKETS_LIBRARY LIBWEBSOCKETS_INCLUDE_DIR)
- mark_as_advanced(LIBWEBSOCKETS_INCLUDE_DIR LIBWEBSOCKETS_LIBRARY)
- if(Libwebsockets_FOUND)
- SET(LIBWEBSOCKETS_INCLUDE_DIRS "${LIBWEBSOCKETS_INCLUDE_DIR}")
- SET(LIBWEBSOCKETS_LIBRARIES "${LIBWEBSOCKETS_LIBRARY}")
- endif()
-endif()
set(INCLUDE_DIRS ${OPENSSL_INCLUDE_DIR} ${ZLIB_INCLUDE_DIR} ${LIBWEBSOCKETS_INCLUDE_DIRS} ${JSON-C_INCLUDE_DIRS} ${LIBUV_INCLUDE_DIRS})
-set(LINK_LIBS ${OPENSSL_LIBRARIES} ${ZLIB_LIBRARIES} ${LIBWEBSOCKETS_LIBRARIES} ${JSON-C_LIBRARIES} ${LIBUV_LIBRARIES})
+set(LINK_LIBS ${OPENSSL_LIBRARIES} ${ZLIB_LIBRARIES} websockets ${JSON-C_LIBRARIES} ${LIBUV_LIBRARIES})
if(WIN32)
list(APPEND LINK_LIBS shell32)

View file

@ -1,7 +1,7 @@
# Template file for 'ttyd'
pkgname=ttyd
version=1.6.0
revision=5
version=1.6.3
revision=1
build_style=cmake
hostmakedepends="pkg-config xxd"
makedepends="libwebsockets-devel json-c-devel openssl-devel zlib-devel
@ -11,7 +11,7 @@ maintainer="Toyam Cox <Vaelatern@voidlinux.org>"
license="MIT"
homepage="https://tsl0922.github.io/ttyd/"
distfiles="https://github.com/tsl0922/ttyd/archive/${version}.tar.gz"
checksum=d14740bc82be0d0760dd0a3c97acbcbde490412a4edc61edabe46d311b068f83
checksum=1116419527edfe73717b71407fb6e06f46098fc8a8e6b0bb778c4c75dc9f64b9
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
makedepends+=" musl-legacy-compat"