1*4882a593SmuzhiyunDESCRIPTION = ""Compress::Raw::Lzma" provides an interface to the in-memory \
2*4882a593Smuzhiyuncompression/uncompression functions from the lzma compression library."
3*4882a593Smuzhiyun
4*4882a593SmuzhiyunSECTION = "libs"
5*4882a593SmuzhiyunLICENSE = "Artistic-1.0 | GPL-1.0-or-later"
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunMAINTAINER=	"Poky <poky@yoctoproject.org>"
8*4882a593SmuzhiyunHOMEPAGE=	"https://metacpan.org/release/Compress-Raw-Lzma"
9*4882a593Smuzhiyun
10*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Artistic-1.0;md5=cda03bbdc3c1951996392b872397b798 \
11*4882a593Smuzhiyunfile://${COMMON_LICENSE_DIR}/GPL-1.0-only;md5=e9e36a9de734199567a4d769498f743d"
12*4882a593Smuzhiyun
13*4882a593SmuzhiyunSRC_URI = "https://cpan.metacpan.org/authors/id/P/PM/PMQS/Compress-Raw-Lzma-2.096.tar.gz"
14*4882a593Smuzhiyun
15*4882a593SmuzhiyunSRC_URI[md5sum] = "b5079bb43712fcd1e74b80777fa376ed"
16*4882a593SmuzhiyunSRC_URI[sha256sum] = "f3afb267b1303b0f125976e9e4a70c6a4a205e35e7c99b408911f5e5c6578217"
17*4882a593Smuzhiyun
18*4882a593SmuzhiyunDEPENDS += "xz"
19*4882a593Smuzhiyun
20*4882a593SmuzhiyunS = "${WORKDIR}/Compress-Raw-Lzma-${PV}"
21*4882a593Smuzhiyun
22*4882a593Smuzhiyuninherit cpan
23*4882a593Smuzhiyun
24*4882a593Smuzhiyunexport LIBLZMA_INCLUDE="-I${STAGING_DIR_HOST}${includedir}"
25*4882a593Smuzhiyunexport LIBLZMA_LIB="-I${STAGING_DIR_HOST}${libdir}"
26*4882a593Smuzhiyun
27*4882a593Smuzhiyundo_compile() {
28*4882a593Smuzhiyun	export LIBC="$(find ${STAGING_DIR_TARGET}/${base_libdir}/ -name 'libc-*.so')"
29*4882a593Smuzhiyun	cpan_do_compile
30*4882a593Smuzhiyun}
31*4882a593Smuzhiyun
32*4882a593SmuzhiyunBBCLASSEXTEND = "native"
33