wok-current annotate binutils/receipt @ rev 2290

Added: vala (0.5.7)
author Fabrice THIROUX <mimas@slitaz.org>
date Sun Feb 22 11:16:18 2009 +0100 (2009-02-22)
parents 208837b71acc
children 45b0ddd9adf0
rev   line source
pankso@9 1 # SliTaz package receipt.
pankso@9 2
pankso@9 3 PACKAGE="binutils"
pankso@534 4 VERSION="2.17.50"
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@534 10 #WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
pankso@534 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@534 25 $CONFIGURE_ARGS
pankso@9 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@9 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 }