blob: a9a5570d39939fd171a6c10315c740745aad6ff6 [file] [log] [blame]
Patrick Williams2390b1b2022-11-03 13:47:49 -05001SUMMARY = "Low-Level Interface to lzma compresion library."
2DESCRIPTION = "This module provides a Perl interface to allow reading and \
3wrting of lzma, lzip and xz files/buffers."
4HOMEPAGE = "https://metacpan.org/release/Compress-Raw-Lzma"
5SECTION = "libs"
6LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
7
Patrick Williams7784c422022-11-17 07:29:11 -06008LIC_FILES_CHKSUM = "file://README;beginline=8;endline=10;md5=8f4f1603d6e92a381ce2f595ab3cafd5"
Patrick Williams2390b1b2022-11-03 13:47:49 -05009
10SRC_URI = "${CPAN_MIRROR}/authors/id/P/PM/PMQS/Compress-Raw-Lzma-${PV}.tar.gz"
11
Patrick Williams7784c422022-11-17 07:29:11 -060012SRC_URI[sha256sum] = "ccefd0c0379fae599e2f24570d51cdd8135c161519f7931f0b6cfcf0366094f1"
Patrick Williams2390b1b2022-11-03 13:47:49 -050013
14DEPENDS += "xz"
15
16S = "${WORKDIR}/Compress-Raw-Lzma-${PV}"
17
18inherit cpan
19
20RDEPENDS:${PN} += "\
21 perl-module-universal \
22"
23
24export LIBLZMA_INCLUDE="-I${STAGING_DIR_HOST}${includedir}"
25export LIBLZMA_LIB="-I${STAGING_DIR_HOST}${libdir}"
26
27do_compile() {
28 export LIBC="$(find ${STAGING_DIR_TARGET}/${base_libdir}/ -name 'libc-*.so')"
29 cpan_do_compile
30}
31
32BBCLASSEXTEND = "native"