2020-04-04 19:04:28 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# libuhttpd
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2022-01-28 23:07:38 +01:00
|
|
|
LIBUHTTPD_VERSION = 3.14.1
|
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
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|
|
|
LIBUHTTPD_DEPENDENCIES += openssl
|
|
|
|
LIBUHTTPD_CONF_OPTS += \
|
2021-06-07 04:42:39 +02:00
|
|
|
-DSSL_SUPPORT=ON \
|
|
|
|
-DUSE_MBEDTLS=OFF \
|
|
|
|
-DUSE_OPENSSL=ON \
|
|
|
|
-DUSE_WOLFSSL=OFF
|
2020-04-04 19:04:28 +02:00
|
|
|
else ifeq ($(BR2_PACKAGE_WOLFSSL),y)
|
|
|
|
LIBUHTTPD_DEPENDENCIES += wolfssl
|
|
|
|
LIBUHTTPD_CONF_OPTS += \
|
2021-06-07 04:42:39 +02:00
|
|
|
-DSSL_SUPPORT=ON \
|
|
|
|
-DUSE_MBEDTLS=OFF \
|
|
|
|
-DUSE_OPENSSL=OFF \
|
|
|
|
-DUSE_WOLFSSL=ON
|
2020-04-04 19:04:28 +02:00
|
|
|
else ifeq ($(BR2_PACKAGE_MBEDTLS),y)
|
|
|
|
LIBUHTTPD_DEPENDENCIES += mbedtls
|
|
|
|
LIBUHTTPD_CONF_OPTS += \
|
2021-06-07 04:42:39 +02:00
|
|
|
-DSSL_SUPPORT=ON \
|
|
|
|
-DUSE_MBEDTLS=ON \
|
|
|
|
-DUSE_OPENSSL=OFF \
|
|
|
|
-DUSE_WOLFSSL=OFF
|
2020-04-04 19:04:28 +02:00
|
|
|
else
|
2021-06-07 04:42:39 +02:00
|
|
|
LIBUHTTPD_CONF_OPTS += \
|
|
|
|
-DSSL_SUPPORT=OFF
|
2020-04-04 19:04:28 +02:00
|
|
|
endif
|
|
|
|
|
2021-06-07 04:42:39 +02:00
|
|
|
# BUILD_STATIC builds *only* the static lib, which is not what we want for
|
|
|
|
# BR2_SHARED_STATIC.
|
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
|
|
|
LIBUHTTPD_CONF_OPTS += -DBUILD_STATIC=ON
|
|
|
|
else
|
|
|
|
LIBUHTTPD_CONF_OPTS += -DBUILD_STATIC=OFF
|
2020-04-20 01:30:09 +02:00
|
|
|
endif
|
|
|
|
|
2020-04-04 19:04:28 +02:00
|
|
|
$(eval $(cmake-package))
|