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"
|
2015-12-29 01:19:33 +00:00
|
|
|
DEPENDS = "nettle libidn virtual/libiconv"
|
2015-12-17 08:53:21 +00:00
|
|
|
DEPENDS_append_libc-musl = " argp-standalone "
|
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"
|
|
|
|
|
2007-06-04 11:23:39 +00:00
|
|
|
|
2013-05-08 12:14:45 +00:00
|
|
|
SHRT_VER = "${@d.getVar('PV',1).split('.')[0]}.${@d.getVar('PV',1).split('.')[1]}"
|
|
|
|
|
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
|
|
|
|
2014-04-28 14:27:29 +00:00
|
|
|
EXTRA_OECONF="--disable-rpath \
|
|
|
|
--with-included-libtasn1 \
|
|
|
|
--enable-local-libopts \
|
2011-06-02 11:00:06 +00:00
|
|
|
--with-libpthread-prefix=${STAGING_DIR_HOST}${prefix} \
|
2014-04-28 14:27:29 +00:00
|
|
|
--disable-guile \
|
2014-07-16 15:46:49 +00:00
|
|
|
--disable-crywrap \
|
2011-10-07 13:04:18 +00:00
|
|
|
--without-p11-kit \
|
2015-12-04 11:55:49 +00:00
|
|
|
--enable-openssl-compatibility \
|
2011-05-24 23:23:32 +00:00
|
|
|
"
|
2015-12-17 08:53:21 +00:00
|
|
|
LDFLAGS_append_libc-musl = " -largp "
|
2015-12-29 01:19:33 +00:00
|
|
|
LDFLAGS_append_libc-uclibc = " -luargp "
|
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
|
|
|
|
2015-05-27 18:48:50 +00:00
|
|
|
PACKAGECONFIG ??= "zlib"
|
2014-12-02 05:53:34 +00:00
|
|
|
PACKAGECONFIG[tpm] = "--with-tpm, --without-tpm, trousers"
|
2015-05-27 18:48:50 +00:00
|
|
|
PACKAGECONFIG[zlib] = "--with-zlib, --without-zlib, zlib"
|
2014-12-02 05:53:34 +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-03-16 05:42:28 +00:00
|
|
|
LDFLAGS_append_libc-uclibc += " -pthread"
|
|
|
|
|
2014-07-20 20:00:43 +00:00
|
|
|
BBCLASSEXTEND = "native nativesdk"
|