wok view binutils/receipt @ rev 23789
updated yelp-xsl (3.34.0 -> 3.36.0)
author | Hans-G?nter Theisgen |
---|---|
date | Fri May 22 07:34:27 2020 +0100 (2020-05-22) |
parents | 829024a70dbb |
children | add1501c713f |
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 # @maintainer: Please update also: libbfd
30 # Rules to configure and make the package.
31 compile_rules()
32 {
33 case "$ARCH" in
34 i?86) ARCH_ARGS="--disable-werror" ;;
35 esac
37 mkdir -p ../binutils-build &&
38 cd ../binutils-build
39 $src/configure \
40 --program-prefix=$TOOLPREFIX \
41 --disable-initfini-array \
42 --enable-shared \
43 --with-bugurl="http://bugs.slitaz.org/" \
44 $CONFIGURE_ARGS \
45 $ARCH_ARGS &&
46 make tooldir=/usr &&
47 make tooldir=/usr install &&
48 # This is the default binutils, so create symlinks to the target platform
49 # binutil binaries. Delete duplicate binaries to save space.
50 for binutil in $(ls -1 $DESTDIR/usr/bin | grep "${TOOLPREFIX}")
51 do
52 path="$DESTDIR/usr/bin/$(echo "$binutil" | sed "s:$TOOLPREFIX::g")"
53 if [ -e $path ]
54 then
55 rm -f $path
56 fi
57 ln -s $binutil $path
58 done
59 }
61 # Rules to gen a SliTaz package suitable for Tazpkg.
62 genpkg_rules()
63 {
64 mkdir -p $fs/usr/lib
66 cp -a $install/usr/bin $fs/usr
67 cp -a $install/usr/lib/*.so* $fs/usr/lib
68 cp -a $install/usr/lib/*.a $fs/usr/lib
69 cp -a $install/usr/include $fs/usr
71 # libiberty.h
72 cp -a $src/include/libiberty.h $fs/usr/include
74 # Remove 'strings' (Busybox).
75 #rm $fs/usr/lib/libiberty.a
76 rm $fs/usr/bin/strings $fs/usr/bin/*-strings
78 # Remove build directory (cookutils and tazwok path).
79 rm -rf $WOK/$PACKAGE/source/$PACKAGE-build
80 rm -rf $WOK/$PACKAGE/$PACKAGE-build
82 chown -R root:root $fs/usr/include/libiberty.h
83 chmod 644 $fs/usr/include/libiberty.h
84 }