3 GNUTLS_VERSION
:= 3.6.15
4 GNUTLS_URL
:= https
://www.gnupg.org
/ftp
/gcrypt
/gnutls
/v3.6
/gnutls-
$(GNUTLS_VERSION
).
tar.xz
11 ifeq ($(call need_pkg
,"gnutls >= 3.5.0"),)
15 $(TARBALLS
)/gnutls-
$(GNUTLS_VERSION
).
tar.xz
:
16 $(call download_pkg
,$(GNUTLS_URL
),gnutls
)
18 .sum-gnutls
: gnutls-
$(GNUTLS_VERSION
).
tar.xz
20 gnutls
: gnutls-
$(GNUTLS_VERSION
).
tar.xz .sum-gnutls
22 $(APPLY
) $(SRC
)/gnutls
/gnutls-fix-mangling.patch
24 # backport gnulib patch
25 $(APPLY
) $(SRC
)/gnutls
/0001-Don-t-assume-that-UNICODE-is-not-defined.patch
27 # fix forbidden UWP call which can't be upstreamed as they won't
28 # differentiate for winstore, only _WIN32_WINNT
29 $(APPLY
) $(SRC
)/gnutls
/0001-fcntl-do-not-call-GetHandleInformation-in-Winstore-a.patch
31 # forbidden RtlSecureZeroMemory call in winstore builds
32 $(APPLY
) $(SRC
)/gnutls
/0001-explicit_bzero-Do-not-call-SecureZeroMemory-on-UWP-b.patch
34 # disable the dllimport in static linking (pkg-config --static doesn't handle Cflags.private)
35 cd
$(UNPACK_DIR
) && sed
-i.orig
-e s
/"_SYM_EXPORT __declspec(dllimport)"/"_SYM_EXPORT"/g lib
/includes
/gnutls
/gnutls.h.in
37 $(call pkg_static
,"lib/gnutls.pc.in")
45 --disable-srp-authentication \
46 --disable-anon-authentication \
47 --disable-openssl-compatibility \
50 --without-libintl-prefix \
54 --with-included-libtasn1 \
55 --with-included-unistring \
58 GNUTLS_ENV
:= $(HOSTVARS
)
60 DEPS_gnutls
= nettle
$(DEPS_nettle
)
63 GNUTLS_ENV
+= gl_cv_header_working_stdint_h
=yes
67 GNUTLS_CONF
+= --disable-hardware-acceleration
71 GNUTLS_CONF
+= --without-idn
72 ifeq ($(ARCH
),aarch64
)
73 # Gnutls' aarch64 assembly unconditionally uses ELF specific directives
74 GNUTLS_CONF
+= --disable-hardware-acceleration
79 GNUTLS_CONF
+= --disable-hardware-acceleration
83 cd
$< && $(GNUTLS_ENV
) .
/configure
$(GNUTLS_CONF
)
84 cd
$< && $(MAKE
) -C gl
install
85 cd
$< && $(MAKE
) -C lib
install