1 ################################################################################
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
19 LIBMICROHTTPD_CFLAGS
+= -D_REENTRANT
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
31 LIBMICROHTTPD_LICENSE
= LGPLv2.1
+ or eCos
32 LIBMICROHTTPD_CONF_OPTS
+= --disable-https
35 $(eval
$(autotools-package
))