diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2009-09-29 18:49:24 -0300 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2009-10-29 20:43:50 -0200 |
commit | c99bb48707c79be34d897f33e67f2f87397096c8 (patch) | |
tree | 575b2433edfb9402eccb4f72622257af1572aa8c /recipes/lzma/lzma.inc | |
parent | 63f60254966eabb9f4e2457eab659e6e5c51797c (diff) |
lzma: update to 4.65 and use INC_PR
Few header files has been added to ${STAGING_INCDIR}/lzma to allow
squashfs-tools to be compiled against it.
The gcc optimization flags has been droped for now since it ought to
have been fixed since the last test with the recipe, otherwise it
should be easy to be added back.
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'recipes/lzma/lzma.inc')
-rw-r--r-- | recipes/lzma/lzma.inc | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/recipes/lzma/lzma.inc b/recipes/lzma/lzma.inc new file mode 100644 index 0000000000..fc40c9313b --- /dev/null +++ b/recipes/lzma/lzma.inc @@ -0,0 +1,39 @@ +DESCRIPTION = "LZMA is a general compression method. LZMA provides high compression ratio and very fast decompression." +HOMEPAGE = "http://www.7-zip.org/" +LICENSE = "LGPL" +DEPENDS = "zlib" +INC_PR = "r1" + +SRC_URI = "http://downloads.sourceforge.net/sevenzip/lzma${@bb.data.getVar('PV',d,1).replace('.','')}.tar.bz2 \ + file://001-large_files.patch;patch=1 \ + file://002-lzmp.patch;patch=1 \ + file://003-compile_fixes.patch;patch=1 \ + file://100-static_library.patch;patch=1" + +S = "${WORKDIR}" + +EXTRA_OEMAKE = "-f makefile.gcc" + +CFLAGS += "-c -I${S}" + +do_unpack_append() { + # It has few files with wrong encoding + os.system("find ${S} -type f -print0 | xargs -0 dos2unix") +} + +do_compile() { + oe_runmake -C C/LzmaUtil + oe_runmake -C CPP/7zip/Compress/LZMA_Alone +} + +do_install() { + install -d ${D}${bindir} ${D}${libdir} + install -m 0755 CPP/7zip/Compress/LZMA_Alone/lzma ${D}${bindir} + oe_libinstall -a -C C/LzmaUtil liblzma ${D}${libdir} +} + +do_stage () { + install --d ${STAGING_INCDIR}/lzma + install -m 0644 C/*.h ${STAGING_INCDIR}/lzma + oe_libinstall -a -C C/LzmaUtil liblzma ${STAGING_LIBDIR} +} |