wok view cross-x86_64-binutils/receipt @ rev 12732

busybox: add getty fix from busybox.net
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun May 06 18:15:24 2012 +0200 (2012-05-06)
parents a497988d5e1b
children
line source
1 # SliTaz package receipt.
3 PACKAGE="cross-x86_64-binutils"
4 VERSION="2.22"
5 CATEGORY="system-tools"
6 SHORT_DESC="Cross compilation linker targeting x86_64 platform."
7 MAINTAINER="erjo@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="x86_64-slitaz-linux"
18 CROSS_PREFIX="/usr/cross/x86_64"
19 CROSS_TRIPLET="--build=$HOST_SYSTEM --host=$HOST_SYSTEM --target=$CROSS_TARGET"
20 BUILD64="-m64"
22 # CFLAGS and CXXFLAGS must not be set during the building of cross-tools.
23 unset CFLAGS CXXFLAGS CONFIG_SITE
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 cd $src
29 mkdir ../build && cd ../build
30 #--with-sysroot=$CROSS_PREFIX
31 #--enable-shared
32 $src/configure \
33 --prefix=$CROSS_PREFIX \
34 --program-prefix=${CROSS_TARGET}- \
35 --enable-targets=$ARCH-slitaz-linux \
36 --enable-64-bit-bfd \
37 --disable-multilib \
38 --disable-werror \
39 --disable-nls \
40 $CROSS_TRIPLET &&
41 make configure-host &&
42 make && make install
43 #make tooldir=$CROSS_PREFIX &&
44 #make tooldir=$CROSS_PREFIX install
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 mkdir -p ${fs}${CROSS_PREFIX}/include
51 cp -a $install/usr/cross $fs/usr
52 rm -rf ${fs}${CROSS_PREFIX}/share
54 # libiberty.h
55 cp -a $src/include/libiberty.h ${fs}${CROSS_PREFIX}/include
57 # Move ldscripts and create symlink
58 cd ${fs}${CROSS_PREFIX}/$CROSS_TARGET
59 mv lib/ldscripts ../lib
60 rmdir lib && ln -s ../lib .
61 }