2011-07-11 15:34:27 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# gnutls
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
|
2012-12-28 10:47:17 +01:00
|
|
|
GNUTLS_VERSION = 3.1.5
|
|
|
|
GNUTLS_SOURCE = gnutls-$(GNUTLS_VERSION).tar.xz
|
2012-03-28 23:17:20 +02:00
|
|
|
GNUTLS_SITE = $(BR2_GNU_MIRROR)/gnutls
|
2012-12-28 10:47:17 +01:00
|
|
|
GNUTLS_LICENSE = GPLv3+ LGPLv3
|
2012-09-07 06:48:52 +02:00
|
|
|
GNUTLS_LICENSE_FILES = COPYING lib/COPYING
|
2012-12-28 10:47:17 +01:00
|
|
|
GNUTLS_DEPENDENCIES = host-pkgconf nettle $(if $(BR2_PACKAGE_ZLIB),zlib)
|
|
|
|
GNUTLS_CONF_OPT = --with-libnettle-prefix=$(STAGING_DIR)/usr --disable-rpath
|
|
|
|
GNUTLS_CONF_ENV = gl_cv_socket_ipv6=$(if $(BR2_INET_IPV6),yes,no) \
|
2012-12-26 04:55:48 +01:00
|
|
|
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_wint_t=$(if $(BR2_USE_WCHAR),yes,no)
|
2011-07-11 15:34:27 +02:00
|
|
|
GNUTLS_INSTALL_STAGING = YES
|
|
|
|
|
2012-12-28 10:47:17 +01:00
|
|
|
# Some examples in doc/examples use wchar
|
|
|
|
define GNUTLS_DISABLE_DOCS
|
|
|
|
$(SED) 's/ doc / /' $(@D)/Makefile.in
|
|
|
|
endef
|
|
|
|
|
|
|
|
define GNUTLS_DISABLE_TOOLS
|
|
|
|
$(SED) 's/\$$(PROGRAMS)//' $(@D)/src/Makefile.in
|
|
|
|
$(SED) 's/) install-exec-am/)/' $(@D)/src/Makefile.in
|
|
|
|
endef
|
|
|
|
|
|
|
|
GNUTLS_POST_PATCH_HOOKS += GNUTLS_DISABLE_DOCS
|
|
|
|
GNUTLS_POST_PATCH_HOOKS += $(if $(BR2_PACKAGE_GNUTLS_TOOLS),,GNUTLS_DISABLE_TOOLS)
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|