wok-current annotate cross-x86_64-binutils/receipt @ rev 12730

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