NAME    = gnutls
VERSION = 3.8.13

CATEGORIES = utils

DESCRIPTION = GNU TLS library
define BLURB
GnuTLS is a secure communications library implementing the SSL, TLS and DTLS
protocols and technologies around them. It provides a simple C language API
to access the secure communications protocols.
endef

DYNURLS   = https://www.gnupg.org/ftp/gcrypt/gnutls/v3.8/gnutls-3.8.13.tar.xz
DISTFILES = gnutls-3.8.13.tar.xz

LICENSE = COPYING

PACKAGES               = OZSWgnutls
SPKG_DESC_OZSWgnutls   = GNU TLS library
SPKG_CLASSES           = cswdictconf
RUNTIME_DEP_PKGS_OZSWgnutls = OZSWnettle OZSWgmp OZSWgettext OZSWlibiconv

CONFIGURE_ARGS  = $(DIRPATHS)
CONFIGURE_ARGS += --with-included-libtasn1
CONFIGURE_ARGS += --with-included-unistring
CONFIGURE_ARGS += --without-p11-kit
CONFIGURE_ARGS += --disable-doc
CONFIGURE_ARGS += --disable-gtk-doc
CONFIGURE_ARGS += --disable-guile
CONFIGURE_ARGS += --disable-libdane
CONFIGURE_ARGS += --disable-tests
CONFIGURE_ARGS += --disable-dependency-tracking

EXTRA_LD_FLAGS += -lintl -liconv

include gar/category.mk

post-configure:
	find $(WORKSRC) -name "libtool" \
	    -exec /usr/bin/gsed -i 's/ECHO="print -r --"/ECHO="printf %s\\n"/g' {} \;
	@$(MAKECOOKIE)
