wok-next annotate binutils/receipt @ rev 20916
libopenraw, abiword: update deps; boost: pack unpacked libs
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Aug 21 05:42:25 2018 +0300 (2018-08-21) |
parents | 90a5eb560fd6 |
children | d5aab818505e |
rev | line source |
---|---|
al@19743 | 1 # SliTaz package receipt v2. |
pankso@9 | 2 |
pankso@9 | 3 PACKAGE="binutils" |
al@20436 | 4 VERSION="2.29" |
pankso@204 | 5 CATEGORY="development" |
al@19743 | 6 SHORT_DESC="GNU assembler, linker and binary utilities" |
pankso@9 | 7 MAINTAINER="pankso@slitaz.org" |
al@19561 | 8 LICENSE="GPL2 LGPL2 GPL3 LGPL3" |
pankso@9 | 9 WEB_SITE="http://www.gnu.org/software/binutils/" |
al@20436 | 10 LFS="http://www.linuxfromscratch.org/lfs/view/stable/chapter06/binutils.html" |
pankso@9 | 11 |
al@19561 | 12 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
al@19561 | 13 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" |
al@19561 | 14 |
al@20436 | 15 BUILD_DEPENDS_arm=" " |
al@19561 | 16 BUILD_DEPENDS="glibc-dev zlib-dev texinfo bison flex gettext-tools" |
al@20436 | 17 SPLIT="libbfd binutils" |
gokhlayeh@8172 | 18 |
al@20436 | 19 compile_rules() { |
al@20436 | 20 mkdir build |
al@20436 | 21 cd build |
al@19561 | 22 |
gokhlayeh@8172 | 23 $src/configure \ |
al@19745 | 24 --enable-gold \ |
al@19745 | 25 --enable-ld=default \ |
al@19745 | 26 --enable-plugins \ |
pankso@10013 | 27 --enable-shared \ |
al@20436 | 28 --disable-werror \ |
al@19745 | 29 --with-system-zlib \ |
al@20436 | 30 $CONFIGURE_ARGS && |
gokhlayeh@8172 | 31 make tooldir=/usr && |
al@20436 | 32 make tooldir=/usr install || return 1 |
al@19561 | 33 |
al@19561 | 34 # Create prefixed version of the tools. |
al@19561 | 35 cd $install/usr/bin |
al@19561 | 36 for i in $(ls); do |
al@19561 | 37 mv $i $TOOLPREFIX$i |
al@19561 | 38 [ $i == 'strings' ] && continue # skip: Busybox intercept |
al@19561 | 39 ln -s $TOOLPREFIX$i $i |
rcx@3930 | 40 done |
al@19561 | 41 |
al@19561 | 42 # # Install libiberty (-liberty flag): dependency described in *.la files |
al@19561 | 43 # install -o root -g root -m 644 $src/include/libiberty.h $install/usr/include |
pankso@9 | 44 } |
pankso@9 | 45 |
al@20436 | 46 genpkg_rules() { |
al@19743 | 47 case $PACKAGE in |
al@19743 | 48 libbfd) |
al@19743 | 49 copy libbfd*.so |
al@19743 | 50 CAT="system-tools|Binary File Descriptor library" |
al@19743 | 51 DEPENDS="zlib" |
al@19743 | 52 ;; |
al@20436 | 53 binutils) |
al@20436 | 54 copy @std @dev @rm |
al@20799 | 55 DEPENDS="libbfd zlib flex glibc" |
al@20436 | 56 TAGS="LFS assembler linker" |
al@20436 | 57 ;; |
al@19743 | 58 esac |
pankso@9 | 59 } |