# HG changeset patch # User Christophe Lincoln # Date 1337638024 -7200 # Node ID 6233a11c8f04341270e2776e7186fa01d286a690 # Parent 5c1c1e5a76c64799501dae04739c8676af5b5403 expat: cross-compile for ARM diff -r 5c1c1e5a76c6 -r 6233a11c8f04 expat-dev/receipt --- a/expat-dev/receipt Mon May 21 23:58:06 2012 +0200 +++ b/expat-dev/receipt Tue May 22 00:07:04 2012 +0200 @@ -6,13 +6,15 @@ SHORT_DESC="XML parsing library devel files." MAINTAINER="pankso@slitaz.org" WEB_SITE="http://expat.sourceforge.net/" +WANTED="expat" +HOST_ARCH="i486 arm" + DEPENDS="expat" -WANTED="expat" # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/lib - cp -a $_pkg/usr/lib/*.*a $fs/usr/lib - cp -a $_pkg/usr/include $fs/usr + cp -a $install/usr/lib/*.*a $fs/usr/lib + cp -a $install/usr/include $fs/usr } diff -r 5c1c1e5a76c6 -r 6233a11c8f04 expat/receipt --- a/expat/receipt Mon May 21 23:58:06 2012 +0200 +++ b/expat/receipt Tue May 22 00:07:04 2012 +0200 @@ -8,23 +8,22 @@ TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="http://expat.sourceforge.net/" WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" +HOST_ARCH="i486 arm" # Rules to configure and make the package. compile_rules() { - cd $src - ./configure --sysconfdir=/etc --prefix=/usr \ - --mandir=/usr/share/man $CONFIGURE_ARGS - make - make DESTDIR=$PWD/_pkg install + cd $src + ./configure $CONFIGURE_ARGS && + make && make DESTDIR=$DESTDIR install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/lib $fs/usr/bin - cp -a $_pkg/usr/bin/* $fs/usr/bin - cp -a $_pkg/usr/lib/*.so* $fs/usr/lib + cp -a $install/usr/bin/* $fs/usr/bin + cp -a $install/usr/lib/*.so* $fs/usr/lib # expat so.0 symbolic link. cd $fs/usr/lib ln -s libexpat.so.1.5.2 libexpat.so.0