summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/gnutls/gnutls.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-support/gnutls/gnutls.inc')
-rw-r--r--meta/recipes-support/gnutls/gnutls.inc49
1 files changed, 49 insertions, 0 deletions
diff --git a/meta/recipes-support/gnutls/gnutls.inc b/meta/recipes-support/gnutls/gnutls.inc
new file mode 100644
index 0000000000..12b26cc97d
--- /dev/null
+++ b/meta/recipes-support/gnutls/gnutls.inc
@@ -0,0 +1,49 @@
1SUMMARY = "GNU Transport Layer Security Library"
2HOMEPAGE = "http://www.gnu.org/software/gnutls/"
3BUGTRACKER = "https://savannah.gnu.org/support/?group=gnutls"
4DEPENDS = "zlib nettle"
5
6LICENSE = "GPLv3+ & LGPLv2.1+"
7LICENSE_${PN} = "LGPLv2.1+"
8LICENSE_${PN}-xx = "LGPLv2.1+"
9LICENSE_${PN}-bin = "GPLv3+"
10LICENSE_${PN}-openssl = "GPLv3+"
11
12LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \
13 file://COPYING.LESSER;md5=a6f89e2100d9b6cdffcea4f398e37343"
14
15
16SHRT_VER = "${@d.getVar('PV',1).split('.')[0]}.${@d.getVar('PV',1).split('.')[1]}"
17
18SRC_URI = "ftp://ftp.gnutls.org/gcrypt/gnutls/v${SHRT_VER}/gnutls-${PV}.tar.xz"
19
20inherit autotools-brokensep texinfo binconfig pkgconfig gettext lib_package
21
22EXTRA_OECONF="--disable-rpath \
23 --with-included-libtasn1 \
24 --enable-local-libopts \
25 --with-libpthread-prefix=${STAGING_DIR_HOST}${prefix} \
26 --with-libz-prefix=${STAGING_DIR_HOST}${prefix} \
27 --disable-guile \
28 --disable-crywrap \
29 --without-p11-kit \
30 "
31
32do_configure_prepend() {
33 for dir in . lib; do
34 rm -f ${dir}/aclocal.m4 ${dir}/m4/libtool.m4 ${dir}/m4/lt*.m4
35 done
36}
37
38PACKAGECONFIG ??= ""
39PACKAGECONFIG[tpm] = "--with-tpm, --without-tpm, trousers"
40
41PACKAGES =+ "${PN}-openssl ${PN}-xx"
42
43FILES_${PN}-dev += "${bindir}/gnutls-cli-debug"
44FILES_${PN}-openssl = "${libdir}/libgnutls-openssl.so.*"
45FILES_${PN}-xx = "${libdir}/libgnutlsxx.so.*"
46
47LDFLAGS_append_libc-uclibc += " -pthread"
48
49BBCLASSEXTEND = "native nativesdk"