wok-next annotate binutils/receipt @ rev 4932

add/improve TAGS b* receipts
author Rohit Joshi <jozee@slitaz.org>
date Tue Feb 16 11:40:35 2010 +0000 (2010-02-16)
parents 89209a7ca1ca
children d9797bed828a
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"
erjo@4780 12 PROVIDE="libbfd"
jozee@4932 13 TAGS="assembler linker"
pankso@9 14
pankso@9 15 # Rules to configure and make the package.
pankso@534 16 #
pankso@534 17 # First pass: --disable-werror \
pankso@534 18 #
pankso@9 19 compile_rules()
pankso@9 20 {
pankso@9 21 mkdir binutils-build && cd binutils-build
pankso@534 22 ../$PACKAGE-$VERSION/configure \
rcx@3930 23 --program-prefix=$TOOLPREFIX \
pankso@534 24 --prefix=/usr \
pankso@534 25 --infodir=/usr/share/info \
pankso@534 26 --mandir=/usr/share/man \
pankso@534 27 --enable-shared \
pankso@2699 28 $CONFIGURE_ARGS &&
pankso@2699 29 make tooldir=/usr &&
pankso@9 30 # Install in binutils-build/ and then move the files to
pankso@9 31 # to the source tree. Can't install directly... This is done
pankso@9 32 # to keep the $src and $_pkg working for genpkg.
pankso@2699 33 make tooldir=/usr DESTDIR=$PWD/_pkg install &&
rcx@3930 34 mv _pkg ../$PACKAGE-$VERSION/ &&
rcx@3930 35 # This is the default binutils, so create symlinks
rcx@3930 36 # to the target platform binutil binaries.
rcx@3930 37 # Delete duplicate binaries to save space.
rcx@3930 38 for binutil in $(ls -1 $src/_pkg/usr/bin/ | grep "${TOOLPREFIX}") ; do
rcx@3930 39 genericBinutilPath="$src/_pkg/usr/bin/$(echo "$binutil" | sed "s:$TOOLPREFIX::g")"
rcx@3930 40 if [ -e $genericBinutilPath ] ; then
rcx@3930 41 rm -f $genericBinutilPath
rcx@3930 42 fi
rcx@3930 43 ln -s $binutil $genericBinutilPath
rcx@3930 44 done
pankso@9 45 }
pankso@9 46
pankso@9 47 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@9 48 genpkg_rules()
pankso@9 49 {
pankso@534 50 mkdir -p $fs/usr
pankso@9 51 cp -a $_pkg/usr/bin $fs/usr
pankso@9 52 cp -a $_pkg/usr/lib $fs/usr
pankso@9 53 cp -a $_pkg/usr/include $fs/usr
pankso@534 54
pankso@9 55 # libiberty.h
pankso@9 56 cp -a $src/include/libiberty.h $fs/usr/include
pankso@534 57
pankso@3188 58 # Remove 'strings' (Busybox).
pankso@3188 59 #rm $fs/usr/lib/libiberty.a
rcx@3930 60 rm $fs/usr/bin/strings $fs/usr/bin/*-strings
pankso@9 61 }