blob: 0d1f57ab863699d5a806b81f8cbdc43bdc39681e [file] [log] [blame]
Andrew Geissler82c905d2020-04-13 13:39:40 -05001SUMMARY = "Canonical libwebsockets.org websocket library"
2HOMEPAGE = "https://libwebsockets.org/"
3LICENSE = "MIT & Zlib & BSD-3-Clause"
4LIC_FILES_CHKSUM = "file://LICENSE;md5=8c47b078124308a4e1354e8d59f606b7"
5
6DEPENDS = "zlib"
7
8S = "${WORKDIR}/git"
9SRCREV = "6eb39388f43f6e2a27f0efcbf8cb2391e38824e9"
10SRC_URI = "git://github.com/warmcat/libwebsockets.git;protocol=https;branch=v4.0-stable"
11
12UPSTREAM_CHECK_URI = "https://github.com/warmcat/${BPN}/releases"
13UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)"
14
15inherit cmake pkgconfig
16
17PACKAGECONFIG ?= "libuv client server http2 ssl"
18PACKAGECONFIG[client] = "-DLWS_WITHOUT_CLIENT=OFF,-DLWS_WITHOUT_CLIENT=ON,"
19PACKAGECONFIG[http2] = "-DLWS_WITH_HTTP2=ON,-DLWS_WITH_HTTP2=OFF,"
20PACKAGECONFIG[ipv6] = "-DLWS_IPV6=ON,-DLWS_IPV6=OFF,"
21PACKAGECONFIG[libev] = "-DLWS_WITH_LIBEV=ON,-DLWS_WITH_LIBEV=OFF,libev"
22PACKAGECONFIG[libuv] = "-DLWS_WITH_LIBUV=ON,-DLWS_WITH_LIBUV=OFF,libuv"
23PACKAGECONFIG[server] = "-DLWS_WITHOUT_SERVER=OFF,-DLWS_WITHOUT_SERVER=ON,"
24PACKAGECONFIG[ssl] = "-DLWS_WITH_SSL=ON,-DLWS_WITH_SSL=OFF,openssl"
25PACKAGECONFIG[testapps] = "-DLWS_WITHOUT_TESTAPPS=OFF,-DLWS_WITHOUT_TESTAPPS=ON,"
26
27EXTRA_OECMAKE += " \
28 -DLIB_SUFFIX=${@d.getVar('baselib').replace('lib', '')} \
29"
30
31PACKAGES =+ "${PN}-testapps"
32
33FILES_${PN}-testapps += "${datadir}/libwebsockets-test-server/*"
34
35CFLAGS_append = " -Wno-error"