python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / libwebsockets / libwebsockets.mk
blob74b6b2b3f37a3729e2819c4aec5b75c05f07e3e5
1 ################################################################################
3 # libwebsockets
5 ################################################################################
7 LIBWEBSOCKETS_VERSION = v2.1.1
8 LIBWEBSOCKETS_SITE = $(call github,warmcat,libwebsockets,$(LIBWEBSOCKETS_VERSION))
9 LIBWEBSOCKETS_LICENSE = LGPLv2.1 with exceptions
10 LIBWEBSOCKETS_LICENSE_FILES = LICENSE
11 LIBWEBSOCKETS_DEPENDENCIES = zlib
12 LIBWEBSOCKETS_INSTALL_STAGING = YES
13 LIBWEBSOCKETS_CONF_OPTS = -DLWS_WITHOUT_TESTAPPS=ON -DLWS_IPV6=ON
15 LIBWEBSOCKETS_PATCH = https://github.com/warmcat/libwebsockets/commit/f9f5a5760782b68fba190fb46d306f7c08f027c0.patch
17 # If LWS_MAX_SMP=1, then there is no code related to pthreads compiled
18 # in the library. If unset, LWS_MAX_SMP defaults to 32 and a small
19 # amount of pthread mutex code is built into the library.
20 ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),)
21 LIBWEBSOCKETS_CONF_OPTS += -DLWS_MAX_SMP=1
22 else
23 LIBWEBSOCKETS_CONF_OPTS += -DLWS_MAX_SMP=
24 endif
26 ifeq ($(BR2_PACKAGE_OPENSSL),y)
27 LIBWEBSOCKETS_DEPENDENCIES += openssl host-openssl
28 LIBWEBSOCKETS_CONF_OPTS += -DLWS_WITH_SSL=ON
29 else
30 LIBWEBSOCKETS_CONF_OPTS += -DLWS_WITH_SSL=OFF
31 endif
33 ifeq ($(BR2_PACKAGE_LIBEV),y)
34 LIBWEBSOCKETS_DEPENDENCIES += libev
35 LIBWEBSOCKETS_CONF_OPTS += -DLWS_WITH_LIBEV=ON
36 else
37 LIBWEBSOCKETS_CONF_OPTS += -DLWS_WITH_LIBEV=OFF
38 endif
40 ifeq ($(BR2_PACKAGE_LIBUV),y)
41 LIBWEBSOCKETS_DEPENDENCIES += libuv
42 LIBWEBSOCKETS_CONF_OPTS += -DLWS_WITH_LIBUV=ON
43 else
44 LIBWEBSOCKETS_CONF_OPTS += -DLWS_WITH_LIBUV=OFF
45 endif
47 ifeq ($(BR2_STATIC_LIBS),y)
48 LIBWEBSOCKETS_CONF_OPTS += -DLWS_WITH_SHARED=OFF
49 endif
51 ifeq ($(BR2_SHARED_LIBS),y)
52 LIBWEBSOCKETS_CONF_OPTS += -DLWS_WITH_STATIC=OFF
53 endif
55 $(eval $(cmake-package))