|
@@ -4,22 +4,39 @@
|
|
#
|
|
#
|
|
#############################################################
|
|
#############################################################
|
|
|
|
|
|
-GNUTLS_VERSION = 3.1.9
|
|
|
|
|
|
+GNUTLS_VERSION = 3.2.1
|
|
GNUTLS_SOURCE = gnutls-$(GNUTLS_VERSION).tar.xz
|
|
GNUTLS_SOURCE = gnutls-$(GNUTLS_VERSION).tar.xz
|
|
-GNUTLS_SITE = ftp://ftp.gnutls.org/gcrypt/gnutls/v3.1
|
|
|
|
-GNUTLS_LICENSE = GPLv3+ LGPLv3
|
|
|
|
|
|
+GNUTLS_SITE = ftp://ftp.gnutls.org/gcrypt/gnutls/v3.2
|
|
|
|
+GNUTLS_LICENSE = GPLv3+ LGPLv2.1+
|
|
GNUTLS_LICENSE_FILES = COPYING COPYING.LESSER
|
|
GNUTLS_LICENSE_FILES = COPYING COPYING.LESSER
|
|
-GNUTLS_DEPENDENCIES = host-pkgconf nettle $(if $(BR2_PACKAGE_ZLIB),zlib)
|
|
|
|
-GNUTLS_CONF_OPT = --with-libnettle-prefix=$(STAGING_DIR)/usr --disable-rpath
|
|
|
|
|
|
+GNUTLS_DEPENDENCIES = host-pkgconf nettle pcre \
|
|
|
|
+ $(if $(BR2_PACKAGE_P11_KIT),p11-kit) \
|
|
|
|
+ $(if $(BR2_PACKAGE_LIBIDN),libidn) \
|
|
|
|
+ $(if $(BR2_PACKAGE_LIBTASN1),libtasn1) \
|
|
|
|
+ $(if $(BR2_PACKAGE_ZLIB),zlib)
|
|
|
|
+GNUTLS_CONF_OPT = --with-libnettle-prefix=$(STAGING_DIR)/usr --disable-rpath \
|
|
|
|
+ --disable-doc --disable-guile
|
|
GNUTLS_CONF_ENV = gl_cv_socket_ipv6=$(if $(BR2_INET_IPV6),yes,no) \
|
|
GNUTLS_CONF_ENV = gl_cv_socket_ipv6=$(if $(BR2_INET_IPV6),yes,no) \
|
|
ac_cv_header_wchar_h=$(if $(BR2_USE_WCHAR),yes,no) \
|
|
ac_cv_header_wchar_h=$(if $(BR2_USE_WCHAR),yes,no) \
|
|
gt_cv_c_wchar_t=$(if $(BR2_USE_WCHAR),yes,no) \
|
|
gt_cv_c_wchar_t=$(if $(BR2_USE_WCHAR),yes,no) \
|
|
- gt_cv_c_wint_t=$(if $(BR2_USE_WCHAR),yes,no)
|
|
|
|
|
|
+ gt_cv_c_wint_t=$(if $(BR2_USE_WCHAR),yes,no) \
|
|
|
|
+ gl_cv_func_gettimeofday_clobber=no
|
|
GNUTLS_INSTALL_STAGING = YES
|
|
GNUTLS_INSTALL_STAGING = YES
|
|
|
|
|
|
# libpthread autodetection poisons the linkpath
|
|
# libpthread autodetection poisons the linkpath
|
|
GNUTLS_CONF_OPT += $(if $(BR2_TOOLCHAIN_HAS_THREADS),--with-libpthread-prefix=$(STAGING_DIR)/usr)
|
|
GNUTLS_CONF_OPT += $(if $(BR2_TOOLCHAIN_HAS_THREADS),--with-libpthread-prefix=$(STAGING_DIR)/usr)
|
|
|
|
|
|
|
|
+# gnutls needs libregex, but pcre can be used too
|
|
|
|
+# The check isn't cross-compile friendly
|
|
|
|
+define GNUTLS_LIBREGEX_CHECK_FIX
|
|
|
|
+ $(SED) 's/libopts_cv_with_libregex=no/libopts_cv_with_libregex=yes/g;'\
|
|
|
|
+ $(@D)/configure
|
|
|
|
+endef
|
|
|
|
+GNUTLS_PRE_CONFIGURE_HOOKS += GNUTLS_LIBREGEX_CHECK_FIX
|
|
|
|
+GNUTLS_CONF_OPT += --with-regex-header=pcreposix.h \
|
|
|
|
+ --with-libregex-cflags="`$(PKG_CONFIG_HOST_BINARY) libpcreposix --cflags`" \
|
|
|
|
+ --with-libregex-libs="`$(PKG_CONFIG_HOST_BINARY) libpcreposix --libs`"
|
|
|
|
+
|
|
# libidn support for nommu must exclude the crywrap wrapper (uses fork)
|
|
# libidn support for nommu must exclude the crywrap wrapper (uses fork)
|
|
GNUTLS_CONF_OPT += $(if $(BR2_USE_MMU),,--disable-crywrap)
|
|
GNUTLS_CONF_OPT += $(if $(BR2_USE_MMU),,--disable-crywrap)
|
|
GNUTLS_DEPENDENCIES += $(if $(BR2_PACKAGE_LIBIDN),libidn)
|
|
GNUTLS_DEPENDENCIES += $(if $(BR2_PACKAGE_LIBIDN),libidn)
|