wok annotate binutils/receipt @ rev 3625

rdesktop: update DEPENDS
author Liu Peng <rocky@slitaz.org>
date Wed Jul 01 04:27:11 2009 +0000 (2009-07-01)
parents 583bdd691510
children 92e8ac5a4240
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"
pascal@2845 9 DEPENDS="zlib"
pankso@9 10 WEB_SITE="http://www.gnu.org/software/binutils/"
pankso@2699 11 WGET_URL="$GNU_MIRROR/$PACKAGE/$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@3188 45 # Remove 'strings' (Busybox).
pankso@3188 46 #rm $fs/usr/lib/libiberty.a
pankso@9 47 rm $fs/usr/bin/strings
pankso@9 48 }