1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
|
# -*-makefile-*-
#
# Copyright (C) 2012 by Jan Luebbe <jlu@pengutronix.de>
#
# See CREDITS for details about who has contributed to this project.
#
# For further information about the PTXdist project and license conditions
# see the README file.
#
#
# We provide this package
#
PACKAGES-$(PTXCONF_GNUTLS) += gnutls
#
# Paths and names
#
GNUTLS_VERSION := 3.6.4
GNUTLS_MD5 := 63363d1c00601f4d11a5cadc8b5e0799
GNUTLS := gnutls-$(GNUTLS_VERSION)
GNUTLS_SUFFIX := tar.xz
GNUTLS_URL := ftp://ftp.gnutls.org/gcrypt/gnutls/v$(basename $(GNUTLS_VERSION))/$(GNUTLS).$(GNUTLS_SUFFIX)
GNUTLS_SOURCE := $(SRCDIR)/$(GNUTLS).$(GNUTLS_SUFFIX)
GNUTLS_DIR := $(BUILDDIR)/$(GNUTLS)
GNUTLS_LICENSE := LGPL-3.0-or-later
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
#
# autoconf
#
GNUTLS_CONF_TOOL := autoconf
GNUTLS_CONF_OPT := \
$(CROSS_AUTOCONF_USR) \
$(GLOBAL_LARGE_FILE_OPTION) \
--enable-threads=posix \
--disable-code-coverage \
--disable-doc \
--disable-manpages \
--disable-tools \
--enable-cxx \
--enable-hardware-acceleration \
--enable-padlock \
--enable-sha1-support \
--disable-ssl3-support \
--enable-ssl2-support \
--enable-dtls-srtp-support \
--enable-alpn-support \
--enable-heartbeat-support \
--enable-srp-authentication \
--enable-psk-authentication \
--enable-anon-authentication \
--enable-dhe \
--enable-ecdhe \
--enable-gost \
--disable-cryptodev \
--enable-ocsp \
--$(call ptx/endis, PTXCONF_GNUTLS_OPENSSL)-openssl-compatibility \
--disable-tests \
--disable-fuzzer-target \
--disable-gtk-doc \
--disable-gtk-doc-html \
--disable-gtk-doc-pdf \
--disable-nls \
--disable-rpath \
--disable-seccomp-tests \
--disable-valgrind-tests \
--disable-full-test-suite \
--disable-gcc-warnings \
--disable-static \
--enable-shared \
--disable-fips140-mode \
--enable-non-suiteb-curves \
--disable-libdane \
--enable-local-libopts \
--disable-libopts-install \
--enable-optional-args \
--disable-guile \
--with-nettle-mini \
--without-included-libtasn1 \
--with-included-unistring \
--without-fips140-key \
--without-idn \
--without-p11-kit \
--without-tpm \
--without-trousers-lib \
--without-libregex \
--with-default-trust-store-file=/etc/ssl/certs/ca-certificates.crt
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
$(STATEDIR)/gnutls.targetinstall:
@$(call targetinfo)
@$(call install_init, gnutls)
@$(call install_fixup, gnutls,PRIORITY,optional)
@$(call install_fixup, gnutls,SECTION,base)
@$(call install_fixup, gnutls,AUTHOR,"Jan Luebbe <jlu@pengutronix.de>")
@$(call install_fixup, gnutls,DESCRIPTION,missing)
@$(call install_lib, gnutls, 0, 0, 0644, libgnutls)
ifdef PTXCONF_GNUTLS_CXX
@$(call install_lib, gnutls, 0, 0, 0644, libgnutlsxx)
endif
ifdef PTXCONF_GNUTLS_OPENSSL
@$(call install_lib, gnutls, 0, 0, 0644, libgnutls-openssl)
endif
@$(call install_finish, gnutls)
@$(call touch)
# vim: syntax=make
|