summaryrefslogtreecommitdiffstats
path: root/package/libwebsockets/libwebsockets.mk
blob: da1a87247aabf0084f48445ab7add59f7ec881d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
################################################################################
#
# libwebsockets
#
################################################################################

LIBWEBSOCKETS_VERSION = v1.4-chrome43-firefox-36
LIBWEBSOCKETS_SOURCE = libwebsockets-$(LIBWEBSOCKETS_VERSION).tar.xz
LIBWEBSOCKETS_SITE = http://git.libwebsockets.org/cgi-bin/cgit/libwebsockets/snapshot
LIBWEBSOCKETS_LICENSE = LGPLv2.1 with exceptions
LIBWEBSOCKETS_LICENSE_FILES = LICENSE
LIBWEBSOCKETS_DEPENDENCIES = zlib
LIBWEBSOCKETS_INSTALL_STAGING = YES

LIBWEBSOCKETS_CONF_OPTS += -DWITHOUT_TESTAPPS=ON

ifeq ($(BR2_INET_IPV6),y)
LIBWEBSOCKETS_CONF_OPTS += -DLWS_IPV6=ON
else
LIBWEBSOCKETS_CONF_OPTS += -DLWS_IPV6=OFF
endif

ifeq ($(BR2_PACKAGE_OPENSSL),y)
LIBWEBSOCKETS_DEPENDENCIES += openssl host-openssl
LIBWEBSOCKETS_CONF_OPTS += -DLWS_WITH_SSL=ON
else
LIBWEBSOCKETS_CONF_OPTS += -DLWS_WITH_SSL=OFF
endif

$(eval $(cmake-package))
OpenPOWER on IntegriCloud