2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2009-09-15 14:37:54 +02:00
|
|
|
#
|
|
|
|
# libmicrohttpd
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-12-26 04:55:49 +01:00
|
|
|
|
2017-02-03 21:29:54 +01:00
|
|
|
LIBMICROHTTPD_VERSION = 0.9.52
|
2011-02-19 23:50:33 +01:00
|
|
|
LIBMICROHTTPD_SITE = $(BR2_GNU_MIRROR)/libmicrohttpd
|
2013-06-27 13:40:27 +02:00
|
|
|
LIBMICROHTTPD_LICENSE_FILES = COPYING
|
2009-09-15 14:37:54 +02:00
|
|
|
LIBMICROHTTPD_INSTALL_STAGING = YES
|
2015-12-04 15:02:44 +01:00
|
|
|
LIBMICROHTTPD_CONF_OPTS = --disable-curl --disable-examples
|
2016-07-04 01:09:43 +02:00
|
|
|
LIBMICROHTTPD_CFLAGS = $(TARGET_CFLAGS) -std=c99
|
|
|
|
|
2016-10-07 16:02:30 +02:00
|
|
|
# gcc on arc and bfin doesn't define _REENTRANT when -pthread is
|
2016-07-04 01:09:43 +02:00
|
|
|
# passed while it should. Compensate this defiency here otherwise
|
|
|
|
# libmicrohttpd configure script doesn't find that thread support is
|
|
|
|
# enabled.
|
2016-10-07 16:02:30 +02:00
|
|
|
ifeq ($(BR2_arc)$(BR2_bfin),y)
|
2016-07-04 01:09:43 +02:00
|
|
|
LIBMICROHTTPD_CFLAGS += -D_REENTRANT
|
|
|
|
endif
|
|
|
|
|
|
|
|
LIBMICROHTTPD_CONF_ENV += CFLAGS="$(LIBMICROHTTPD_CFLAGS)"
|
2009-09-15 14:37:54 +02:00
|
|
|
|
2011-02-19 23:37:40 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBMICROHTTPD_SSL),y)
|
2017-03-30 15:43:34 +02:00
|
|
|
LIBMICROHTTPD_LICENSE = LGPL-2.1+
|
2015-02-03 10:24:36 +01:00
|
|
|
LIBMICROHTTPD_DEPENDENCIES += host-pkgconf gnutls libgcrypt
|
2015-07-12 16:35:26 +02:00
|
|
|
LIBMICROHTTPD_CONF_ENV += LIBS="`$(PKG_CONFIG_HOST_BINARY) --libs gnutls`"
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBMICROHTTPD_CONF_OPTS += --enable-https --with-gnutls=$(STAGING_DIR)/usr \
|
2013-06-26 20:49:40 +02:00
|
|
|
--with-libgcrypt-prefix=$(STAGING_DIR)/usr
|
2011-02-19 23:37:40 +01:00
|
|
|
else
|
2017-03-30 15:43:34 +02:00
|
|
|
LIBMICROHTTPD_LICENSE = LGPL-2.1+ or eCos
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBMICROHTTPD_CONF_OPTS += --disable-https
|
2011-02-19 23:37:40 +01:00
|
|
|
endif
|
2009-09-15 14:37:54 +02:00
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|