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