wok-next rev 12817

libxml2: cross compile for ARM
author Christophe Lincoln <pankso@slitaz.org>
date Mon May 21 01:58:24 2012 +0200 (2012-05-21)
parents 601c59dca5bf
children 851050970033
files libxml2-dev/receipt libxml2/receipt
line diff
     1.1 --- a/libxml2-dev/receipt	Mon May 21 01:38:41 2012 +0200
     1.2 +++ b/libxml2-dev/receipt	Mon May 21 01:58:24 2012 +0200
     1.3 @@ -8,18 +8,19 @@
     1.4  WANTED="libxml2"
     1.5  DEPENDS="libxml2-tools"
     1.6  WEB_SITE="http://xmlsoft.org/"
     1.7 +HOST_ARCH="i486 arm"
     1.8  
     1.9  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.10  genpkg_rules()
    1.11  {
    1.12  	mkdir -p $fs/usr/lib $fs/usr/bin $fs/usr/share
    1.13  
    1.14 -	cp -a $_pkg/usr/bin/xml2-config $fs/usr/bin
    1.15 -	cp -a $_pkg/usr/lib/*.sh $fs/usr/bin
    1.16 +	cp -a $install/usr/bin/xml2-config $fs/usr/bin
    1.17 +	cp -a $install/usr/lib/*.sh $fs/usr/bin
    1.18  	chmod +x $fs/usr/bin/*.sh
    1.19  
    1.20 -	cp -a $_pkg/usr/lib/*.*a $fs/usr/lib
    1.21 -	cp -a $_pkg/usr/lib/pkgconfig $fs/usr/lib
    1.22 -	cp -a $_pkg/usr/include $fs/usr
    1.23 -	cp -a $_pkg/usr/share/aclocal $fs/usr/share
    1.24 +	cp -a $install/usr/lib/*.*a $fs/usr/lib
    1.25 +	cp -a $install/usr/lib/pkgconfig $fs/usr/lib
    1.26 +	cp -a $install/usr/include $fs/usr
    1.27 +	cp -a $install/usr/share/aclocal $fs/usr/share
    1.28  }
     2.1 --- a/libxml2/receipt	Mon May 21 01:38:41 2012 +0200
     2.2 +++ b/libxml2/receipt	Mon May 21 01:58:24 2012 +0200
     2.3 @@ -8,9 +8,17 @@
     2.4  TARBALL="$PACKAGE-$VERSION.tar.gz"
     2.5  WEB_SITE="http://xmlsoft.org/"
     2.6  WGET_URL="ftp://xmlsoft.org/libxml2/$TARBALL"
     2.7 +HOST_ARCH="i486 arm"
     2.8 +
     2.9  DEPENDS="zlib"
    2.10  BUILD_DEPENDS="python"
    2.11  
    2.12 +# When cross compiling Python is installed in chroot and is used
    2.13 +# by cross tools, cook dont need to install it in /usr/cross/arm
    2.14 +case "$ARCH" in
    2.15 +	arm) BUILD_DEPENDS="" ;;
    2.16 +esac
    2.17 +
    2.18  # Rules to configure and make the package.
    2.19  #
    2.20  # Note: libxml2 can be build using option --with-minimum
    2.21 @@ -20,18 +28,13 @@
    2.22  	cd $src
    2.23  	patch -Np1 -i $stuff/libxml2-fix.patch
    2.24  	./configure \
    2.25 -		--prefix=/usr \
    2.26 -		--infodir=/usr/share/info \
    2.27 -		--mandir=/usr/share/man \
    2.28 -		--with-html-dir=/usr/share/doc \
    2.29 -	$CONFIGURE_ARGS &&
    2.30 -	make &&
    2.31 -	make DESTDIR=$PWD/_pkg install
    2.32 +		$CONFIGURE_ARGS &&
    2.33 +	make && make install
    2.34  }
    2.35  
    2.36  # Rules to gen a SliTaz package suitable for Tazpkg.
    2.37  genpkg_rules()
    2.38  {
    2.39  	mkdir -p $fs/usr/lib
    2.40 -	cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
    2.41 +	cp -a $install/usr/lib/*.so* $fs/usr/lib
    2.42  }