wok-6.x rev 12819
attr: cross-compile for ARM
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon May 21 23:25:00 2012 +0200 (2012-05-21) |
parents | 851050970033 |
children | 521a11df54e7 |
files | attr-dev/receipt attr/receipt |
line diff
1.1 --- a/attr-dev/receipt Mon May 21 01:59:39 2012 +0200 1.2 +++ b/attr-dev/receipt Mon May 21 23:25:00 2012 +0200 1.3 @@ -8,12 +8,13 @@ 1.4 DEPENDS="attr" 1.5 WEB_SITE="http://savannah.nongnu.org/projects/attr/" 1.6 WANTED="attr" 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/lib 1.13 - cp -a $_pkg/usr/lib/*.*a $fs/usr/lib 1.14 - cp -a $_pkg/lib/*.*a $fs/lib 1.15 - cp -a $_pkg/usr/include $fs/usr 1.16 + cp -a $install/usr/lib/*.*a $fs/usr/lib 1.17 + cp -a $install/lib/*.*a $fs/lib 1.18 + cp -a $install/usr/include $fs/usr 1.19 }
2.1 --- a/attr/receipt Mon May 21 01:59:39 2012 +0200 2.2 +++ b/attr/receipt Mon May 21 23:25:00 2012 +0200 2.3 @@ -5,11 +5,18 @@ 2.4 CATEGORY="system-tools" 2.5 SHORT_DESC="Commands for Manipulating Filesystem Extended Attributes." 2.6 MAINTAINER="rcx@zoominternet.net" 2.7 -DEPENDS="glibc-base" 2.8 -BUILD_DEPENDS="slitaz-toolchain autoconf automake m4 libtool gettext" 2.9 TARBALL="${PACKAGE}-${VERSION}.src.tar.gz" 2.10 WEB_SITE="http://savannah.nongnu.org/projects/attr/" 2.11 WGET_URL="http://download.savannah.gnu.org/releases-noredirect/$PACKAGE/$TARBALL" 2.12 +HOST_ARCH="i486 arm" 2.13 + 2.14 +DEPENDS="glibc-base" 2.15 +BUILD_DEPENDS="autoconf automake m4 libtool gettext" 2.16 + 2.17 +# When cross compiling auto-tools, gettext and m4 build system are used. 2.18 +case "$ARCH" in 2.19 + arm) BUILD_DEPENDS="" ;; 2.20 +esac 2.21 2.22 # Rules to configure and make the package. 2.23 compile_rules()