increase dvbapp PR.
[vuplus_openembedded] / recipes / lzma / lzma.inc
1 DESCRIPTION = "LZMA is a general compression method. LZMA provides high compression ratio and very fast decompression."
2 HOMEPAGE = "http://www.7-zip.org/"
3 LICENSE = "LGPL"
4 DEPENDS = "zlib"
5 INC_PR = "r4"
6
7 SRC_URI = "http://downloads.sourceforge.net/sevenzip/lzma${@bb.data.getVar('PV',d,1).replace('.','')}.tar.bz2 \
8            file://001-large_files.patch;patch=1 \
9            file://002-lzmp.patch;patch=1 \
10            file://003-compile_fixes.patch;patch=1 \
11            file://100-static_library.patch;patch=1"
12
13 S = "${WORKDIR}"
14
15 EXTRA_OEMAKE = "-f makefile.gcc"
16
17 CFLAGS += "-c -I${S}"
18
19 do_unpack_append() {
20         # Replace MS-DOS line-endings with Unix style line-endings
21         os.system("find ${S} -type f -print0 | xargs -0 sed 's/\r$//' -i")
22 }
23
24 do_patch_append() {
25         # Hack to ensure we use our environment values
26         os.system("find ${S} -type f -name makefile.gcc -print0 | xargs -0 sed 's/^CXX =/CXX ?=/;s/^CXX_C =/CXX_C ?=/;s/CXX_C/CC/' -i")
27 }
28
29 do_compile() {
30         oe_runmake -C C/LzmaUtil
31         oe_runmake -C CPP/7zip/Compress/LZMA_Alone
32 }
33
34 do_install() {
35         install -d ${D}${bindir} ${D}${libdir}
36         install -m 0755 CPP/7zip/Compress/LZMA_Alone/lzma ${D}${bindir}
37         oe_libinstall -a -C C/LzmaUtil liblzma ${D}${libdir}
38 }