wok annotate binutils/receipt @ rev 22677

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