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