Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

105.24. libwebsockets-4.5.8

C library for WebSocket and HTTP/1 and HTTP/2 clients and servers

4.5.8-1 · MIT AND BSD-3-Clause AND BSD-2-Clause · 0.7 SBU · 1.7 MiB, 101 files · 41_system, 802 of 1047 · ports/core/net-libs/libwebsockets

Homepage: https://libwebsockets.org

Depends on: cmake, ninja, openssl, zlib, libuv, libcap.

Required by (2): ardour, ddnet.

Sources: libwebsockets-4.5.8.tar.gz (19.2 MiB). Every step kpkg takes applies to this port.

Optional, off in KDOS. These switches in build.sh turn off a feature whose library is a port here. The recipe may turn each off on purpose, or because the library was not yet a port when the recipe was written; this list cannot tell which.

Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install libwebsockets'

build.sh:

mkdir -p build && cd build
cmake .. -G Ninja \
	-DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
	-DCMAKE_BUILD_TYPE=Release \
	-DCMAKE_INSTALL_PREFIX=/usr \
	-DCMAKE_INSTALL_LIBDIR=lib \
	-DDISABLE_WERROR=ON \
	-DLWS_WITH_STATIC=OFF \
	-DLWS_WITH_SHARED=ON \
	-DLWS_WITH_SSL=ON \
	-DLWS_WITH_MBEDTLS=OFF \
	-DLWS_WITH_WOLFSSL=OFF \
	-DLWS_WITH_LIBUV=ON \
	-DLWS_WITH_EVLIB_PLUGINS=OFF \
	-DLWS_WITH_LIBEV=OFF \
	-DLWS_WITH_LIBEVENT=OFF \
	-DLWS_WITH_GLIB=OFF \
	-DLWS_WITH_SDEVENT=OFF \
	-DLWS_WITH_ZLIB=ON \
	-DLWS_WITHOUT_EXTENSIONS=OFF \
	-DLWS_WITH_HTTP2=ON \
	-DLWS_IPV6=ON \
	-DLWS_WITH_SOCKS5=ON \
	-DLWS_WITH_EXTERNAL_POLL=ON \
	-DLWS_WITHOUT_TESTAPPS=ON \
	-DLWS_WITH_MINIMAL_EXAMPLES=OFF
ninja
DESTDIR=$PKG ninja install

test -e "$PKG/usr/lib/pkgconfig/libwebsockets.pc"

Libraries: libwebsockets.so.

Directories: /usr/include/libwebsockets, /usr/lib/cmake/libwebsockets, /usr/share/licenses/libwebsockets.