summaryrefslogtreecommitdiffstats
path: root/recipes/lzma/lzma.inc
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/lzma/lzma.inc')
-rw-r--r--recipes/lzma/lzma.inc7
1 files changed, 6 insertions, 1 deletions
diff --git a/recipes/lzma/lzma.inc b/recipes/lzma/lzma.inc
index bffbeb2d3b..4d31a44cd0 100644
--- a/recipes/lzma/lzma.inc
+++ b/recipes/lzma/lzma.inc
@@ -2,7 +2,7 @@ DESCRIPTION = "LZMA is a general compression method. LZMA provides high compress
HOMEPAGE = "http://www.7-zip.org/"
LICENSE = "LGPL"
DEPENDS = "zlib"
-INC_PR = "r2"
+INC_PR = "r3"
SRC_URI = "http://downloads.sourceforge.net/sevenzip/lzma${@bb.data.getVar('PV',d,1).replace('.','')}.tar.bz2 \
file://001-large_files.patch;patch=1 \
@@ -21,6 +21,11 @@ do_unpack_append() {
os.system("find ${S} -type f -print0 | xargs -0 sed 's/\r$//' -i")
}
+do_patch_append() {
+ # Hack to ensure we use our environment values
+ 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")
+}
+
do_compile() {
oe_runmake -C C/LzmaUtil
oe_runmake -C CPP/7zip/Compress/LZMA_Alone