blob: 98ec8d9667b45225328ba608be14f0670306c998 [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"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05004
5LICENSE = "GPLv3+ & LGPLv2.1+"
6LICENSE_${PN} = "LGPLv2.1+"
7LICENSE_${PN}-xx = "LGPLv2.1+"
8LICENSE_${PN}-bin = "GPLv3+"
9LICENSE_${PN}-openssl = "GPLv3+"
10
Patrick Williamsc0f7c042017-02-23 20:41:17 -060011LIC_FILES_CHKSUM = "file://LICENSE;md5=71391c8e0c1cfe68077e7fce3b586283 \
12 file://doc/COPYING;md5=d32239bcb673463ab874e80d47fae504 \
13 file://doc/COPYING.LESSER;md5=a6f89e2100d9b6cdffcea4f398e37343"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050014
Brad Bishop6e60e8b2018-02-01 10:27:11 -050015DEPENDS = "nettle gmp virtual/libiconv libunistring"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050016DEPENDS_append_libc-musl = " argp-standalone"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050017
Brad Bishop6e60e8b2018-02-01 10:27:11 -050018SHRT_VER = "${@d.getVar('PV').split('.')[0]}.${@d.getVar('PV').split('.')[1]}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050019
Brad Bishopd5ae7d92018-06-14 09:52:03 -070020SRC_URI = "https://www.gnupg.org/ftp/gcrypt/gnutls/v${SHRT_VER}/gnutls-${PV}.tar.xz"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050021
Patrick Williamsc0f7c042017-02-23 20:41:17 -060022inherit autotools texinfo binconfig pkgconfig gettext lib_package gtk-doc
Patrick Williamsc124f4f2015-09-15 14:41:29 -050023
Brad Bishop316dfdd2018-06-25 12:45:53 -040024PACKAGECONFIG ??= "libidn"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050025
Brad Bishop6e60e8b2018-02-01 10:27:11 -050026# You must also have CONFIG_SECCOMP enabled in the kernel for
27# seccomp to work.
28#
29PACKAGECONFIG[seccomp] = "ac_cv_libseccomp=yes,ac_cv_libseccomp=no,libseccomp"
30
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050031PACKAGECONFIG[libidn] = "--with-idn,--without-idn,libidn"
32PACKAGECONFIG[libtasn1] = "--with-included-libtasn1=no,--with-included-libtasn1,libtasn1"
33PACKAGECONFIG[p11-kit] = "--with-p11-kit,--without-p11-kit,p11-kit"
34PACKAGECONFIG[tpm] = "--with-tpm,--without-tpm,trousers"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050035
36EXTRA_OECONF = " \
Patrick Williamsc0f7c042017-02-23 20:41:17 -060037 --enable-doc \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050038 --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 Bishop6e60e8b2018-02-01 10:27:11 -050044 --without-libunistring-prefix \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050045"
46
47LDFLAGS_append_libc-musl = " -largp"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050048
49do_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 Williamsc124f4f2015-09-15 14:41:29 -050055PACKAGES =+ "${PN}-openssl ${PN}-xx"
56
57FILES_${PN}-dev += "${bindir}/gnutls-cli-debug"
58FILES_${PN}-openssl = "${libdir}/libgnutls-openssl.so.*"
59FILES_${PN}-xx = "${libdir}/libgnutlsxx.so.*"