wok-current annotate binutils/receipt @ rev 268
UPD: portmap
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Mon Feb 25 08:41:37 2008 +0100 (2008-02-25) |
parents | 9a12d7729c6f |
children | bfeff0fa24ac |
rev | line source |
---|---|
pankso@9 | 1 # SliTaz package receipt. |
pankso@9 | 2 |
pankso@9 | 3 PACKAGE="binutils" |
pankso@9 | 4 VERSION="2.17" |
pankso@204 | 5 CATEGORY="development" |
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 } |