wok-4.x view binutils/receipt @ rev 4932

add/improve TAGS b* receipts
author Rohit Joshi <jozee@slitaz.org>
date Tue Feb 16 11:40:35 2010 +0000 (2010-02-16)
parents 89209a7ca1ca
children d9797bed828a
line source
1 # SliTaz package receipt.
3 PACKAGE="binutils"
4 VERSION="2.19.1"
5 CATEGORY="development"
6 SHORT_DESC="GNU assembler, linker and binary utilities."
7 MAINTAINER="pankso@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.bz2"
9 DEPENDS="zlib"
10 WEB_SITE="http://www.gnu.org/software/binutils/"
11 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
12 PROVIDE="libbfd"
13 TAGS="assembler linker"
15 # Rules to configure and make the package.
16 #
17 # First pass: --disable-werror \
18 #
19 compile_rules()
20 {
21 mkdir binutils-build && cd binutils-build
22 ../$PACKAGE-$VERSION/configure \
23 --program-prefix=$TOOLPREFIX \
24 --prefix=/usr \
25 --infodir=/usr/share/info \
26 --mandir=/usr/share/man \
27 --enable-shared \
28 $CONFIGURE_ARGS &&
29 make tooldir=/usr &&
30 # Install in binutils-build/ and then move the files to
31 # to the source tree. Can't install directly... This is done
32 # to keep the $src and $_pkg working for genpkg.
33 make tooldir=/usr DESTDIR=$PWD/_pkg install &&
34 mv _pkg ../$PACKAGE-$VERSION/ &&
35 # This is the default binutils, so create symlinks
36 # to the target platform binutil binaries.
37 # Delete duplicate binaries to save space.
38 for binutil in $(ls -1 $src/_pkg/usr/bin/ | grep "${TOOLPREFIX}") ; do
39 genericBinutilPath="$src/_pkg/usr/bin/$(echo "$binutil" | sed "s:$TOOLPREFIX::g")"
40 if [ -e $genericBinutilPath ] ; then
41 rm -f $genericBinutilPath
42 fi
43 ln -s $binutil $genericBinutilPath
44 done
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 mkdir -p $fs/usr
51 cp -a $_pkg/usr/bin $fs/usr
52 cp -a $_pkg/usr/lib $fs/usr
53 cp -a $_pkg/usr/include $fs/usr
55 # libiberty.h
56 cp -a $src/include/libiberty.h $fs/usr/include
58 # Remove 'strings' (Busybox).
59 #rm $fs/usr/lib/libiberty.a
60 rm $fs/usr/bin/strings $fs/usr/bin/*-strings
61 }