wok-current diff lzma/receipt @ rev 17829
Up:spk(1.4.3)
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Sun Mar 22 22:37:15 2015 +0100 (2015-03-22) |
parents | 2a5cc8208d36 |
children | 9e01bc6321ea |
line diff
1.1 --- a/lzma/receipt Sun Oct 20 22:08:25 2013 +0000 1.2 +++ b/lzma/receipt Sun Mar 22 22:37:15 2015 +0100 1.3 @@ -10,51 +10,25 @@ 1.4 WEB_SITE="http://sourceforge.net/projects/sevenzip/" 1.5 WGET_URL="$SF_MIRROR/sevenzip/$TARBALL" 1.6 TAGS="compression archive" 1.7 +HOST_ARCH="i486 arm" 1.8 1.9 DEPENDS="lzlib zlib gcc-lib-base" 1.10 1.11 -# Rules to compile & install the temporary toolchain. 1.12 -cook_tmp_toolchain() 1.13 +# Rules to configure and make the package. 1.14 +compile_rules() 1.15 { 1.16 - # Put & configure the home-script as needed for tmp toolchain. 1.17 - rm /tools/usr/bin/lzma /tools/usr/bin/unlzma /tools/usr/bin/lzcat 1.18 - cp stuff/lzma /tools/usr/bin 1.19 - chmod 755 /tools/usr/bin/lzma 1.20 - ln -s /tools/usr/bin/lzma /tools/usr/bin/unlzma 1.21 - ln -s /tools/usr/bin/lzma /tools/usr/bin/lzcat 1.22 - sed 's~/usr~/tools/usr~' -i /tools/usr/bin/lzma 1.23 - 1.24 - cd $src 1.25 if [ ! -f done.lzlib.u ]; then 1.26 patch -p0 < $stuff/lzlib.u || return 1 1.27 touch done.lzlib.u 1.28 fi 1.29 cd CPP/7zip/Compress/LZMA_Alone 1.30 - 1.31 - # Remove copyright message. 1.32 - sed '/MY_VERSION_COPYRIGHT_DATE/d' -i LzmaAlone.cpp 1.33 - 1.34 - make -f makefile.gcc lzma 2> /dev/null 1.35 - { make -f makefile.gcc liblz.so.1.0.0 && 1.36 - make -f makefile.gcc lzma 1.37 - } || return 1 1.38 - 1.39 - cp -a lzma-shared /tools/usr/bin/lzma-alone 1.40 - cp -a liblz.so.1.0.0 /tools/lib 1.41 - ln -s /tools/lib/liblz.so.1.0.0 /tools/lib/liblz.so 1.42 - ln -s /tools/lib/liblz.so.1.0.0 /tools/lib/liblz.so.1 1.43 -} 1.44 - 1.45 - 1.46 -# Rules to configure and make the package. 1.47 -compile_rules() 1.48 -{ 1.49 - cd $src 1.50 - if [ ! -f done.lzlib.u ]; then 1.51 - patch -p0 < $stuff/lzlib.u || return 1 1.52 - touch done.lzlib.u 1.53 - fi 1.54 - cd CPP/7zip/Compress/LZMA_Alone 1.55 + 1.56 + # Handle cross compilation 1.57 + case "$ARCH" in 1.58 + arm) 1.59 + sed -i s'/g++/arm-slitaz-linux-gnueabi-c++/' makefile.gcc 1.60 + sed -i s'/gcc/arm-slitaz-linux-gnueabi-gcc/' makefile.gcc ;; 1.61 + esac 1.62 1.63 # Remove copyright message. 1.64 sed '/MY_VERSION_COPYRIGHT_DATE/d' -i LzmaAlone.cpp