board/csky: fixup gdb instructions in readme.txt
[buildroot-gz.git] / package / libmicrohttpd / libmicrohttpd.mk
blob83791b34f7407caa7facac53cd2afb09ac642910
1 ################################################################################
3 # libmicrohttpd
5 ################################################################################
7 LIBMICROHTTPD_VERSION = 0.9.52
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 and bfin 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)$(BR2_bfin),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))