wok-4.x annotate cross-arm-gcc/receipt @ rev 10333

gegl: Add $CONFIGURE_ARGS.
author Christopher Rogers <slaxemulator@gmail.com>
date Sun May 22 01:15:01 2011 +0000 (2011-05-22)
parents
children
rev   line source
pankso@10302 1 # SliTaz package receipt.
pankso@10302 2
pankso@10302 3 PACKAGE="cross-arm-gcc"
pankso@10302 4 VERSION="4.5.2"
pankso@10302 5 CATEGORY="system-tools"
pankso@10302 6 SHORT_DESC="Cross compiler for targeting ARM platform."
pankso@10302 7 MAINTAINER="pankso@slitaz.org"
pankso@10302 8 SOURCE="gcc-core"
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="cross-arm-binutils mpc-library"
pankso@10302 14 BUILD_DEPENDS="slitaz-toolchain cross-arm-binutils gmp gmp-dev mpfr mpfr-dev \
pankso@10302 15 mpc-library"
pankso@10302 16
pankso@10302 17 # The goal here is to build an ARM cross toolchain who we let build code for
pankso@10302 18 # the target arch from an i486 build/host. To build a cross toolchain we use
pankso@10302 19 # the native i486 GCC compiler so set --build and --host to HOST_SYSTEM.
pankso@10302 20 CROSS_TARGET="arm-slitaz-linux"
pankso@10302 21 CROSS_TRIPLET="--build=$HOST_SYSTEM --host=$HOST_SYSTEM --target=$CROSS_TARGET"
pankso@10302 22
pankso@10302 23 # Rules to configure and make the package.
pankso@10302 24 compile_rules()
pankso@10302 25 {
pankso@10302 26 cd $src
pankso@10302 27 mkdir -p ../build && cd ../build
pankso@10302 28 $src/configure \
pankso@10302 29 --libexecdir=/usr/lib \
pankso@10302 30 --disable-nls \
pankso@10302 31 --disable-threads \
pankso@10302 32 --disable-multilib \
pankso@10302 33 --disable-bootstarp \
pankso@10302 34 --enable-languages=c \
pankso@10302 35 --with-cpu=arm9 \
pankso@10302 36 $CROSS_TRIPLET &&
pankso@10302 37 make \
pankso@10302 38 AS_FOR_TARGET=$CROSS_TARGET-as \
pankso@10302 39 LD_FOR_TARGET=$CROSS_TARGET-ld &&
pankso@10302 40 make install
pankso@10302 41 }
pankso@10302 42
pankso@10302 43 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@10302 44 genpkg_rules()
pankso@10302 45 {
pankso@10302 46 mkdir -p $fs/usr
pankso@10302 47 cp -a $install/usr/bin $fs/usr
pankso@10302 48 cp -a $install/usr/lib $fs/usr
pankso@10302 49 }