wok-undigest view cross-x86_64-binutils/receipt @ rev 1039

Add some licenses
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Oct 14 22:53:26 2013 +0000 (2013-10-14)
parents e7b33f582f49
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 LICENSE="GPL2"
9 SOURCE="binutils"
10 WEB_SITE="http://www.gnu.org/software/binutils/"
11 TARBALL="$SOURCE-$VERSION.tar.bz2"
12 WGET_URL="$GNU_MIRROR/$SOURCE/$TARBALL"
14 DEPENDS=""
15 BUILD_DEPENDS=""
17 # Cross toolchain variables.
18 CROSS_TARGET="x86_64-slitaz-linux"
19 CROSS_PREFIX="/usr/cross/x86_64"
20 CROSS_TRIPLET="--build=$HOST_SYSTEM --host=$HOST_SYSTEM --target=$CROSS_TARGET"
21 BUILD64="-m64"
23 # CFLAGS and CXXFLAGS must not be set during the building of cross-tools.
24 unset CFLAGS CXXFLAGS CONFIG_SITE
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 cd $src
30 mkdir ../build && cd ../build
31 #--with-sysroot=$CROSS_PREFIX
32 #--enable-shared
33 $src/configure \
34 --prefix=$CROSS_PREFIX \
35 --program-prefix=${CROSS_TARGET}- \
36 --enable-targets=$ARCH-slitaz-linux \
37 --enable-64-bit-bfd \
38 --disable-multilib \
39 --disable-werror \
40 --disable-nls \
41 $CROSS_TRIPLET &&
42 make configure-host &&
43 make && make install
44 #make tooldir=$CROSS_PREFIX &&
45 #make tooldir=$CROSS_PREFIX install
46 }
48 # Rules to gen a SliTaz package suitable for Tazpkg.
49 genpkg_rules()
50 {
51 mkdir -p ${fs}${CROSS_PREFIX}/include
52 cp -a $install/usr/cross $fs/usr
53 rm -rf ${fs}${CROSS_PREFIX}/share
55 # libiberty.h
56 cp -a $src/include/libiberty.h ${fs}${CROSS_PREFIX}/include
58 # Move ldscripts and create symlink
59 cd ${fs}${CROSS_PREFIX}/$CROSS_TARGET
60 mv lib/ldscripts ../lib
61 rmdir lib && ln -s ../lib .
62 chown -R root.root $fs
63 }