wok view binutils/receipt @ rev 4675

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