2013-12-19 15:13:01 +00:00
|
|
|
SUMMARY = "GNU Transport Layer Security Library"
|
2007-06-04 11:23:39 +00:00
|
|
|
HOMEPAGE = "http://www.gnu.org/software/gnutls/"
|
2010-06-23 07:07:39 +00:00
|
|
|
BUGTRACKER = "https://savannah.gnu.org/support/?group=gnutls"
|
2011-03-24 09:36:12 +00:00
|
|
|
|
2010-06-23 07:07:39 +00:00
|
|
|
LICENSE = "GPLv3+ & LGPLv2.1+"
|
|
|
|
LICENSE_${PN} = "LGPLv2.1+"
|
2011-10-07 17:36:57 +00:00
|
|
|
LICENSE_${PN}-xx = "LGPLv2.1+"
|
2010-06-23 07:07:39 +00:00
|
|
|
LICENSE_${PN}-bin = "GPLv3+"
|
|
|
|
LICENSE_${PN}-openssl = "GPLv3+"
|
2014-04-28 14:27:29 +00:00
|
|
|
|
2010-06-23 07:07:39 +00:00
|
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \
|
2014-04-28 14:27:29 +00:00
|
|
|
file://COPYING.LESSER;md5=a6f89e2100d9b6cdffcea4f398e37343"
|
|
|
|
|
2016-02-02 22:12:33 +00:00
|
|
|
DEPENDS = "nettle gmp virtual/libiconv"
|
2016-02-02 22:12:31 +00:00
|
|
|
DEPENDS_append_libc-musl = " argp-standalone"
|
2007-06-04 11:23:39 +00:00
|
|
|
|
2016-02-02 22:12:31 +00:00
|
|
|
SHRT_VER = "${@d.getVar('PV', True).split('.')[0]}.${@d.getVar('PV', True).split('.')[1]}"
|
2013-05-08 12:14:45 +00:00
|
|
|
|
2014-04-28 14:27:29 +00:00
|
|
|
SRC_URI = "ftp://ftp.gnutls.org/gcrypt/gnutls/v${SHRT_VER}/gnutls-${PV}.tar.xz"
|
2007-06-04 11:23:39 +00:00
|
|
|
|
2015-01-13 03:08:51 +00:00
|
|
|
inherit autotools texinfo binconfig pkgconfig gettext lib_package
|
2007-06-04 11:23:39 +00:00
|
|
|
|
2016-02-02 22:12:33 +00:00
|
|
|
PACKAGECONFIG ??= "libidn zlib"
|
2016-02-02 22:12:31 +00:00
|
|
|
|
2016-02-02 22:12:33 +00:00
|
|
|
PACKAGECONFIG[docs] = "--enable-doc,--disable-doc"
|
|
|
|
PACKAGECONFIG[libidn] = "--with-idn,--without-idn,libidn"
|
|
|
|
PACKAGECONFIG[libtasn1] = "--with-included-libtasn1=no,--with-included-libtasn1,libtasn1"
|
|
|
|
PACKAGECONFIG[p11-kit] = "--with-p11-kit,--without-p11-kit,p11-kit"
|
2016-02-02 22:12:31 +00:00
|
|
|
PACKAGECONFIG[tpm] = "--with-tpm,--without-tpm,trousers"
|
|
|
|
PACKAGECONFIG[zlib] = "--with-zlib,--without-zlib,zlib"
|
|
|
|
|
|
|
|
EXTRA_OECONF = " \
|
|
|
|
--disable-crywrap \
|
2016-02-02 22:12:33 +00:00
|
|
|
--disable-libdane \
|
2016-02-02 22:12:31 +00:00
|
|
|
--disable-guile \
|
|
|
|
--disable-rpath \
|
|
|
|
--enable-local-libopts \
|
|
|
|
--enable-openssl-compatibility \
|
|
|
|
--with-libpthread-prefix=${STAGING_DIR_HOST}${prefix} \
|
|
|
|
"
|
|
|
|
|
|
|
|
LDFLAGS_append_libc-musl = " -largp"
|
|
|
|
LDFLAGS_append_libc-uclibc = " -luargp -pthread"
|
2014-04-28 14:27:29 +00:00
|
|
|
|
2010-06-23 07:07:39 +00:00
|
|
|
do_configure_prepend() {
|
2014-04-28 14:27:29 +00:00
|
|
|
for dir in . lib; do
|
2012-01-19 05:39:16 +00:00
|
|
|
rm -f ${dir}/aclocal.m4 ${dir}/m4/libtool.m4 ${dir}/m4/lt*.m4
|
2010-06-23 07:07:39 +00:00
|
|
|
done
|
|
|
|
}
|
2007-06-04 11:23:39 +00:00
|
|
|
|
2014-04-28 14:27:29 +00:00
|
|
|
PACKAGES =+ "${PN}-openssl ${PN}-xx"
|
2007-06-04 11:23:39 +00:00
|
|
|
|
2012-06-05 12:42:11 +00:00
|
|
|
FILES_${PN}-dev += "${bindir}/gnutls-cli-debug"
|
2007-06-04 11:23:39 +00:00
|
|
|
FILES_${PN}-openssl = "${libdir}/libgnutls-openssl.so.*"
|
|
|
|
FILES_${PN}-xx = "${libdir}/libgnutlsxx.so.*"
|
2011-05-26 18:41:25 +00:00
|
|
|
|
2014-07-20 20:00:43 +00:00
|
|
|
BBCLASSEXTEND = "native nativesdk"
|