wok-next view binutils/receipt @ rev 20709

cdrdao: add patch.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat May 26 17:09:29 2018 +0300 (2018-05-26)
parents 9a17d981d0f7
children b156aee559a7
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="pankso@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_arm=" "
16 BUILD_DEPENDS="glibc-dev zlib-dev texinfo bison flex gettext-tools"
17 SPLIT="libbfd binutils"
19 compile_rules() {
20 mkdir build
21 cd build
23 $src/configure \
24 --enable-gold \
25 --enable-ld=default \
26 --enable-plugins \
27 --enable-shared \
28 --disable-werror \
29 --with-system-zlib \
30 $CONFIGURE_ARGS &&
31 make tooldir=/usr &&
32 make tooldir=/usr install || return 1
34 # Create prefixed version of the tools.
35 cd $install/usr/bin
36 for i in $(ls); do
37 mv $i $TOOLPREFIX$i
38 [ $i == 'strings' ] && continue # skip: Busybox intercept
39 ln -s $TOOLPREFIX$i $i
40 done
42 # # Install libiberty (-liberty flag): dependency described in *.la files
43 # install -o root -g root -m 644 $src/include/libiberty.h $install/usr/include
44 }
46 genpkg_rules() {
47 case $PACKAGE in
48 libbfd)
49 copy libbfd*.so
50 CAT="system-tools|Binary File Descriptor library"
51 DEPENDS="zlib"
52 ;;
53 binutils)
54 copy @std @dev @rm
55 DEPENDS="flex libbfd glibc"
56 TAGS="LFS assembler linker"
57 ;;
58 esac
59 }