wok-next annotate binutils/receipt @ rev 19561

Initial commit to wok-next (SliTaz v.6 now): update 61 packages (about) according to LFS 7.10
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Dec 16 01:16:56 2016 +0200 (2016-12-16)
parents ce5ca5c37e4e
children 364cb5b583b1
rev   line source
pankso@9 1 # SliTaz package receipt.
pankso@9 2
pankso@9 3 PACKAGE="binutils"
al@19561 4 VERSION="2.27"
pankso@204 5 CATEGORY="development"
pankso@9 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 PROVIDE="libbfd"
al@19561 17 DEPENDS="glibc zlib flex"
al@19561 18 BUILD_DEPENDS="glibc-dev zlib-dev texinfo bison flex gettext-tools"
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
al@19561 31
al@19561 32 mkdir build; cd build
al@19561 33
gokhlayeh@8172 34 $src/configure \
pankso@10013 35 --enable-shared \
pankso@12299 36 --disable-initfini-array \
pankso@12543 37 --with-bugurl="http://bugs.slitaz.org/" \
pankso@15979 38 $CONFIGURE_ARGS $ARCH_ARGS &&
gokhlayeh@8172 39 make tooldir=/usr &&
al@19561 40 make tooldir=/usr install
al@19561 41
al@19561 42 # Create prefixed version of the tools.
al@19561 43 cd $install/usr/bin
al@19561 44 for i in $(ls); do
al@19561 45 mv $i $TOOLPREFIX$i
al@19561 46 [ $i == 'strings' ] && continue # skip: Busybox intercept
al@19561 47 ln -s $TOOLPREFIX$i $i
rcx@3930 48 done
al@19561 49 rm ld.bfd ${TOOLPREFIX}ld.bfd
al@19561 50 ln -s ld ld.bfd
al@19561 51 ln -s ${TOOLPREFIX}ld ${TOOLPREFIX}ld.bfd
al@19561 52
al@19561 53 # Remove prefix from manpages name
al@19561 54 for i in $(find $install/usr/share/man/man1 -type f); do
al@19561 55 mv $i ${i/$TOOLPREFIX/}
al@19561 56 done
al@19561 57
al@19561 58 # # Install libiberty (-liberty flag): dependency described in *.la files
al@19561 59 # install -o root -g root -m 644 $src/include/libiberty.h $install/usr/include
pankso@9 60 }
pankso@9 61
pankso@9 62 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@9 63 genpkg_rules()
pankso@9 64 {
al@19561 65 cook_copy_folders bin lib include
al@19561 66 find $fs -name '*.la' -delete
pankso@9 67 }