wok-next view 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
line source
1 # SliTaz package receipt.
3 PACKAGE="binutils"
4 VERSION="2.27"
5 CATEGORY="development"
6 SHORT_DESC="GNU assembler, linker and binary utilities."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2 LGPL2 GPL3 LGPL3"
9 WEB_SITE="http://www.gnu.org/software/binutils/"
10 TAGS="assembler linker"
11 HOST_ARCH="i486 arm"
13 TARBALL="$PACKAGE-$VERSION.tar.bz2"
14 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
16 PROVIDE="libbfd"
17 DEPENDS="glibc zlib flex"
18 BUILD_DEPENDS="glibc-dev zlib-dev texinfo bison flex gettext-tools"
20 # Handle cross compilation.
21 case "$ARCH" in
22 arm) BUILD_DEPENDS="" ;;
23 esac
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 case "$ARCH" in
29 i?86) ARCH_ARGS="--disable-werror" ;;
30 esac
32 mkdir build; cd build
34 $src/configure \
35 --enable-shared \
36 --disable-initfini-array \
37 --with-bugurl="http://bugs.slitaz.org/" \
38 $CONFIGURE_ARGS $ARCH_ARGS &&
39 make tooldir=/usr &&
40 make tooldir=/usr install
42 # Create prefixed version of the tools.
43 cd $install/usr/bin
44 for i in $(ls); do
45 mv $i $TOOLPREFIX$i
46 [ $i == 'strings' ] && continue # skip: Busybox intercept
47 ln -s $TOOLPREFIX$i $i
48 done
49 rm ld.bfd ${TOOLPREFIX}ld.bfd
50 ln -s ld ld.bfd
51 ln -s ${TOOLPREFIX}ld ${TOOLPREFIX}ld.bfd
53 # Remove prefix from manpages name
54 for i in $(find $install/usr/share/man/man1 -type f); do
55 mv $i ${i/$TOOLPREFIX/}
56 done
58 # # Install libiberty (-liberty flag): dependency described in *.la files
59 # install -o root -g root -m 644 $src/include/libiberty.h $install/usr/include
60 }
62 # Rules to gen a SliTaz package suitable for Tazpkg.
63 genpkg_rules()
64 {
65 cook_copy_folders bin lib include
66 find $fs -name '*.la' -delete
67 }