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

Up: binutils (2.18) starting to upgrade the toochain
author Christophe Lincoln <pankso@slitaz.org>
date Sun Mar 23 00:05:44 2008 +0100 (2008-03-23)
parents 17a39e4461e4
children 208837b71acc
line source
1 # SliTaz package receipt.
3 PACKAGE="binutils"
4 VERSION="2.18"
5 CATEGORY="development"
6 SHORT_DESC="GNU assembler, linker and binary utilities."
7 MAINTAINER="pankso@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://www.gnu.org/software/binutils/"
10 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
12 # Rules to configure and make the package.
13 compile_rules()
14 {
15 mkdir binutils-build && cd binutils-build
16 ../$PACKAGE-$VERSION/configure --prefix=/usr \
17 --infodir=/usr/share/info --mandir=/usr/share/man \
18 --enable-shared $CONFIGURE_ARGS
19 make tooldir=/usr
20 # Install in binutils-build/ and then move the files to
21 # to the source tree. Can't install directly... This is done
22 # to keep the $src and $_pkg working for genpkg.
23 make tooldir=/usr DESTDIR=$PWD/_pkg install
24 mv _pkg ../$PACKAGE-$VERSION/
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/usr/share/locale
31 cp -a $_pkg/usr/bin $fs/usr
32 cp -a $_pkg/usr/lib $fs/usr
33 cp -a $_pkg/usr/include $fs/usr
34 cp -a $_pkg/usr/share/locale/fr $fs/usr/share/locale
35 # libiberty.h
36 cp -a $src/include/libiberty.h $fs/usr/include
37 # Remove libiberty.a (use the one from GCC) and 'strings' (Busybox).
38 rm $fs/usr/lib/libiberty.a
39 rm $fs/usr/bin/strings
40 # Da strip...
41 strip --strip-debug $fs/usr/bin/*
42 strip --strip-debug $fs/usr/lib/*.so*
43 }