wok-undigest diff cross-arm-binutils/receipt @ rev 781
Add vkeybd
author | Paul Issott <paul@slitaz.org> |
---|---|
date | Thu Aug 02 18:35:30 2012 +0100 (2012-08-02) |
parents | |
children | 1ef621db1c6d |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/cross-arm-binutils/receipt Thu Aug 02 18:35:30 2012 +0100 1.3 @@ -0,0 +1,59 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="cross-arm-binutils" 1.7 +VERSION="2.22" 1.8 +CATEGORY="system-tools" 1.9 +SHORT_DESC="Cross compilation linker targeting ARM platform." 1.10 +MAINTAINER="pankso@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="arm-slitaz-linux-gnueabi" 1.21 +CROSS_PREFIX="/usr/cross/arm" 1.22 +CROSS_TRIPLET="--build=$HOST_SYSTEM --host=$HOST_SYSTEM --target=$CROSS_TARGET" 1.23 + 1.24 +# CFLAGS and CXXFLAGS must not be set during the building of cross-tools. 1.25 +unset CFLAGS CXXFLAGS CONFIG_SITE 1.26 + 1.27 +# Rules to configure and make the package. 1.28 +compile_rules() 1.29 +{ 1.30 + cd $src 1.31 + mkdir ../build && cd ../build 1.32 + #--with-sysroot=$CROSS_PREFIX 1.33 + $src/configure \ 1.34 + --prefix=$CROSS_PREFIX \ 1.35 + --program-prefix=${CROSS_TARGET}- \ 1.36 + --enable-targets=$ARCH-slitaz-linux \ 1.37 + --enable-shared \ 1.38 + --disable-multilib \ 1.39 + --disable-werror \ 1.40 + --disable-nls \ 1.41 + $CROSS_TRIPLET && 1.42 + make configure-host && 1.43 + make && make install 1.44 + #make tooldir=$CROSS_PREFIX && 1.45 + #make tooldir=$CROSS_PREFIX install 1.46 +} 1.47 + 1.48 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.49 +genpkg_rules() 1.50 +{ 1.51 + mkdir -p ${fs}${CROSS_PREFIX}/include 1.52 + cp -a $install/usr/cross $fs/usr 1.53 + #rm ${fs}${CROSS_PREFIX}/lib/libiberty.a 1.54 + 1.55 + # libiberty.h 1.56 + cp -a $src/include/libiberty.h ${fs}${CROSS_PREFIX}/include 1.57 + 1.58 + # Move ldscripts and create symlink 1.59 + cd ${fs}${CROSS_PREFIX}/$CROSS_TARGET 1.60 + mv lib/ldscripts ../lib 1.61 + rmdir lib && ln -s ../lib . 1.62 +}