wok diff elfutils/receipt @ rev 12831
elfutils: cross-compile for ARM
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue May 22 16:24:28 2012 +0200 (2012-05-22) |
parents | 78783f6b1f25 |
children | f8a19c127db5 |
line diff
1.1 --- a/elfutils/receipt Sat May 12 10:22:41 2012 +0200 1.2 +++ b/elfutils/receipt Tue May 22 16:24:28 2012 +0200 1.3 @@ -7,22 +7,28 @@ 1.4 MAINTAINER="pascal.bellard@slitaz.org" 1.5 TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.6 WEB_SITE="https://fedorahosted.org/elfutils/" 1.7 -# Note : use http mirror because https can't be access at elfutils compilation time 1.8 -# when cooking from scratch. 1.9 -#WGET_URL="http://cvs.fedoraproject.org/repo/pkgs/elfutils/$TARBALL/3dcfb28fa339090a1d29a9e148cce469/$TARBALL" 1.10 -#WGET_URL="http://gentoo.webm.ru/distfiles/$TARBALL" 1.11 WGET_URL="https://fedorahosted.org/releases/e/l/$PACKAGE/$VERSION/$TARBALL" 1.12 +HOST_ARCH="i486 arm" 1.13 1.14 DEPENDS="glibc-base" 1.15 BUILD_DEPENDS="wget bzip2-dev liblzma-dev" 1.16 1.17 +# Handle multiarch compilation 1.18 +case "$ARCH" in 1.19 + arm) BUILD_DEPENDS="bzip2-dev xz" ;; 1.20 +esac 1.21 + 1.22 # Rules to configure and make the package. 1.23 compile_rules() 1.24 { 1.25 cd $src 1.26 sed -i 's/run-strip-reloc.sh//' tests/Makefile* # Need cc -g ! 1.27 ./configure $CONFIGURE_ARGS && 1.28 - make && make check && make install 1.29 + # Disable check/tests when cross-compiling 1.30 + case "$ARCH" in 1.31 + arm) make && make install ;; 1.32 + *) make && make check && make install ;; 1.33 + esac 1.34 } 1.35 1.36 # Rules to gen a SliTaz package suitable for Tazpkg. 1.37 @@ -30,8 +36,8 @@ 1.38 { 1.39 mkdir -p $fs/usr/lib $fs/usr/bin 1.40 for i in elfcmp findtextrel unstrip; do 1.41 - cp -a $_pkg/usr/bin/$i $fs/usr/bin 1.42 + cp -a $install/usr/bin/$i $fs/usr/bin 1.43 done 1.44 - cp -a $_pkg/usr/lib/*.so* $fs/usr/lib 1.45 - cp -a $_pkg/usr/lib/elfutils $fs/usr/lib 1.46 + cp -a $install/usr/lib/*.so* $fs/usr/lib 1.47 + cp -a $install/usr/lib/elfutils $fs/usr/lib 1.48 }