M7350/oe-core/meta/recipes-support/gnutls/gnutls.inc

50 lines
1.5 KiB
PHP
Raw Normal View History

2024-09-09 08:57:42 +00:00
SUMMARY = "GNU Transport Layer Security Library"
2024-09-09 08:52:07 +00:00
HOMEPAGE = "http://www.gnu.org/software/gnutls/"
BUGTRACKER = "https://savannah.gnu.org/support/?group=gnutls"
2024-09-09 08:57:42 +00:00
DEPENDS = "zlib nettle"
2024-09-09 08:52:07 +00:00
LICENSE = "GPLv3+ & LGPLv2.1+"
LICENSE_${PN} = "LGPLv2.1+"
LICENSE_${PN}-xx = "LGPLv2.1+"
LICENSE_${PN}-bin = "GPLv3+"
LICENSE_${PN}-openssl = "GPLv3+"
2024-09-09 08:57:42 +00:00
2024-09-09 08:52:07 +00:00
LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \
2024-09-09 08:57:42 +00:00
file://COPYING.LESSER;md5=a6f89e2100d9b6cdffcea4f398e37343"
2024-09-09 08:52:07 +00:00
2024-09-09 08:57:42 +00:00
SHRT_VER = "${@d.getVar('PV',1).split('.')[0]}.${@d.getVar('PV',1).split('.')[1]}"
2024-09-09 08:52:07 +00:00
2024-09-09 08:57:42 +00:00
SRC_URI = "ftp://ftp.gnutls.org/gcrypt/gnutls/v${SHRT_VER}/gnutls-${PV}.tar.xz"
2024-09-09 08:52:07 +00:00
2024-09-09 08:57:42 +00:00
inherit autotools texinfo binconfig pkgconfig gettext lib_package
EXTRA_OECONF="--disable-rpath \
--with-included-libtasn1 \
--enable-local-libopts \
2024-09-09 08:52:07 +00:00
--with-libpthread-prefix=${STAGING_DIR_HOST}${prefix} \
--with-libz-prefix=${STAGING_DIR_HOST}${prefix} \
2024-09-09 08:57:42 +00:00
--disable-guile \
--disable-crywrap \
2024-09-09 08:52:07 +00:00
--without-p11-kit \
"
2024-09-09 08:57:42 +00:00
2024-09-09 08:52:07 +00:00
do_configure_prepend() {
2024-09-09 08:57:42 +00:00
for dir in . lib; do
2024-09-09 08:52:07 +00:00
rm -f ${dir}/aclocal.m4 ${dir}/m4/libtool.m4 ${dir}/m4/lt*.m4
done
}
2024-09-09 08:57:42 +00:00
PACKAGECONFIG ??= ""
PACKAGECONFIG[tpm] = "--with-tpm, --without-tpm, trousers"
2024-09-09 08:52:07 +00:00
2024-09-09 08:57:42 +00:00
PACKAGES =+ "${PN}-openssl ${PN}-xx"
2024-09-09 08:52:07 +00:00
2024-09-09 08:57:42 +00:00
FILES_${PN}-dev += "${bindir}/gnutls-cli-debug"
2024-09-09 08:52:07 +00:00
FILES_${PN}-openssl = "${libdir}/libgnutls-openssl.so.*"
FILES_${PN}-xx = "${libdir}/libgnutlsxx.so.*"
2024-09-09 08:57:42 +00:00
LDFLAGS_append_libc-uclibc += " -pthread"
BBCLASSEXTEND = "native nativesdk"