wok-6.x annotate binutils/receipt @ rev 23388
updated perl-proc-processtable (0.45 -> 0.59)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Mar 31 16:27:39 2020 +0100 (2020-03-31) |
parents | 829024a70dbb |
children | add1501c713f |
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 |
Hans-G?nter@23013 | 28 # @maintainer: Please update also: libbfd |
Hans-G?nter@23013 | 29 |
pankso@9 | 30 # Rules to configure and make the package. |
pankso@9 | 31 compile_rules() |
pankso@9 | 32 { |
pankso@15979 | 33 case "$ARCH" in |
pankso@15979 | 34 i?86) ARCH_ARGS="--disable-werror" ;; |
pankso@12299 | 35 esac |
Hans-G?nter@22538 | 36 |
Hans-G?nter@22538 | 37 mkdir -p ../binutils-build && |
Hans-G?nter@22538 | 38 cd ../binutils-build |
Hans-G?nter@22538 | 39 $src/configure \ |
Hans-G?nter@22538 | 40 --program-prefix=$TOOLPREFIX \ |
Hans-G?nter@22538 | 41 --disable-initfini-array \ |
Hans-G?nter@23013 | 42 --enable-shared \ |
Hans-G?nter@22538 | 43 --with-bugurl="http://bugs.slitaz.org/" \ |
Hans-G?nter@22538 | 44 $CONFIGURE_ARGS \ |
Hans-G?nter@22538 | 45 $ARCH_ARGS && |
gokhlayeh@8172 | 46 make tooldir=/usr && |
gokhlayeh@8172 | 47 make tooldir=/usr install && |
pankso@10029 | 48 # This is the default binutils, so create symlinks to the target platform |
pankso@10029 | 49 # binutil binaries. Delete duplicate binaries to save space. |
Hans-G?nter@22538 | 50 for binutil in $(ls -1 $DESTDIR/usr/bin | grep "${TOOLPREFIX}") |
Hans-G?nter@22538 | 51 do |
pankso@10029 | 52 path="$DESTDIR/usr/bin/$(echo "$binutil" | sed "s:$TOOLPREFIX::g")" |
Hans-G?nter@22538 | 53 if [ -e $path ] |
Hans-G?nter@22538 | 54 then |
pankso@10029 | 55 rm -f $path |
rcx@3930 | 56 fi |
pankso@10029 | 57 ln -s $binutil $path |
Hans-G?nter@22538 | 58 done |
pankso@9 | 59 } |
pankso@9 | 60 |
pankso@9 | 61 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@9 | 62 genpkg_rules() |
pankso@9 | 63 { |
slaxemulator@9439 | 64 mkdir -p $fs/usr/lib |
Hans-G?nter@22538 | 65 |
Hans-G?nter@22538 | 66 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@22538 | 67 cp -a $install/usr/lib/*.so* $fs/usr/lib |
Hans-G?nter@22538 | 68 cp -a $install/usr/lib/*.a $fs/usr/lib |
Hans-G?nter@22538 | 69 cp -a $install/usr/include $fs/usr |
pankso@12543 | 70 |
pankso@9 | 71 # libiberty.h |
Hans-G?nter@22538 | 72 cp -a $src/include/libiberty.h $fs/usr/include |
pankso@12543 | 73 |
pankso@3188 | 74 # Remove 'strings' (Busybox). |
pankso@3188 | 75 #rm $fs/usr/lib/libiberty.a |
rcx@3930 | 76 rm $fs/usr/bin/strings $fs/usr/bin/*-strings |
pankso@12543 | 77 |
pankso@9702 | 78 # Remove build directory (cookutils and tazwok path). |
pankso@9702 | 79 rm -rf $WOK/$PACKAGE/source/$PACKAGE-build |
pankso@9702 | 80 rm -rf $WOK/$PACKAGE/$PACKAGE-build |
al@14789 | 81 |
al@14789 | 82 chown -R root:root $fs/usr/include/libiberty.h |
al@14792 | 83 chmod 644 $fs/usr/include/libiberty.h |
pankso@9 | 84 } |