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