wok rev 8197

imported patch toolchain/lzma.patch
author Antoine Bodin <gokhlayeh@slitaz.org>
date Thu Jan 27 00:20:50 2011 +0100 (2011-01-27)
parents 0989070c1c4e
children db11cb5cb895
files lzma/receipt
line diff
     1.1 --- a/lzma/receipt	Thu Jan 27 00:20:50 2011 +0100
     1.2 +++ b/lzma/receipt	Thu Jan 27 00:20:50 2011 +0100
     1.3 @@ -9,20 +9,45 @@
     1.4  WEB_SITE="http://sourceforge.net/projects/sevenzip/"
     1.5  WGET_URL="$SF_MIRROR/sevenzip/$TARBALL"
     1.6  DEPENDS="lzlib zlib gcc-lib-base"
     1.7 -BUILD_DEPENDS="zlib-dev"
     1.8 +TAGS="compression archive"
     1.9 +
    1.10 +# Rules to compile & install the temporary toolchain.
    1.11 +cook_tmp_toolchain()
    1.12 +{
    1.13 +	# Put & configure the home-script as needed for tmp toolchain.
    1.14 +	rm /tools/usr/bin/lzma /tools/usr/bin/unlzma /tools/usr/bin/lzcat
    1.15 +	cp stuff/lzma /tools/usr/bin
    1.16 +	chmod 755 /tools/usr/bin/lzma
    1.17 +	ln -s /tools/usr/bin/lzma /tools/usr/bin/unlzma
    1.18 +	ln -s /tools/usr/bin/lzma /tools/usr/bin/lzcat
    1.19 +	sed 's~/usr~/tools/usr~' -i /tools/usr/bin/lzma
    1.20 +
    1.21 +	cd $src
    1.22 +	if [ ! -f done.lzlib.u ]; then
    1.23 +		patch -p0 < ../stuff/lzlib.u || return 1
    1.24 +		touch done.lzlib.u
    1.25 +	fi
    1.26 +	cd CPP/7zip/Compress/LZMA_Alone
    1.27 +
    1.28 +	# Remove copyright message.
    1.29 +	sed '/MY_VERSION_COPYRIGHT_DATE/d' -i LzmaAlone.cpp
    1.30 +
    1.31 +	make -f makefile.gcc lzma
    1.32 +	{ make -f makefile.gcc liblz.so.1.0.0 &&
    1.33 +	make -f makefile.gcc lzma
    1.34 +	} || return 1
    1.35 +
    1.36 +	cp -a lzma-shared /tools/usr/bin/lzma-alone
    1.37 +	cp -a liblz.so.1.0.0 /tools/lib
    1.38 +	ln -s /tools/lib/liblz.so.1.0.0 /tools/lib/liblz.so
    1.39 +	ln -s /tools/lib/liblz.so.1.0.0 /tools/lib/liblz.so.1
    1.40 +}
    1.41 +
    1.42  
    1.43  # Rules to configure and make the package.
    1.44  compile_rules()
    1.45  {
    1.46 -	mkdir -p $src
    1.47  	cd $src
    1.48 -	for i in ../* ; do
    1.49 -		case "$i" in
    1.50 -		../receipt*|../taz|../stuff|../process.log);;
    1.51 -		../$(basename $src));;
    1.52 -		*) mv $i .;;
    1.53 -		esac
    1.54 -	done
    1.55  	if [ ! -f done.lzlib.u ]; then
    1.56  		patch -p0 < ../stuff/lzlib.u || return 1
    1.57  		touch done.lzlib.u