wok view binutils/receipt @ rev 9
Toolchain : binutils, glibc, gcc, make
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri Dec 14 21:14:40 2007 +0100 (2007-12-14) |
parents | |
children | 17a39e4461e4 |
line source
1 # SliTaz package receipt.
3 PACKAGE="binutils"
4 VERSION="2.17"
5 CATEGORY="extra"
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 }