wok-4.x diff cross-arm-gcc/receipt @ rev 10304
e2fsprogs: fic path to files list
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun May 22 02:19:11 2011 +0200 (2011-05-22) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/cross-arm-gcc/receipt Sun May 22 02:19:11 2011 +0200 1.3 @@ -0,0 +1,49 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="cross-arm-gcc" 1.7 +VERSION="4.5.2" 1.8 +CATEGORY="system-tools" 1.9 +SHORT_DESC="Cross compiler for targeting ARM platform." 1.10 +MAINTAINER="pankso@slitaz.org" 1.11 +SOURCE="gcc-core" 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="cross-arm-binutils mpc-library" 1.17 +BUILD_DEPENDS="slitaz-toolchain cross-arm-binutils gmp gmp-dev mpfr mpfr-dev \ 1.18 +mpc-library" 1.19 + 1.20 +# The goal here is to build an ARM cross toolchain who we let build code for 1.21 +# the target arch from an i486 build/host. To build a cross toolchain we use 1.22 +# the native i486 GCC compiler so set --build and --host to HOST_SYSTEM. 1.23 +CROSS_TARGET="arm-slitaz-linux" 1.24 +CROSS_TRIPLET="--build=$HOST_SYSTEM --host=$HOST_SYSTEM --target=$CROSS_TARGET" 1.25 + 1.26 +# Rules to configure and make the package. 1.27 +compile_rules() 1.28 +{ 1.29 + cd $src 1.30 + mkdir -p ../build && cd ../build 1.31 + $src/configure \ 1.32 + --libexecdir=/usr/lib \ 1.33 + --disable-nls \ 1.34 + --disable-threads \ 1.35 + --disable-multilib \ 1.36 + --disable-bootstarp \ 1.37 + --enable-languages=c \ 1.38 + --with-cpu=arm9 \ 1.39 + $CROSS_TRIPLET && 1.40 + make \ 1.41 + AS_FOR_TARGET=$CROSS_TARGET-as \ 1.42 + LD_FOR_TARGET=$CROSS_TARGET-ld && 1.43 + make install 1.44 +} 1.45 + 1.46 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.47 +genpkg_rules() 1.48 +{ 1.49 + mkdir -p $fs/usr 1.50 + cp -a $install/usr/bin $fs/usr 1.51 + cp -a $install/usr/lib $fs/usr 1.52 +}