buildrootschalter/package/libmicrohttpd/libmicrohttpd.mk
Peter Korsgaard 7ee387f43b libmicrohttpd: make https support optional
Libmicrohttpd works nicely without https support, so make it optional.
Also ensure the cross-libgcrypt-config is found, rather than whatever
is installed on the host.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2011-02-19 23:48:48 +01:00

20 lines
607 B
Makefile

#############################################################
#
# libmicrohttpd
#
#############################################################
LIBMICROHTTPD_VERSION:=0.4.2
LIBMICROHTTPD_SOURCE:=libmicrohttpd-$(LIBMICROHTTPD_VERSION).tar.gz
LIBMICROHTTPD_SITE:=$(BR2_GNU_MIRROR)/libmicrohttpd
LIBMICROHTTPD_INSTALL_STAGING = YES
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))