wok-next diff libxml2/receipt @ rev 20443

The rest of my "home work" for update many packages (up to Xorg, GTK and Openbox) for Next and mainly for Next64. Since this point this repository is open for commits. Many errors are expected due to harfbuzz-freetype dependency loop...
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Feb 24 16:17:33 2018 +0200 (2018-02-24)
parents 9610a0d739a2
children 5841522533ec
line diff
     1.1 --- a/libxml2/receipt	Thu Jun 08 19:49:38 2017 +0300
     1.2 +++ b/libxml2/receipt	Sat Feb 24 16:17:33 2018 +0200
     1.3 @@ -7,29 +7,26 @@
     1.4  MAINTAINER="pankso@slitaz.org"
     1.5  LICENSE="MIT"
     1.6  WEB_SITE="http://xmlsoft.org/"
     1.7 -HOST_ARCH="i486 arm"
     1.8 +LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/libxml2.html"
     1.9  
    1.10  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.11  WGET_URL="ftp://xmlsoft.org/libxml2/$TARBALL"
    1.12  
    1.13 +BUILD_DEPENDS_arm=" "
    1.14  BUILD_DEPENDS="zlib-dev xz-dev python-dev ncurses-dev readline-dev"
    1.15 -BUILD_DEPENDS_arm=" "
    1.16  SPLIT="libxml2-tools libxml2-python libxml2-dev"
    1.17  
    1.18 -# When cross compiling Python is installed in chroot and is used
    1.19 -# by cross tools, cook don't need to install it in /usr/cross/arm
    1.20 -# Building with LZMA support is buggy and build fails
    1.21 -case "$ARCH" in
    1.22 -	arm) ARCH_ARGS="--without-lzma" ;;
    1.23 -esac
    1.24 -
    1.25 -# Rules to configure and make the package.
    1.26 -#
    1.27  # Note: libxml2 can be build using option --with-minimum
    1.28  # and binaries are splited into libxml2-tools
    1.29 -compile_rules()
    1.30 -{
    1.31 -#	autoreconf -fi
    1.32 +compile_rules() {
    1.33 +	# When cross compiling Python is installed in chroot and is used
    1.34 +	# by cross tools, cook don't need to install it in /usr/cross/arm
    1.35 +	# Building with LZMA support is buggy and build fails
    1.36 +	case "$ARCH" in
    1.37 +		arm) ARCH_ARGS="--without-lzma" ;;
    1.38 +	esac
    1.39 +
    1.40 +	#	autoreconf -fi
    1.41  	./configure \
    1.42  		--disable-static \
    1.43  		--with-html-dir=/usr/share/doc \
    1.44 @@ -42,13 +39,11 @@
    1.45  	find $install -name '*.sh' -exec chmod +x \{\} \;
    1.46  }
    1.47  
    1.48 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.49 -genpkg_rules()
    1.50 -{
    1.51 +genpkg_rules() {
    1.52  	case $PACKAGE in
    1.53  		libxml2)
    1.54  			copy libxml2.so*
    1.55 -			DEPENDS="zlib liblzma"
    1.56 +			DEPENDS="liblzma zlib"
    1.57  			case "$ARCH" in
    1.58  				arm) DEPENDS="zlib" ;;
    1.59  			esac
    1.60 @@ -56,15 +51,16 @@
    1.61  		libxml2-tools)
    1.62  			copy xmllint xmlcatalog
    1.63  			CAT="system-tools|xmllint tester and xmlcatalog parser utility"
    1.64 +			DEPENDS="liblzma libxml2 ncurses readline zlib"
    1.65  			;;
    1.66  		libxml2-python)
    1.67  			copy python2.7/; find $fs -name '*.la' -delete
    1.68  			CAT="development|adapter for the Python"
    1.69 -			DEPENDS="python libxml2 libxslt"
    1.70 +			DEPENDS="liblzma libxml2 python zlib   libxslt"
    1.71  			;;
    1.72  		libxml2-dev)
    1.73  			copy @dev *.sh
    1.74 -			DEPENDS="libxml2-tools pkg-config   zlib-dev liblzma-dev"
    1.75 +			DEPENDS="xz-dev zlib-dev   libxml2-tools"
    1.76  			;;
    1.77  	esac
    1.78  }