wok view cross-arm-gcc/receipt @ rev 10357

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