2020-04-04 19:04:28 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# libuhttpd
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2020-04-07 07:10:11 +02:00
|
|
|
LIBUHTTPD_VERSION = 3.1.4
|
2020-04-04 19:04:28 +02:00
|
|
|
LIBUHTTPD_SITE = https://github.com/zhaojh329/libuhttpd/releases/download/v$(LIBUHTTPD_VERSION)
|
|
|
|
LIBUHTTPD_LICENSE = MIT
|
|
|
|
LIBUHTTPD_LICENSE_FILES = LICENSE
|
|
|
|
LIBUHTTPD_INSTALL_STAGING = YES
|
|
|
|
LIBUHTTPD_DEPENDENCIES = libev
|
2020-04-24 11:27:32 +02:00
|
|
|
LIBUHTTPD_CONF_OPTS = -DBUILD_TEST_PLUGIN=OFF
|
2020-04-04 19:04:28 +02:00
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|
|
|
LIBUHTTPD_DEPENDENCIES += openssl
|
|
|
|
LIBUHTTPD_CONF_OPTS += \
|
|
|
|
-DUHTTPD_SSL_SUPPORT=ON \
|
|
|
|
-DUHTTPD_USE_MBEDTLS=OFF \
|
|
|
|
-DUHTTPD_USE_OPENSSL=ON \
|
|
|
|
-DUHTTPD_USE_WOLFSSL=OFF
|
|
|
|
else ifeq ($(BR2_PACKAGE_WOLFSSL),y)
|
|
|
|
LIBUHTTPD_DEPENDENCIES += wolfssl
|
|
|
|
LIBUHTTPD_CONF_OPTS += \
|
|
|
|
-DUHTTPD_SSL_SUPPORT=ON \
|
|
|
|
-DUHTTPD_USE_MBEDTLS=OFF \
|
|
|
|
-DUHTTPD_USE_OPENSSL=OFF \
|
|
|
|
-DUHTTPD_USE_WOLFSSL=ON
|
|
|
|
else ifeq ($(BR2_PACKAGE_MBEDTLS),y)
|
|
|
|
LIBUHTTPD_DEPENDENCIES += mbedtls
|
|
|
|
LIBUHTTPD_CONF_OPTS += \
|
|
|
|
-DUHTTPD_SSL_SUPPORT=ON \
|
|
|
|
-DUHTTPD_USE_MBEDTLS=ON \
|
|
|
|
-DUHTTPD_USE_OPENSSL=OFF \
|
|
|
|
-DUHTTPD_USE_WOLFSSL=OFF
|
|
|
|
else
|
|
|
|
LIBUHTTPD_CONF_OPTS += -DUHTTPD_SSL_SUPPORT=OFF
|
|
|
|
endif
|
|
|
|
|
2020-04-20 01:30:09 +02:00
|
|
|
# BUILD_SHARED_LIBS is handled in pkg-cmake.mk as it is a generic cmake variable
|
|
|
|
ifeq ($(BR2_SHARED_STATIC_LIBS),y)
|
|
|
|
LIBUHTTPD_CONF_OPTS += -DBUILD_STATIC_LIBS=ON
|
|
|
|
else ifeq ($(BR2_SHARED_LIBS),y)
|
|
|
|
LIBUHTTPD_CONF_OPTS += -DBUILD_STATIC_LIBS=OFF
|
|
|
|
endif
|
|
|
|
|
2020-04-04 19:04:28 +02:00
|
|
|
$(eval $(cmake-package))
|