wok-next annotate binutils/receipt @ rev 2699

Up: bunitils (2.19.1)
author Christophe Lincoln <pankso@slitaz.org>
date Wed Apr 22 18:21:25 2009 +0200 (2009-04-22)
parents 5175cd550521
children 583bdd691510
rev   line source
pankso@9 1 # SliTaz package receipt.
pankso@9 2
pankso@9 3 PACKAGE="binutils"
pankso@2699 4 VERSION="2.19.1"
pankso@204 5 CATEGORY="development"
pankso@9 6 SHORT_DESC="GNU assembler, linker and binary utilities."
pankso@9 7 MAINTAINER="pankso@slitaz.org"
pankso@534 8 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pankso@9 9 WEB_SITE="http://www.gnu.org/software/binutils/"
pankso@2699 10 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
pankso@2699 11 #WGET_URL="ftp://sourceware.org/pub/binutils/snapshots/$TARBALL"
pankso@9 12
pankso@9 13 # Rules to configure and make the package.
pankso@534 14 #
pankso@534 15 # First pass: --disable-werror \
pankso@534 16 #
pankso@9 17 compile_rules()
pankso@9 18 {
pankso@9 19 mkdir binutils-build && cd binutils-build
pankso@534 20 ../$PACKAGE-$VERSION/configure \
pankso@534 21 --prefix=/usr \
pankso@534 22 --infodir=/usr/share/info \
pankso@534 23 --mandir=/usr/share/man \
pankso@534 24 --enable-shared \
pankso@2699 25 $CONFIGURE_ARGS &&
pankso@2699 26 make tooldir=/usr &&
pankso@9 27 # Install in binutils-build/ and then move the files to
pankso@9 28 # to the source tree. Can't install directly... This is done
pankso@9 29 # to keep the $src and $_pkg working for genpkg.
pankso@2699 30 make tooldir=/usr DESTDIR=$PWD/_pkg install &&
pankso@9 31 mv _pkg ../$PACKAGE-$VERSION/
pankso@9 32 }
pankso@9 33
pankso@9 34 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@9 35 genpkg_rules()
pankso@9 36 {
pankso@534 37 mkdir -p $fs/usr
pankso@9 38 cp -a $_pkg/usr/bin $fs/usr
pankso@9 39 cp -a $_pkg/usr/lib $fs/usr
pankso@9 40 cp -a $_pkg/usr/include $fs/usr
pankso@534 41
pankso@9 42 # libiberty.h
pankso@9 43 cp -a $src/include/libiberty.h $fs/usr/include
pankso@534 44
pankso@9 45 # Remove libiberty.a (use the one from GCC) and 'strings' (Busybox).
pankso@9 46 rm $fs/usr/lib/libiberty.a
pankso@9 47 rm $fs/usr/bin/strings
pankso@9 48 }