# HG changeset patch # User Christophe Lincoln # Date 1337635500 -7200 # Node ID 3768ab6ce78074ef6aff9226c079a0ee1c13eee3 # Parent 851050970033c28b8449422a8286ada7f58f90d2 attr: cross-compile for ARM diff -r 851050970033 -r 3768ab6ce780 attr-dev/receipt --- a/attr-dev/receipt Mon May 21 01:59:39 2012 +0200 +++ b/attr-dev/receipt Mon May 21 23:25:00 2012 +0200 @@ -8,12 +8,13 @@ DEPENDS="attr" WEB_SITE="http://savannah.nongnu.org/projects/attr/" WANTED="attr" +HOST_ARCH="i486 arm" # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/lib $fs/lib - cp -a $_pkg/usr/lib/*.*a $fs/usr/lib - cp -a $_pkg/lib/*.*a $fs/lib - cp -a $_pkg/usr/include $fs/usr + cp -a $install/usr/lib/*.*a $fs/usr/lib + cp -a $install/lib/*.*a $fs/lib + cp -a $install/usr/include $fs/usr } diff -r 851050970033 -r 3768ab6ce780 attr/receipt --- a/attr/receipt Mon May 21 01:59:39 2012 +0200 +++ b/attr/receipt Mon May 21 23:25:00 2012 +0200 @@ -5,11 +5,18 @@ CATEGORY="system-tools" SHORT_DESC="Commands for Manipulating Filesystem Extended Attributes." MAINTAINER="rcx@zoominternet.net" -DEPENDS="glibc-base" -BUILD_DEPENDS="slitaz-toolchain autoconf automake m4 libtool gettext" TARBALL="${PACKAGE}-${VERSION}.src.tar.gz" WEB_SITE="http://savannah.nongnu.org/projects/attr/" WGET_URL="http://download.savannah.gnu.org/releases-noredirect/$PACKAGE/$TARBALL" +HOST_ARCH="i486 arm" + +DEPENDS="glibc-base" +BUILD_DEPENDS="autoconf automake m4 libtool gettext" + +# When cross compiling auto-tools, gettext and m4 build system are used. +case "$ARCH" in + arm) BUILD_DEPENDS="" ;; +esac # Rules to configure and make the package. compile_rules()