Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 1 | DESCRIPTION = ""Compress::Raw::Lzma" provides an interface to the in-memory \ |
| 2 | compression/uncompression functions from the lzma compression library." |
| 3 | |
| 4 | SECTION = "libs" |
| 5 | LICENSE = "Artisticv1 | GPLv1+" |
| 6 | |
| 7 | MAINTAINER= "Poky <poky@yoctoproject.org>" |
| 8 | HOMEPAGE= "https://metacpan.org/release/Compress-Raw-Lzma" |
| 9 | |
| 10 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Artistic-1.0;md5=cda03bbdc3c1951996392b872397b798 \ |
| 11 | file://${COMMON_LICENSE_DIR}/GPL-1.0-only;md5=e9e36a9de734199567a4d769498f743d" |
| 12 | |
| 13 | SRC_URI = "https://cpan.metacpan.org/authors/id/P/PM/PMQS/Compress-Raw-Lzma-2.096.tar.gz" |
| 14 | |
| 15 | SRC_URI[md5sum] = "b5079bb43712fcd1e74b80777fa376ed" |
| 16 | SRC_URI[sha256sum] = "f3afb267b1303b0f125976e9e4a70c6a4a205e35e7c99b408911f5e5c6578217" |
| 17 | |
| 18 | DEPENDS += "xz" |
| 19 | |
| 20 | S = "${WORKDIR}/Compress-Raw-Lzma-${PV}" |
| 21 | |
| 22 | inherit cpan |
| 23 | |
| 24 | export LIBLZMA_INCLUDE="-I${STAGING_DIR_HOST}${includedir}" |
| 25 | export LIBLZMA_LIB="-I${STAGING_DIR_HOST}${libdir}" |
| 26 | |
| 27 | do_compile() { |
| 28 | export LIBC="$(find ${STAGING_DIR_TARGET}/${base_libdir}/ -name 'libc-*.so')" |
| 29 | cpan_do_compile |
| 30 | } |
| 31 | |
| 32 | BBCLASSEXTEND = "native" |