qt: playlist: use item title if available
[vlc.git] / contrib / src / gnutls / rules.mak
blobae2b07afd0d0efc457defec46484a63443265d2f
1 # GnuTLS
3 GNUTLS_VERSION := 3.6.15
4 GNUTLS_URL := https://www.gnupg.org/ftp/gcrypt/gnutls/v3.6/gnutls-$(GNUTLS_VERSION).tar.xz
6 ifdef BUILD_NETWORK
7 ifndef HAVE_DARWIN_OS
8 PKGS += gnutls
9 endif
10 endif
11 ifeq ($(call need_pkg,"gnutls >= 3.5.0"),)
12 PKGS_FOUND += gnutls
13 endif
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
21 $(UNPACK)
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")
38 $(UPDATE_AUTOCONFIG)
39 $(MOVE)
41 GNUTLS_CONF := \
42 --disable-gtk-doc \
43 --without-p11-kit \
44 --disable-cxx \
45 --disable-srp-authentication \
46 --disable-anon-authentication \
47 --disable-openssl-compatibility \
48 --disable-guile \
49 --disable-nls \
50 --without-libintl-prefix \
51 --disable-doc \
52 --disable-tools \
53 --disable-tests \
54 --with-included-libtasn1 \
55 --with-included-unistring \
56 $(HOSTCONF)
58 GNUTLS_ENV := $(HOSTVARS)
60 DEPS_gnutls = nettle $(DEPS_nettle)
62 ifdef HAVE_ANDROID
63 GNUTLS_ENV += gl_cv_header_working_stdint_h=yes
64 endif
65 ifdef HAVE_WINSTORE
66 ifeq ($(ARCH),x86_64)
67 GNUTLS_CONF += --disable-hardware-acceleration
68 endif
69 endif
70 ifdef HAVE_WIN32
71 GNUTLS_CONF += --without-idn
72 ifeq ($(ARCH),aarch64)
73 # Gnutls' aarch64 assembly unconditionally uses ELF specific directives
74 GNUTLS_CONF += --disable-hardware-acceleration
75 endif
76 endif
78 ifdef HAVE_NACL
79 GNUTLS_CONF += --disable-hardware-acceleration
80 endif
82 .gnutls: gnutls
83 cd $< && $(GNUTLS_ENV) ./configure $(GNUTLS_CONF)
84 cd $< && $(MAKE) -C gl install
85 cd $< && $(MAKE) -C lib install
86 touch $@