summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/lzma/lzma.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-support/lzma/lzma.inc')
-rw-r--r--meta-oe/recipes-support/lzma/lzma.inc36
1 files changed, 36 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/lzma/lzma.inc b/meta-oe/recipes-support/lzma/lzma.inc
new file mode 100644
index 000000000..72f5d47bb
--- /dev/null
+++ b/meta-oe/recipes-support/lzma/lzma.inc
@@ -0,0 +1,36 @@
1DESCRIPTION = "LZMA is a general compression method. LZMA provides high compression ratio and very fast decompression."
2HOMEPAGE = "http://www.7-zip.org/"
3LICENSE = "LGPL"
4LIC_FILES_CHKSUM = "file://lzma.txt;md5=20251cdc2e3793cceab11878d0aa11b1"
5INC_PR = "r6"
6
7SRC_URI = "http://downloads.sourceforge.net/sevenzip/lzma${@bb.data.getVar('PV',d,1).replace('.','')}.tar.bz2;subdir=${BPN}-${PV} \
8 file://001-large_files.patch \
9 file://002-lzmp.patch \
10 file://003-compile_fixes.patch \
11 file://100-static_library.patch \
12 file://makefile-cleanup.patch"
13
14EXTRA_OEMAKE = "-f makefile.gcc"
15
16do_unpack_append() {
17 import oe.process
18 # Replace MS-DOS line-endings with Unix style line-endings
19 oe.process.run("find . -type f -print0 | xargs -0 sed 's/\r$//' -i",
20 cwd=d.getVar("S", True))
21}
22
23do_compile() {
24 oe_runmake CFLAGS='${CFLAGS} -c' -C C/LzmaUtil
25 oe_runmake CXX_C='${CC} ${CFLAGS}' CXX='${CXX} ${CXXFLAGS}' \
26 -C CPP/7zip/Compress/LZMA_Alone
27}
28
29do_install() {
30 install -d ${D}${bindir} ${D}${libdir}
31 install -m 0755 CPP/7zip/Compress/LZMA_Alone/lzma ${D}${bindir}
32 oe_libinstall -a -C C/LzmaUtil liblzma ${D}${libdir}
33}
34
35NATIVE_INSTALL_WORKS = "1"
36BBCLASSEXTEND = "native"