summaryrefslogtreecommitdiff
path: root/recipes/lzma/lzma.inc
diff options
context:
space:
mode:
authorStefan Schmidt <stefan@datenfreihafen.org>2009-10-30 08:43:42 +0100
committerStefan Schmidt <stefan@datenfreihafen.org>2009-10-30 08:43:42 +0100
commitab3568778b3617ce15811c0004d96a6bc3323bd6 (patch)
tree99e0e0f86829da61ebccb145d35a560f2a37f748 /recipes/lzma/lzma.inc
parent2012861d8154cd0241d8a3e1ab57b485006284dc (diff)
parentb2010b603e066e5a39667a83f4675c59ddf2efd8 (diff)
Merge branch 'org.openembedded.dev' of git.openembedded.org:openembedded into org.openembedded.dev
Diffstat (limited to 'recipes/lzma/lzma.inc')
-rw-r--r--recipes/lzma/lzma.inc39
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}
+}