9eec4724ff
BUILD_TEST_PLUGIN has been dropped since version 3.5.0 and
0b2c2f4a3b
https://github.com/zhaojh329/libuhttpd/releases/tag/v3.7.0
https://github.com/zhaojh329/libuhttpd/releases/tag/v3.8.0
Fixes:
- http://autobuild.buildroot.org/results/0d53b561ba02db018ca90dce29e9064b12c1276b
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
47 lines
1.3 KiB
Makefile
47 lines
1.3 KiB
Makefile
################################################################################
|
|
#
|
|
# libuhttpd
|
|
#
|
|
################################################################################
|
|
|
|
LIBUHTTPD_VERSION = 3.8.0
|
|
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 += \
|
|
-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
|
|
|
|
# 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
|
|
|
|
$(eval $(cmake-package))
|