2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-02-27 13:38:56 +01:00
|
|
|
#
|
|
|
|
# glib-networking
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-02-27 13:38:56 +01:00
|
|
|
|
2013-06-07 15:18:46 +02:00
|
|
|
GLIB_NETWORKING_MAJOR_VERSION = 2.36
|
2013-10-06 20:13:12 +02:00
|
|
|
GLIB_NETWORKING_MINOR_VERSION = 2
|
2013-02-18 12:28:19 +01:00
|
|
|
GLIB_NETWORKING_VERSION = $(GLIB_NETWORKING_MAJOR_VERSION).$(GLIB_NETWORKING_MINOR_VERSION)
|
2012-02-27 13:38:56 +01:00
|
|
|
GLIB_NETWORKING_SITE = http://ftp.gnome.org/pub/gnome/sources/glib-networking/$(GLIB_NETWORKING_MAJOR_VERSION)
|
|
|
|
GLIB_NETWORKING_SOURCE = glib-networking-$(GLIB_NETWORKING_VERSION).tar.xz
|
|
|
|
|
|
|
|
GLIB_NETWORKING_INSTALL_STAGING = YES
|
|
|
|
|
2012-03-19 16:40:07 +01:00
|
|
|
GLIB_NETWORKING_DEPENDENCIES = \
|
2012-09-16 14:57:49 +02:00
|
|
|
$(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext) \
|
2012-10-22 17:47:52 +02:00
|
|
|
host-pkgconf \
|
2012-03-19 16:40:07 +01:00
|
|
|
host-intltool \
|
|
|
|
libglib2
|
2012-02-27 13:38:56 +01:00
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_GNUTLS),y)
|
|
|
|
GLIB_NETWORKING_DEPENDENCIES += gnutls
|
2012-03-04 20:34:02 +01:00
|
|
|
GLIB_NETWORKING_CONF_OPT += --with-libgcrypt-prefix=$(STAGING_DIR)/usr
|
|
|
|
else
|
|
|
|
GLIB_NETWORKING_CONF_OPT += --without-gnutls
|
2012-02-27 13:38:56 +01:00
|
|
|
endif
|
|
|
|
|
2012-12-28 10:47:21 +01:00
|
|
|
# gnutls 3.x+ doesn't use libgcrypt, it uses nettle/hogweed
|
|
|
|
define GLIB_NETWORKING_NO_LIBGCRYPT
|
|
|
|
$(SED) 's:#include <gcrypt.h>::' $(@D)/tls/gnutls/gtlsbackend-gnutls.c
|
|
|
|
endef
|
|
|
|
|
|
|
|
GLIB_NETWORKING_POST_EXTRACT_HOOKS += GLIB_NETWORKING_NO_LIBGCRYPT
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|