wok-next annotate binutils/receipt @ rev 20212
Up consonance (0.5.1)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Nov 04 18:41:56 2017 +0100 (2017-11-04) |
parents | 7387df590f12 |
children | 90a5eb560fd6 |
rev | line source |
---|---|
al@19743 | 1 # SliTaz package receipt v2. |
pankso@9 | 2 |
pankso@9 | 3 PACKAGE="binutils" |
al@19561 | 4 VERSION="2.27" |
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/" |
jozee@4932 | 10 TAGS="assembler linker" |
pankso@15979 | 11 HOST_ARCH="i486 arm" |
pankso@9 | 12 |
al@19561 | 13 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
al@19561 | 14 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" |
al@19561 | 15 |
al@19561 | 16 BUILD_DEPENDS="glibc-dev zlib-dev texinfo bison flex gettext-tools" |
al@19745 | 17 BUILD_DEPENDS_arm=" " |
al@19743 | 18 SPLIT="libbfd" |
gokhlayeh@8172 | 19 |
pankso@9 | 20 # Rules to configure and make the package. |
pankso@9 | 21 compile_rules() |
pankso@9 | 22 { |
pankso@15979 | 23 case "$ARCH" in |
pankso@15979 | 24 i?86) ARCH_ARGS="--disable-werror" ;; |
pankso@12299 | 25 esac |
al@19561 | 26 |
al@19561 | 27 mkdir build; cd build |
al@19561 | 28 |
gokhlayeh@8172 | 29 $src/configure \ |
al@19745 | 30 --enable-gold \ |
al@19745 | 31 --enable-ld=default \ |
al@19745 | 32 --enable-plugins \ |
pankso@10013 | 33 --enable-shared \ |
al@19745 | 34 --with-system-zlib \ |
pankso@15979 | 35 $CONFIGURE_ARGS $ARCH_ARGS && |
gokhlayeh@8172 | 36 make tooldir=/usr && |
al@19561 | 37 make tooldir=/usr install |
al@19561 | 38 |
al@19561 | 39 # Create prefixed version of the tools. |
al@19561 | 40 cd $install/usr/bin |
al@19561 | 41 for i in $(ls); do |
al@19561 | 42 mv $i $TOOLPREFIX$i |
al@19561 | 43 [ $i == 'strings' ] && continue # skip: Busybox intercept |
al@19561 | 44 ln -s $TOOLPREFIX$i $i |
rcx@3930 | 45 done |
al@19561 | 46 |
al@19561 | 47 # Remove prefix from manpages name |
al@19561 | 48 for i in $(find $install/usr/share/man/man1 -type f); do |
al@19561 | 49 mv $i ${i/$TOOLPREFIX/} |
al@19561 | 50 done |
al@19561 | 51 |
al@19561 | 52 # # Install libiberty (-liberty flag): dependency described in *.la files |
al@19561 | 53 # install -o root -g root -m 644 $src/include/libiberty.h $install/usr/include |
pankso@9 | 54 } |
pankso@9 | 55 |
pankso@9 | 56 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@9 | 57 genpkg_rules() |
pankso@9 | 58 { |
al@19743 | 59 case $PACKAGE in |
al@19743 | 60 binutils) |
al@19743 | 61 copy @std @dev |
al@19743 | 62 DEPENDS="glibc zlib flex libbfd" |
al@19743 | 63 ;; |
al@19743 | 64 libbfd) |
al@19743 | 65 copy libbfd*.so |
al@19743 | 66 CAT="system-tools|Binary File Descriptor library" |
al@19743 | 67 DEPENDS="zlib" |
al@19743 | 68 ;; |
al@19743 | 69 esac |
pankso@9 | 70 } |