wok diff libxml2/receipt @ rev 13160

slitaz-boot-scripts: use chroot in post_install
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jul 25 18:28:25 2012 +0200 (2012-07-25)
parents 4c7e8355c655
children 27727d07d680
line diff
     1.1 --- a/libxml2/receipt	Sun Dec 18 03:01:59 2011 +0100
     1.2 +++ b/libxml2/receipt	Wed Jul 25 18:28:25 2012 +0200
     1.3 @@ -8,9 +8,17 @@
     1.4  TARBALL="$PACKAGE-$VERSION.tar.gz"
     1.5  WEB_SITE="http://xmlsoft.org/"
     1.6  WGET_URL="ftp://xmlsoft.org/libxml2/$TARBALL"
     1.7 +HOST_ARCH="i486 arm"
     1.8 +
     1.9  DEPENDS="zlib"
    1.10  BUILD_DEPENDS="python"
    1.11  
    1.12 +# When cross compiling Python is installed in chroot and is used
    1.13 +# by cross tools, cook dont need to install it in /usr/cross/arm
    1.14 +case "$ARCH" in
    1.15 +	arm) BUILD_DEPENDS="" ;;
    1.16 +esac
    1.17 +
    1.18  # Rules to configure and make the package.
    1.19  #
    1.20  # Note: libxml2 can be build using option --with-minimum
    1.21 @@ -20,18 +28,13 @@
    1.22  	cd $src
    1.23  	patch -Np1 -i $stuff/libxml2-fix.patch
    1.24  	./configure \
    1.25 -		--prefix=/usr \
    1.26 -		--infodir=/usr/share/info \
    1.27 -		--mandir=/usr/share/man \
    1.28 -		--with-html-dir=/usr/share/doc \
    1.29 -	$CONFIGURE_ARGS &&
    1.30 -	make &&
    1.31 -	make DESTDIR=$PWD/_pkg install
    1.32 +		$CONFIGURE_ARGS &&
    1.33 +	make && make install
    1.34  }
    1.35  
    1.36  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.37  genpkg_rules()
    1.38  {
    1.39  	mkdir -p $fs/usr/lib
    1.40 -	cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
    1.41 +	cp -a $install/usr/lib/*.so* $fs/usr/lib
    1.42  }