wok-current rev 12714
Add: cross-x86_64-binutils
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Sat May 05 00:35:18 2012 +0200 (2012-05-05) |
parents | 783ffd32bbf8 |
children | ce3e7500d1b6 |
files | cross-x86_64-binutils/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/cross-x86_64-binutils/receipt Sat May 05 00:35:18 2012 +0200 1.3 @@ -0,0 +1,56 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="cross-x86_64-binutils" 1.7 +VERSION="2.22" 1.8 +CATEGORY="system-tools" 1.9 +SHORT_DESC="Cross compilation linker targeting x86_64 platform." 1.10 +MAINTAINER="erjo@slitaz.org" 1.11 +SOURCE="binutils" 1.12 +WEB_SITE="http://www.gnu.org/software/binutils/" 1.13 +TARBALL="$SOURCE-$VERSION.tar.bz2" 1.14 +WGET_URL="$GNU_MIRROR/$SOURCE/$TARBALL" 1.15 + 1.16 +DEPENDS="" 1.17 +BUILD_DEPENDS="" 1.18 + 1.19 +# Cross toolchain variables. 1.20 +CROSS_TARGET="x86_64-slitaz-linux" 1.21 +CROSS_PREFIX="/usr/cross/x86_64" 1.22 +CROSS_TRIPLET="--build=$HOST_SYSTEM --host=$HOST_SYSTEM --target=$CROSS_TARGET" 1.23 +BUILD64="-m64" 1.24 + 1.25 +# CFLAGS and CXXFLAGS must not be set during the building of cross-tools. 1.26 +unset CFLAGS CXXFLAGS CONFIG_SITE 1.27 + 1.28 +# Rules to configure and make the package. 1.29 +compile_rules() 1.30 +{ 1.31 + cd $src 1.32 + mkdir ../build && cd ../build 1.33 + #--with-sysroot=$CROSS_PREFIX 1.34 + $src/configure \ 1.35 + --prefix=$CROSS_PREFIX \ 1.36 + --program-prefix=${CROSS_TARGET}- \ 1.37 + --enable-targets=$ARCH-slitaz-linux \ 1.38 + --enable-shared \ 1.39 + --enable-64-bit-bfd \ 1.40 + --disable-multilib \ 1.41 + --disable-werror \ 1.42 + --disable-nls \ 1.43 + $CROSS_TRIPLET && 1.44 + make configure-host && 1.45 + make && make install 1.46 + #make tooldir=$CROSS_PREFIX && 1.47 + #make tooldir=$CROSS_PREFIX install 1.48 +} 1.49 + 1.50 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.51 +genpkg_rules() 1.52 +{ 1.53 + mkdir -p ${fs}${CROSS_PREFIX}/include 1.54 + cp -a $install/usr/cross $fs/usr 1.55 + rm -rf ${fs}${CROSS_PREFIX}/share 1.56 + 1.57 + # libiberty.h 1.58 + cp -a $src/include/libiberty.h ${fs}${CROSS_PREFIX}/include 1.59 +}