diff options
Diffstat (limited to 'package')
-rw-r--r-- | package/libmicrohttpd/Config.in | 8 | ||||
-rw-r--r-- | package/libmicrohttpd/libmicrohttpd.mk | 8 |
2 files changed, 14 insertions, 2 deletions
diff --git a/package/libmicrohttpd/Config.in b/package/libmicrohttpd/Config.in index de656ad38..cfedc8fa9 100644 --- a/package/libmicrohttpd/Config.in +++ b/package/libmicrohttpd/Config.in @@ -1,8 +1,14 @@ config BR2_PACKAGE_LIBMICROHTTPD bool "libmicrohttpd" - select BR2_PACKAGE_LIBGCRYPT help GNU libmicrohttpd is a small C library that makes it easy to run an HTTP server as part of another application. http://www.gnu.org/software/libmicrohttpd/ + +config BR2_PACKAGE_LIBMICROHTTPD_SSL + bool "https support" + depends on BR2_PACKAGE_LIBMICROHTTPD + select BR2_PACKAGE_LIBGCRYPT + help + Enable HTTPS (SSL) support. diff --git a/package/libmicrohttpd/libmicrohttpd.mk b/package/libmicrohttpd/libmicrohttpd.mk index 8273d90e1..626c0469f 100644 --- a/package/libmicrohttpd/libmicrohttpd.mk +++ b/package/libmicrohttpd/libmicrohttpd.mk @@ -8,6 +8,12 @@ LIBMICROHTTPD_SOURCE:=libmicrohttpd-$(LIBMICROHTTPD_VERSION).tar.gz LIBMICROHTTPD_SITE:=$(BR2_GNU_MIRROR)/libmicrohttpd LIBMICROHTTPD_INSTALL_STAGING = YES -LIBMICROHTTPD_DEPENDENCIES = libgcrypt +ifeq ($(BR2_PACKAGE_LIBMICROHTTPD_SSL),y) +LIBMICROHTTPD_DEPENDENCIES += libgcrypt +LIBMICROHTTPD_CONF_OPT += --enable-https \ + --with-libgcrypt-prefix=$(STAGING_DIR)/usr +else +LIBMICROHTTPD_CONF_OPT += --disable-https +endif $(eval $(call AUTOTARGETS,package,libmicrohttpd)) |