wok view binutils/receipt @ rev 4781

Fix: amule DEPENDS (Bug #227).
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Thu Jan 14 22:19:54 2010 +0100 (2010-01-14)
parents ad8ecdc56d8e
children 4273e906522b
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"
14 # Rules to configure and make the package.
15 #
16 # First pass: --disable-werror \
17 #
18 compile_rules()
19 {
20 mkdir binutils-build && cd binutils-build
21 ../$PACKAGE-$VERSION/configure \
22 --program-prefix=$TOOLPREFIX \
23 --prefix=/usr \
24 --infodir=/usr/share/info \
25 --mandir=/usr/share/man \
26 --enable-shared \
27 $CONFIGURE_ARGS &&
28 make tooldir=/usr &&
29 # Install in binutils-build/ and then move the files to
30 # to the source tree. Can't install directly... This is done
31 # to keep the $src and $_pkg working for genpkg.
32 make tooldir=/usr DESTDIR=$PWD/_pkg install &&
33 mv _pkg ../$PACKAGE-$VERSION/ &&
34 # This is the default binutils, so create symlinks
35 # to the target platform binutil binaries.
36 # Delete duplicate binaries to save space.
37 for binutil in $(ls -1 $src/_pkg/usr/bin/ | grep "${TOOLPREFIX}") ; do
38 genericBinutilPath="$src/_pkg/usr/bin/$(echo "$binutil" | sed "s:$TOOLPREFIX::g")"
39 if [ -e $genericBinutilPath ] ; then
40 rm -f $genericBinutilPath
41 fi
42 ln -s $binutil $genericBinutilPath
43 done
44 }
46 # Rules to gen a SliTaz package suitable for Tazpkg.
47 genpkg_rules()
48 {
49 mkdir -p $fs/usr
50 cp -a $_pkg/usr/bin $fs/usr
51 cp -a $_pkg/usr/lib $fs/usr
52 cp -a $_pkg/usr/include $fs/usr
54 # libiberty.h
55 cp -a $src/include/libiberty.h $fs/usr/include
57 # Remove 'strings' (Busybox).
58 #rm $fs/usr/lib/libiberty.a
59 rm $fs/usr/bin/strings $fs/usr/bin/*-strings
60 }