1 ################################################################################
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
23 LIBWEBSOCKETS_CONF_OPTS
+= -DLWS_MAX_SMP
=
26 ifeq ($(BR2_PACKAGE_OPENSSL
),y
)
27 LIBWEBSOCKETS_DEPENDENCIES
+= openssl host-openssl
28 LIBWEBSOCKETS_CONF_OPTS
+= -DLWS_WITH_SSL
=ON
30 LIBWEBSOCKETS_CONF_OPTS
+= -DLWS_WITH_SSL
=OFF
33 ifeq ($(BR2_PACKAGE_LIBEV
),y
)
34 LIBWEBSOCKETS_DEPENDENCIES
+= libev
35 LIBWEBSOCKETS_CONF_OPTS
+= -DLWS_WITH_LIBEV
=ON
37 LIBWEBSOCKETS_CONF_OPTS
+= -DLWS_WITH_LIBEV
=OFF
40 ifeq ($(BR2_PACKAGE_LIBUV
),y
)
41 LIBWEBSOCKETS_DEPENDENCIES
+= libuv
42 LIBWEBSOCKETS_CONF_OPTS
+= -DLWS_WITH_LIBUV
=ON
44 LIBWEBSOCKETS_CONF_OPTS
+= -DLWS_WITH_LIBUV
=OFF
47 ifeq ($(BR2_STATIC_LIBS
),y
)
48 LIBWEBSOCKETS_CONF_OPTS
+= -DLWS_WITH_SHARED
=OFF
51 ifeq ($(BR2_SHARED_LIBS
),y
)
52 LIBWEBSOCKETS_CONF_OPTS
+= -DLWS_WITH_STATIC
=OFF
55 $(eval
$(cmake-package
))