Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | SUMMARY = "GNU Transport Layer Security Library" |
| 2 | HOMEPAGE = "http://www.gnu.org/software/gnutls/" |
| 3 | BUGTRACKER = "https://savannah.gnu.org/support/?group=gnutls" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 4 | |
| 5 | LICENSE = "GPLv3+ & LGPLv2.1+" |
| 6 | LICENSE_${PN} = "LGPLv2.1+" |
| 7 | LICENSE_${PN}-xx = "LGPLv2.1+" |
| 8 | LICENSE_${PN}-bin = "GPLv3+" |
| 9 | LICENSE_${PN}-openssl = "GPLv3+" |
| 10 | |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 11 | LIC_FILES_CHKSUM = "file://LICENSE;md5=71391c8e0c1cfe68077e7fce3b586283 \ |
| 12 | file://doc/COPYING;md5=d32239bcb673463ab874e80d47fae504 \ |
| 13 | file://doc/COPYING.LESSER;md5=a6f89e2100d9b6cdffcea4f398e37343" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 14 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 15 | DEPENDS = "nettle gmp virtual/libiconv libunistring" |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 16 | DEPENDS_append_libc-musl = " argp-standalone" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 17 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 18 | SHRT_VER = "${@d.getVar('PV').split('.')[0]}.${@d.getVar('PV').split('.')[1]}" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 19 | |
Brad Bishop | d5ae7d9 | 2018-06-14 09:52:03 -0700 | [diff] [blame^] | 20 | SRC_URI = "https://www.gnupg.org/ftp/gcrypt/gnutls/v${SHRT_VER}/gnutls-${PV}.tar.xz" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 21 | |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 22 | inherit autotools texinfo binconfig pkgconfig gettext lib_package gtk-doc |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 23 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 24 | PACKAGECONFIG ??= "libidn" |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 25 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 26 | # You must also have CONFIG_SECCOMP enabled in the kernel for |
| 27 | # seccomp to work. |
| 28 | # |
| 29 | PACKAGECONFIG[seccomp] = "ac_cv_libseccomp=yes,ac_cv_libseccomp=no,libseccomp" |
| 30 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 31 | PACKAGECONFIG[libidn] = "--with-idn,--without-idn,libidn" |
| 32 | PACKAGECONFIG[libtasn1] = "--with-included-libtasn1=no,--with-included-libtasn1,libtasn1" |
| 33 | PACKAGECONFIG[p11-kit] = "--with-p11-kit,--without-p11-kit,p11-kit" |
| 34 | PACKAGECONFIG[tpm] = "--with-tpm,--without-tpm,trousers" |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 35 | |
| 36 | EXTRA_OECONF = " \ |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 37 | --enable-doc \ |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 38 | --disable-libdane \ |
| 39 | --disable-guile \ |
| 40 | --disable-rpath \ |
| 41 | --enable-local-libopts \ |
| 42 | --enable-openssl-compatibility \ |
| 43 | --with-libpthread-prefix=${STAGING_DIR_HOST}${prefix} \ |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 44 | --without-libunistring-prefix \ |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 45 | " |
| 46 | |
| 47 | LDFLAGS_append_libc-musl = " -largp" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 48 | |
| 49 | do_configure_prepend() { |
| 50 | for dir in . lib; do |
| 51 | rm -f ${dir}/aclocal.m4 ${dir}/m4/libtool.m4 ${dir}/m4/lt*.m4 |
| 52 | done |
| 53 | } |
| 54 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 55 | PACKAGES =+ "${PN}-openssl ${PN}-xx" |
| 56 | |
| 57 | FILES_${PN}-dev += "${bindir}/gnutls-cli-debug" |
| 58 | FILES_${PN}-openssl = "${libdir}/libgnutls-openssl.so.*" |
| 59 | FILES_${PN}-xx = "${libdir}/libgnutlsxx.so.*" |