wok annotate cross-arm-binutils/receipt @ rev 10411

libksba: fix bdeps
author Christophe Lincoln <pankso@slitaz.org>
date Tue May 24 13:07:06 2011 +0200 (2011-05-24)
parents
children
rev   line source
pankso@10302 1 # SliTaz package receipt.
pankso@10302 2
pankso@10302 3 PACKAGE="cross-arm-binutils"
pankso@10302 4 VERSION="2.21"
pankso@10302 5 CATEGORY="system-tools"
pankso@10302 6 SHORT_DESC="Cross compilation linker targeting ARM platform."
pankso@10302 7 MAINTAINER="pankso@slitaz.org"
pankso@10302 8 SOURCE="binutils"
pankso@10302 9 WEB_SITE="http://www.gnu.org/software/binutils/"
pankso@10302 10 TARBALL="$SOURCE-$VERSION.tar.bz2"
pankso@10302 11 WGET_URL="$GNU_MIRROR/$SOURCE/$TARBALL"
pankso@10302 12
pankso@10302 13 DEPENDS=""
pankso@10302 14 BUILD_DEPENDS="slitaz-toolchain"
pankso@10302 15
pankso@10302 16 # The goal here is to build an ARM cross toolchain who we let build code for
pankso@10302 17 # the target arch from an i486 build/host. To build a cross toolchain we use
pankso@10302 18 # the native i486 GCC compiler so set --build and --host to HOST_SYSTEM.
pankso@10302 19 CROSS_TARGET="arm-slitaz-linux"
pankso@10302 20 CROSS_TRIPLET="--build=$HOST_SYSTEM --host=$HOST_SYSTEM --target=$CROSS_TARGET"
pankso@10302 21
pankso@10302 22 # CFLAGS and CXXFLAGS must not be set during the building of cross-tools.
pankso@10302 23 unset CFLAGS CXXFLAGS
pankso@10302 24
pankso@10302 25 # Rules to configure and make the package.
pankso@10302 26 compile_rules()
pankso@10302 27 {
pankso@10302 28 cd $src
pankso@10302 29 mkdir -p ../build && cd ../build
pankso@10302 30 $src/configure \
pankso@10302 31 --program-prefix="$CROSS_TARGET-" \
pankso@10302 32 --disable-multilib \
pankso@10302 33 --disable-nls \
pankso@10302 34 $CROSS_TRIPLET &&
pankso@10302 35 make configure-host &&
pankso@10302 36 make tooldir=/usr &&
pankso@10302 37 make tooldir=/usr install
pankso@10302 38 }
pankso@10302 39
pankso@10302 40 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@10302 41 genpkg_rules()
pankso@10302 42 {
pankso@10302 43 mkdir -p $fs/usr/bin $fs/usr/lib
pankso@10302 44 cp -a $install/usr/bin/$CROSS_TARGET-* $fs/usr/bin
pankso@10302 45 cp -a $install/usr/lib/ldscripts $fs/usr/lib
pankso@10302 46 }