# HG changeset patch # User Christophe Lincoln # Date 1337558304 -7200 # Node ID c50f70597a21ca7895311dcf47b0771d0b0a27f0 # Parent 601c59dca5bf74d85b99de4c1da469455649ed18 libxml2: cross compile for ARM diff -r 601c59dca5bf -r c50f70597a21 libxml2-dev/receipt --- a/libxml2-dev/receipt Mon May 21 01:38:41 2012 +0200 +++ b/libxml2-dev/receipt Mon May 21 01:58:24 2012 +0200 @@ -8,18 +8,19 @@ WANTED="libxml2" DEPENDS="libxml2-tools" WEB_SITE="http://xmlsoft.org/" +HOST_ARCH="i486 arm" # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/lib $fs/usr/bin $fs/usr/share - cp -a $_pkg/usr/bin/xml2-config $fs/usr/bin - cp -a $_pkg/usr/lib/*.sh $fs/usr/bin + cp -a $install/usr/bin/xml2-config $fs/usr/bin + cp -a $install/usr/lib/*.sh $fs/usr/bin chmod +x $fs/usr/bin/*.sh - cp -a $_pkg/usr/lib/*.*a $fs/usr/lib - cp -a $_pkg/usr/lib/pkgconfig $fs/usr/lib - cp -a $_pkg/usr/include $fs/usr - cp -a $_pkg/usr/share/aclocal $fs/usr/share + cp -a $install/usr/lib/*.*a $fs/usr/lib + cp -a $install/usr/lib/pkgconfig $fs/usr/lib + cp -a $install/usr/include $fs/usr + cp -a $install/usr/share/aclocal $fs/usr/share } diff -r 601c59dca5bf -r c50f70597a21 libxml2/receipt --- a/libxml2/receipt Mon May 21 01:38:41 2012 +0200 +++ b/libxml2/receipt Mon May 21 01:58:24 2012 +0200 @@ -8,9 +8,17 @@ TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="http://xmlsoft.org/" WGET_URL="ftp://xmlsoft.org/libxml2/$TARBALL" +HOST_ARCH="i486 arm" + DEPENDS="zlib" BUILD_DEPENDS="python" +# When cross compiling Python is installed in chroot and is used +# by cross tools, cook dont need to install it in /usr/cross/arm +case "$ARCH" in + arm) BUILD_DEPENDS="" ;; +esac + # Rules to configure and make the package. # # Note: libxml2 can be build using option --with-minimum @@ -20,18 +28,13 @@ cd $src patch -Np1 -i $stuff/libxml2-fix.patch ./configure \ - --prefix=/usr \ - --infodir=/usr/share/info \ - --mandir=/usr/share/man \ - --with-html-dir=/usr/share/doc \ - $CONFIGURE_ARGS && - make && - make DESTDIR=$PWD/_pkg install + $CONFIGURE_ARGS && + make && make install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/lib - cp -a $_pkg/usr/lib/*.so* $fs/usr/lib + cp -a $install/usr/lib/*.so* $fs/usr/lib }