libmicrohttpd: update to 0.9.51
[buildroot-gz.git] / package / libmicrohttpd / libmicrohttpd.mk
blob9caa24a2f5a074191e5c5f2e55f1a93d65560bab
1 ################################################################################
3 # libmicrohttpd
5 ################################################################################
7 LIBMICROHTTPD_VERSION = 0.9.51
8 LIBMICROHTTPD_SITE = $(BR2_GNU_MIRROR)/libmicrohttpd
9 LIBMICROHTTPD_LICENSE_FILES = COPYING
10 LIBMICROHTTPD_INSTALL_STAGING = YES
11 LIBMICROHTTPD_CONF_OPTS = --disable-curl --disable-examples
12 LIBMICROHTTPD_CFLAGS = $(TARGET_CFLAGS) -std=c99
14 # gcc on arc doesn't define _REENTRANT when -pthread is
15 # passed while it should. Compensate this defiency here otherwise
16 # libmicrohttpd configure script doesn't find that thread support is
17 # enabled.
18 ifeq ($(BR2_arc),y)
19 LIBMICROHTTPD_CFLAGS += -D_REENTRANT
20 endif
22 LIBMICROHTTPD_CONF_ENV += CFLAGS="$(LIBMICROHTTPD_CFLAGS)"
24 ifeq ($(BR2_PACKAGE_LIBMICROHTTPD_SSL),y)
25 LIBMICROHTTPD_LICENSE = LGPLv2.1+
26 LIBMICROHTTPD_DEPENDENCIES += host-pkgconf gnutls libgcrypt
27 LIBMICROHTTPD_CONF_ENV += LIBS="`$(PKG_CONFIG_HOST_BINARY) --libs gnutls`"
28 LIBMICROHTTPD_CONF_OPTS += --enable-https --with-gnutls=$(STAGING_DIR)/usr \
29 --with-libgcrypt-prefix=$(STAGING_DIR)/usr
30 else
31 LIBMICROHTTPD_LICENSE = LGPLv2.1+ or eCos
32 LIBMICROHTTPD_CONF_OPTS += --disable-https
33 endif
35 $(eval $(autotools-package))