diff options
Diffstat (limited to 'meta/recipes-support/gnutls/gnutls.inc')
-rw-r--r-- | meta/recipes-support/gnutls/gnutls.inc | 49 |
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 @@ | |||
1 | SUMMARY = "GNU Transport Layer Security Library" | ||
2 | HOMEPAGE = "http://www.gnu.org/software/gnutls/" | ||
3 | BUGTRACKER = "https://savannah.gnu.org/support/?group=gnutls" | ||
4 | DEPENDS = "zlib nettle" | ||
5 | |||
6 | LICENSE = "GPLv3+ & LGPLv2.1+" | ||
7 | LICENSE_${PN} = "LGPLv2.1+" | ||
8 | LICENSE_${PN}-xx = "LGPLv2.1+" | ||
9 | LICENSE_${PN}-bin = "GPLv3+" | ||
10 | LICENSE_${PN}-openssl = "GPLv3+" | ||
11 | |||
12 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \ | ||
13 | file://COPYING.LESSER;md5=a6f89e2100d9b6cdffcea4f398e37343" | ||
14 | |||
15 | |||
16 | SHRT_VER = "${@d.getVar('PV',1).split('.')[0]}.${@d.getVar('PV',1).split('.')[1]}" | ||
17 | |||
18 | SRC_URI = "ftp://ftp.gnutls.org/gcrypt/gnutls/v${SHRT_VER}/gnutls-${PV}.tar.xz" | ||
19 | |||
20 | inherit autotools-brokensep texinfo binconfig pkgconfig gettext lib_package | ||
21 | |||
22 | EXTRA_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 | |||
32 | do_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 | |||
38 | PACKAGECONFIG ??= "" | ||
39 | PACKAGECONFIG[tpm] = "--with-tpm, --without-tpm, trousers" | ||
40 | |||
41 | PACKAGES =+ "${PN}-openssl ${PN}-xx" | ||
42 | |||
43 | FILES_${PN}-dev += "${bindir}/gnutls-cli-debug" | ||
44 | FILES_${PN}-openssl = "${libdir}/libgnutls-openssl.so.*" | ||
45 | FILES_${PN}-xx = "${libdir}/libgnutlsxx.so.*" | ||
46 | |||
47 | LDFLAGS_append_libc-uclibc += " -pthread" | ||
48 | |||
49 | BBCLASSEXTEND = "native nativesdk" | ||