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