# HG changeset patch # User Christophe Lincoln # Date 1337696668 -7200 # Node ID 2ce43b9c164d804e36ecd4a527751efda2cba881 # Parent fd8053e3df39d8b370f0438619e0c2d070264d47 elfutils: cross-compile for ARM diff -r fd8053e3df39 -r 2ce43b9c164d elfutils-dev/receipt --- a/elfutils-dev/receipt Tue May 22 15:17:22 2012 +0200 +++ b/elfutils-dev/receipt Tue May 22 16:24:28 2012 +0200 @@ -8,11 +8,12 @@ DEPENDS="elfutils" WEB_SITE="https://fedorahosted.org/elfutils/" WANTED="elfutils" +HOST_ARCH="i486 arm" # 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 fd8053e3df39 -r 2ce43b9c164d elfutils/receipt --- a/elfutils/receipt Tue May 22 15:17:22 2012 +0200 +++ b/elfutils/receipt Tue May 22 16:24:28 2012 +0200 @@ -7,22 +7,28 @@ MAINTAINER="pascal.bellard@slitaz.org" TARBALL="$PACKAGE-$VERSION.tar.bz2" WEB_SITE="https://fedorahosted.org/elfutils/" -# Note : use http mirror because https can't be access at elfutils compilation time -# when cooking from scratch. -#WGET_URL="http://cvs.fedoraproject.org/repo/pkgs/elfutils/$TARBALL/3dcfb28fa339090a1d29a9e148cce469/$TARBALL" -#WGET_URL="http://gentoo.webm.ru/distfiles/$TARBALL" WGET_URL="https://fedorahosted.org/releases/e/l/$PACKAGE/$VERSION/$TARBALL" +HOST_ARCH="i486 arm" DEPENDS="glibc-base" BUILD_DEPENDS="wget bzip2-dev liblzma-dev" +# Handle multiarch compilation +case "$ARCH" in + arm) BUILD_DEPENDS="bzip2-dev xz" ;; +esac + # Rules to configure and make the package. compile_rules() { cd $src sed -i 's/run-strip-reloc.sh//' tests/Makefile* # Need cc -g ! ./configure $CONFIGURE_ARGS && - make && make check && make install + # Disable check/tests when cross-compiling + case "$ARCH" in + arm) make && make install ;; + *) make && make check && make install ;; + esac } # Rules to gen a SliTaz package suitable for Tazpkg. @@ -30,8 +36,8 @@ { mkdir -p $fs/usr/lib $fs/usr/bin for i in elfcmp findtextrel unstrip; do - cp -a $_pkg/usr/bin/$i $fs/usr/bin + cp -a $install/usr/bin/$i $fs/usr/bin done - cp -a $_pkg/usr/lib/*.so* $fs/usr/lib - cp -a $_pkg/usr/lib/elfutils $fs/usr/lib + cp -a $install/usr/lib/*.so* $fs/usr/lib + cp -a $install/usr/lib/elfutils $fs/usr/lib }