wok view cross-arm-glibc/receipt @ rev 12717

cross-arm-glibc: put libexec files in /usr/cross/arm/lib and --enable-kernel=2.6.30
author Christophe Lincoln <pankso@slitaz.org>
date Sat May 05 05:12:31 2012 +0200 (2012-05-05)
parents d57104792abb
children
line source
1 # SliTaz package receipt.
3 PACKAGE="cross-arm-glibc"
4 VERSION="2.14.1"
5 CATEGORY="system-tools"
6 SHORT_DESC="The GNU C libraries for the ARM cross toolchain"
7 MAINTAINER="pankso@slitaz.org"
8 SOURCE="glibc"
9 TARBALL="$SOURCE-$VERSION.tar.gz"
10 WEB_SITE="http://www.gnu.org/software/libc/"
11 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
13 DEPENDS=""
14 BUILD_DEPENDS="linux-arm-api-headers cross-arm-binutils cross-arm-gcc \
15 autoconf bash gawk"
17 # Cross toolchain variables. We dont use CROSS_TRIPLET here, we cross build
18 # with: --build=$HOST_SYSTEM --host=$CROSS_TARGET
19 CROSS_TARGET="arm-slitaz-linux-gnueabi"
20 CROSS_PREFIX="/usr/cross/arm"
22 # CFLAGS and CXXFLAGS must not be set during the building of cross-tools.
23 unset CFLAGS CXXFLAGS CONFIG_SITE
25 # Path to cross tools
26 export PATH=$PATH:$CROSS_PREFIX/bin
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 cd $src
33 # Glibc ports.
34 if [ ! -f "$SRC/glibc-ports-$VERSION.tar.bz2" ]; then
35 wget $GNU_MIRROR/$SOURCE/glibc-ports-$VERSION.tar.bz2 \
36 -O $SRC/glibc-ports-$VERSION.tar.bz2
37 fi
38 echo "Extracting: glibc-ports-$VERSION.tar.bz2"
39 tar xjf $SRC/glibc-ports-$VERSION.tar.bz2
40 mv glibc-ports-$VERSION ports
42 mkdir ../build && cd ../build
44 CC=$CROSS_PREFIX/bin/$CROSS_TARGET-gcc
45 echo "libc_cv_forced_unwind=yes" > config.cache
46 echo "libc_cv_c_cleanup=yes" >> config.cache
47 #--enable-add-ons
48 $src/configure \
49 --prefix=$CROSS_PREFIX \
50 --libexecdir=$CROSS_PREFIX/lib/glibc \
51 --with-headers=$CROSS_PREFIX/include \
52 --with-binutils=$CROSS_PREFIX/bin \
53 --config-cache \
54 --disable-sanity-checks \
55 --disable-profile \
56 --enable-kernel=2.6.30 \
57 --build=$HOST_SYSTEM \
58 --host=$CROSS_TARGET &&
59 make && make install_root=$DESTDIR install
60 }
62 # Rules to gen a SliTaz package suitable for Tazpkg.
63 genpkg_rules()
64 {
65 mkdir -p $fs/usr
66 cp -a $install/usr/cross $fs/usr
67 }