blob: e9b138a03b21987e288e67ab97204e1a9184d5d3 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001SUMMARY = "GNU Transport Layer Security Library"
2HOMEPAGE = "http://www.gnu.org/software/gnutls/"
3BUGTRACKER = "https://savannah.gnu.org/support/?group=gnutls"
4DEPENDS = "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 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 --disable-guile \
27 --disable-crywrap \
28 --without-p11-kit \
29 "
30
31do_configure_prepend() {
32 for dir in . lib; do
33 rm -f ${dir}/aclocal.m4 ${dir}/m4/libtool.m4 ${dir}/m4/lt*.m4
34 done
35}
36
37PACKAGECONFIG ??= "zlib"
38PACKAGECONFIG[tpm] = "--with-tpm, --without-tpm, trousers"
39PACKAGECONFIG[zlib] = "--with-zlib, --without-zlib, zlib"
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"