wok-undigest view cross-arm-binutils/receipt @ rev 1012
djvulibre: typo in genpkg_rules
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Apr 23 13:26:40 2013 +0200 (2013-04-23) |
parents | |
children | 1ef621db1c6d |
line source
1 # SliTaz package receipt.
3 PACKAGE="cross-arm-binutils"
4 VERSION="2.22"
5 CATEGORY="system-tools"
6 SHORT_DESC="Cross compilation linker targeting ARM platform."
7 MAINTAINER="pankso@slitaz.org"
8 SOURCE="binutils"
9 WEB_SITE="http://www.gnu.org/software/binutils/"
10 TARBALL="$SOURCE-$VERSION.tar.bz2"
11 WGET_URL="$GNU_MIRROR/$SOURCE/$TARBALL"
13 DEPENDS=""
14 BUILD_DEPENDS=""
16 # Cross toolchain variables.
17 CROSS_TARGET="arm-slitaz-linux-gnueabi"
18 CROSS_PREFIX="/usr/cross/arm"
19 CROSS_TRIPLET="--build=$HOST_SYSTEM --host=$HOST_SYSTEM --target=$CROSS_TARGET"
21 # CFLAGS and CXXFLAGS must not be set during the building of cross-tools.
22 unset CFLAGS CXXFLAGS CONFIG_SITE
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 cd $src
28 mkdir ../build && cd ../build
29 #--with-sysroot=$CROSS_PREFIX
30 $src/configure \
31 --prefix=$CROSS_PREFIX \
32 --program-prefix=${CROSS_TARGET}- \
33 --enable-targets=$ARCH-slitaz-linux \
34 --enable-shared \
35 --disable-multilib \
36 --disable-werror \
37 --disable-nls \
38 $CROSS_TRIPLET &&
39 make configure-host &&
40 make && make install
41 #make tooldir=$CROSS_PREFIX &&
42 #make tooldir=$CROSS_PREFIX install
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 mkdir -p ${fs}${CROSS_PREFIX}/include
49 cp -a $install/usr/cross $fs/usr
50 #rm ${fs}${CROSS_PREFIX}/lib/libiberty.a
52 # libiberty.h
53 cp -a $src/include/libiberty.h ${fs}${CROSS_PREFIX}/include
55 # Move ldscripts and create symlink
56 cd ${fs}${CROSS_PREFIX}/$CROSS_TARGET
57 mv lib/ldscripts ../lib
58 rmdir lib && ln -s ../lib .
59 }