wok-current view binutils/receipt @ rev 23004
updated libassuan and libassuan-dev (2.5.1 -> 2.5.3)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Mar 02 17:29:40 2020 +0100 (2020-03-02) |
parents | 86790a278e70 |
children | 30054e3f93e9 |
line source
1 # SliTaz package receipt.
3 PACKAGE="binutils"
4 VERSION="2.33.1"
5 CATEGORY="development"
6 TAGS="assembler linker"
7 SHORT_DESC="GNU assembler, linker and binary utilities."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="https://www.gnu.org/software/binutils/"
12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
13 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
14 #WGET_URL="https://www.kernel.org/pub/linux/devel/binutils/$TARBALL"
15 WGET_URL="http://ftp.gnu.org/gnu/$PACKAGE/$TARBALL"
17 PROVIDE="libbfd"
18 DEPENDS="flex glibc zlib"
19 BUILD_DEPENDS="glibc-dev texinfo zlib-dev"
21 HOST_ARCH="i486 arm"
23 # Handle cross compilation.
24 case "$ARCH" in
25 arm) BUILD_DEPENDS="" ;;
26 esac
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 case "$ARCH" in
32 i?86) ARCH_ARGS="--disable-werror" ;;
33 esac
35 mkdir -p ../binutils-build &&
36 cd ../binutils-build
37 $src/configure \
38 --program-prefix=$TOOLPREFIX \
39 --enable-shared \
40 --disable-initfini-array \
41 --with-bugurl="http://bugs.slitaz.org/" \
42 $CONFIGURE_ARGS \
43 $ARCH_ARGS &&
44 make tooldir=/usr &&
45 make tooldir=/usr install &&
46 # This is the default binutils, so create symlinks to the target platform
47 # binutil binaries. Delete duplicate binaries to save space.
48 for binutil in $(ls -1 $DESTDIR/usr/bin | grep "${TOOLPREFIX}")
49 do
50 path="$DESTDIR/usr/bin/$(echo "$binutil" | sed "s:$TOOLPREFIX::g")"
51 if [ -e $path ]
52 then
53 rm -f $path
54 fi
55 ln -s $binutil $path
56 done
57 }
59 # Rules to gen a SliTaz package suitable for Tazpkg.
60 genpkg_rules()
61 {
62 mkdir -p $fs/usr/lib
64 cp -a $install/usr/bin $fs/usr
65 cp -a $install/usr/lib/*.so* $fs/usr/lib
66 cp -a $install/usr/lib/*.a $fs/usr/lib
67 cp -a $install/usr/include $fs/usr
69 # libiberty.h
70 cp -a $src/include/libiberty.h $fs/usr/include
72 # Remove 'strings' (Busybox).
73 #rm $fs/usr/lib/libiberty.a
74 rm $fs/usr/bin/strings $fs/usr/bin/*-strings
76 # Remove build directory (cookutils and tazwok path).
77 rm -rf $WOK/$PACKAGE/source/$PACKAGE-build
78 rm -rf $WOK/$PACKAGE/$PACKAGE-build
80 chown -R root:root $fs/usr/include/libiberty.h
81 chmod 644 $fs/usr/include/libiberty.h
82 }