kumquat-buildroot/package/libuwsc/libuwsc.mk
Jianhui Zhao 120c04775d package/libuwsc: new package
Signed-off-by: Jianhui zhao <zhaojh329@gmail.com>
[Thomas:
 - add entry in DEVELOPERS file
 - be more explicit with SSL options
 - drop logic around luainterpreter since luajit is not properly
   detected]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2020-03-29 23:18:26 +02:00

47 lines
1.2 KiB
Makefile

################################################################################
#
# libuwsc
#
################################################################################
LIBUWSC_VERSION = 3.3.2
LIBUWSC_SITE = https://github.com/zhaojh329/libuwsc/releases/download/v$(LIBUWSC_VERSION)
LIBUWSC_LICENSE = MIT
LIBUWSC_LICENSE_FILES = LICENSE
LIBUWSC_INSTALL_STAGING = YES
LIBUWSC_DEPENDENCIES = libev
ifeq ($(BR2_PACKAGE_OPENSSL),y)
LIBUWSC_DEPENDENCIES += openssl
LIBUWSC_CONF_OPTS += \
-DUWSC_SSL_SUPPORT=ON \
-DUWSC_USE_MBEDTLS=OFF \
-DUWSC_USE_OPENSSL=ON \
-DUWSC_USE_WOLFSSL=OFF
else ifeq ($(BR2_PACKAGE_WOLFSSL),y)
LIBUWSC_DEPENDENCIES += wolfssl
LIBUWSC_CONF_OPTS += \
-DUWSC_SSL_SUPPORT=ON \
-DUWSC_USE_MBEDTLS=OFF \
-DUWSC_USE_OPENSSL=OFF \
-DUWSC_USE_WOLFSSL=ON
else ifeq ($(BR2_PACKAGE_MBEDTLS),y)
LIBUWSC_DEPENDENCIES += mbedtls
LIBUWSC_CONF_OPTS += \
-DUWSC_SSL_SUPPORT=ON \
-DUWSC_USE_MBEDTLS=ON \
-DUWSC_USE_OPENSSL=OFF \
-DUWSC_USE_WOLFSSL=OFF
else
LIBUWSC_CONF_OPTS += -DUWSC_SSL_SUPPORT=OFF
endif
ifeq ($(BR2_PACKAGE_LUA),y)
LIBUWSC_DEPENDENCIES += lua
LIBUWSC_CONF_OPTS += -DUWSC_LUA_SUPPORT=ON
else
LIBUWSC_CONF_OPTS += -DUWSC_LUA_SUPPORT=OFF
endif
$(eval $(cmake-package))