wok-next view binutils/receipt @ rev 21038

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