wok-next view binutils/receipt @ rev 19715

Fix building: pciutils, pcmanfm-legacy, arj
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat May 13 17:25:31 2017 +0300 (2017-05-13)
parents c963361d3d54
children 7387df590f12
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 --enable-gold \
39 --enable-plugins \
40 $CONFIGURE_ARGS $ARCH_ARGS &&
41 make tooldir=/usr &&
42 make tooldir=/usr install
44 # Create prefixed version of the tools.
45 cd $install/usr/bin
46 for i in $(ls); do
47 mv $i $TOOLPREFIX$i
48 [ $i == 'strings' ] && continue # skip: Busybox intercept
49 ln -s $TOOLPREFIX$i $i
50 done
52 # Remove prefix from manpages name
53 for i in $(find $install/usr/share/man/man1 -type f); do
54 mv $i ${i/$TOOLPREFIX/}
55 done
57 # # Install libiberty (-liberty flag): dependency described in *.la files
58 # install -o root -g root -m 644 $src/include/libiberty.h $install/usr/include
59 }
61 # Rules to gen a SliTaz package suitable for Tazpkg.
62 genpkg_rules()
63 {
64 cook_copy_folders bin lib include
65 find $fs -name '*.la' -delete
66 }