wok-next view binutils/receipt @ rev 20307
mplayer-svn tiny libpng patch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Nov 10 15:10:02 2017 +0100 (2017-11-10) |
parents | 7387df590f12 |
children | 90a5eb560fd6 |
line source
1 # SliTaz package receipt v2.
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 BUILD_DEPENDS="glibc-dev zlib-dev texinfo bison flex gettext-tools"
17 BUILD_DEPENDS_arm=" "
18 SPLIT="libbfd"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 case "$ARCH" in
24 i?86) ARCH_ARGS="--disable-werror" ;;
25 esac
27 mkdir build; cd build
29 $src/configure \
30 --enable-gold \
31 --enable-ld=default \
32 --enable-plugins \
33 --enable-shared \
34 --with-system-zlib \
35 $CONFIGURE_ARGS $ARCH_ARGS &&
36 make tooldir=/usr &&
37 make tooldir=/usr install
39 # Create prefixed version of the tools.
40 cd $install/usr/bin
41 for i in $(ls); do
42 mv $i $TOOLPREFIX$i
43 [ $i == 'strings' ] && continue # skip: Busybox intercept
44 ln -s $TOOLPREFIX$i $i
45 done
47 # Remove prefix from manpages name
48 for i in $(find $install/usr/share/man/man1 -type f); do
49 mv $i ${i/$TOOLPREFIX/}
50 done
52 # # Install libiberty (-liberty flag): dependency described in *.la files
53 # install -o root -g root -m 644 $src/include/libiberty.h $install/usr/include
54 }
56 # Rules to gen a SliTaz package suitable for Tazpkg.
57 genpkg_rules()
58 {
59 case $PACKAGE in
60 binutils)
61 copy @std @dev
62 DEPENDS="glibc zlib flex libbfd"
63 ;;
64 libbfd)
65 copy libbfd*.so
66 CAT="system-tools|Binary File Descriptor library"
67 DEPENDS="zlib"
68 ;;
69 esac
70 }