sngrep: fix error if gnutls and openssl are both enabled
[buildroot-gz.git] / package / glib-networking / glib-networking.mk
blobd3077e9a9bac8150b6bb93e2b4969c6bb67d01d3
1 ################################################################################
3 # glib-networking
5 ################################################################################
7 GLIB_NETWORKING_VERSION_MAJOR = 2.50
8 GLIB_NETWORKING_VERSION = $(GLIB_NETWORKING_VERSION_MAJOR).0
9 GLIB_NETWORKING_SITE = http://ftp.gnome.org/pub/gnome/sources/glib-networking/$(GLIB_NETWORKING_VERSION_MAJOR)
10 GLIB_NETWORKING_SOURCE = glib-networking-$(GLIB_NETWORKING_VERSION).tar.xz
11 GLIB_NETWORKING_INSTALL_STAGING = YES
12 GLIB_NETWORKING_DEPENDENCIES = \
13 $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext) \
14 host-pkgconf \
15 host-intltool \
16 libglib2
17 GLIB_NETWORKING_CONF_OPTS = \
18 --with-ca-certificates=/etc/ssl/certs/ca-certificates.crt
19 GLIB_NETWORKING_LICENSE = LGPLv2+
20 GLIB_NETWORKING_LICENSE_FILES = COPYING
21 GLIB_NETWORKING_INSTALL_TARGET_OPTS = DESTDIR=$(TARGET_DIR) \
22 GIO_MODULE_DIR=/usr/lib/gio/modules install
24 ifeq ($(BR2_PACKAGE_GNUTLS),y)
25 GLIB_NETWORKING_DEPENDENCIES += gnutls
26 GLIB_NETWORKING_CONF_OPTS += --with-libgcrypt-prefix=$(STAGING_DIR)/usr
27 else
28 GLIB_NETWORKING_CONF_OPTS += --without-gnutls
29 endif
31 $(eval $(autotools-package))