wok view cross-arm-binutils/receipt @ rev 12724

fox: update WGET_URL
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 05 12:54:08 2012 +0200 (2012-05-05)
parents a328abdf0a9c
children
line source
1 # SliTaz package receipt.
3 PACKAGE="cross-arm-binutils"
4 VERSION="2.22"
5 CATEGORY="system-tools"
6 SHORT_DESC="Cross compilation linker targeting ARM platform."
7 MAINTAINER="pankso@slitaz.org"
8 SOURCE="binutils"
9 WEB_SITE="http://www.gnu.org/software/binutils/"
10 TARBALL="$SOURCE-$VERSION.tar.bz2"
11 WGET_URL="$GNU_MIRROR/$SOURCE/$TARBALL"
13 DEPENDS=""
14 BUILD_DEPENDS=""
16 # Cross toolchain variables.
17 CROSS_TARGET="arm-slitaz-linux-gnueabi"
18 CROSS_PREFIX="/usr/cross/arm"
19 CROSS_TRIPLET="--build=$HOST_SYSTEM --host=$HOST_SYSTEM --target=$CROSS_TARGET"
21 # CFLAGS and CXXFLAGS must not be set during the building of cross-tools.
22 unset CFLAGS CXXFLAGS CONFIG_SITE
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 cd $src
28 mkdir ../build && cd ../build
29 #--with-sysroot=$CROSS_PREFIX
30 $src/configure \
31 --prefix=$CROSS_PREFIX \
32 --program-prefix=${CROSS_TARGET}- \
33 --enable-targets=$ARCH-slitaz-linux \
34 --enable-shared \
35 --disable-multilib \
36 --disable-werror \
37 --disable-nls \
38 $CROSS_TRIPLET &&
39 make configure-host &&
40 make && make install
41 #make tooldir=$CROSS_PREFIX &&
42 #make tooldir=$CROSS_PREFIX install
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 mkdir -p ${fs}${CROSS_PREFIX}/include
49 cp -a $install/usr/cross $fs/usr
50 #rm ${fs}${CROSS_PREFIX}/lib/libiberty.a
52 # libiberty.h
53 cp -a $src/include/libiberty.h ${fs}${CROSS_PREFIX}/include
55 # Move ldscripts and create symlink
56 cd ${fs}${CROSS_PREFIX}/$CROSS_TARGET
57 mv lib/ldscripts ../lib
58 rmdir lib && ln -s ../lib .
59 }