diff options
author | Kristoffer Ericson <kristoffer_e1@hotmail.com> | 2006-10-25 23:27:19 +0000 |
---|---|---|
committer | Kristoffer Ericson <kristoffer_e1@hotmail.com> | 2006-10-25 23:27:19 +0000 |
commit | e26108affb65e89fcf248a58564b9c25934a04a0 (patch) | |
tree | 3c27feb6d440ed2df41309dae277afc13427c12f /packages/lzma/lzma_4.17.bb | |
parent | d7fd0e38cb60cb0ac871723c34616bf542d423cc (diff) | |
parent | 12f3d309156ac047b0826904ef729b83b997b8b5 (diff) |
merge of 5d13f311dd93df73db461d6abca7480b39bbecbc
and 6bdfd4680fb56e499b8a254034efb752dead5002
Diffstat (limited to 'packages/lzma/lzma_4.17.bb')
-rw-r--r-- | packages/lzma/lzma_4.17.bb | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/packages/lzma/lzma_4.17.bb b/packages/lzma/lzma_4.17.bb new file mode 100644 index 0000000000..f83ddd587e --- /dev/null +++ b/packages/lzma/lzma_4.17.bb @@ -0,0 +1,36 @@ +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" +PR = "r1" + +SRC_URI = "http://www.7-zip.org/dl/lzma417.tar.bz2 \ + file://lzma-406-zlib-stream.patch;patch=1;pnum=2" + +S = "${WORKDIR}/SRC" + +EXTRA_OEMAKE += "CXX_C='${CC}'" + +CFLAGS += "-c -I${S}" + +# If you run into "internal compiler error" failures with gcc, disable optimization +# using -O0, or use -O1 or -O2 instead of -Os. (reported failure: gcc 3.4.4 for sh4) +#FULL_OPTIMIZATION = "-O0" + +# One such reported failure is a cross-gcc 3.4.4 for sh4: +FULL_OPTIMIZATION_sh4 = "-O1" + +do_compile() { + oe_runmake -C 7zip/Compress/LZMA_Alone + oe_runmake -C 7zip/Compress/LZMA_Lib +} + +do_install() { + install -d ${D}${bindir} ${D}${libdir} + install -m 0755 7zip/Compress/LZMA_Alone/lzma ${D}${bindir} + oe_libinstall -a -C 7zip/Compress/LZMA_Lib liblzma ${D}${libdir} +} + +do_stage () { + oe_libinstall -a -C 7zip/Compress/LZMA_Lib liblzma ${STAGING_LIBDIR} +} |