wok-stable annotate binutils/receipt @ rev 4021
PolicyKit: fix FSH
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Sep 04 10:25:14 2009 +0200 (2009-09-04) |
parents | 92e8ac5a4240 |
children | 89209a7ca1ca |
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 \ |
rcx@3930 | 21 --program-prefix=$TOOLPREFIX \ |
pankso@534 | 22 --prefix=/usr \ |
pankso@534 | 23 --infodir=/usr/share/info \ |
pankso@534 | 24 --mandir=/usr/share/man \ |
pankso@534 | 25 --enable-shared \ |
pankso@2699 | 26 $CONFIGURE_ARGS && |
pankso@2699 | 27 make tooldir=/usr && |
pankso@9 | 28 # Install in binutils-build/ and then move the files to |
pankso@9 | 29 # to the source tree. Can't install directly... This is done |
pankso@9 | 30 # to keep the $src and $_pkg working for genpkg. |
pankso@2699 | 31 make tooldir=/usr DESTDIR=$PWD/_pkg install && |
rcx@3930 | 32 mv _pkg ../$PACKAGE-$VERSION/ && |
rcx@3930 | 33 # This is the default binutils, so create symlinks |
rcx@3930 | 34 # to the target platform binutil binaries. |
rcx@3930 | 35 # Delete duplicate binaries to save space. |
rcx@3930 | 36 for binutil in $(ls -1 $src/_pkg/usr/bin/ | grep "${TOOLPREFIX}") ; do |
rcx@3930 | 37 genericBinutilPath="$src/_pkg/usr/bin/$(echo "$binutil" | sed "s:$TOOLPREFIX::g")" |
rcx@3930 | 38 if [ -e $genericBinutilPath ] ; then |
rcx@3930 | 39 rm -f $genericBinutilPath |
rcx@3930 | 40 fi |
rcx@3930 | 41 ln -s $binutil $genericBinutilPath |
rcx@3930 | 42 done |
pankso@9 | 43 } |
pankso@9 | 44 |
pankso@9 | 45 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@9 | 46 genpkg_rules() |
pankso@9 | 47 { |
pankso@534 | 48 mkdir -p $fs/usr |
pankso@9 | 49 cp -a $_pkg/usr/bin $fs/usr |
pankso@9 | 50 cp -a $_pkg/usr/lib $fs/usr |
pankso@9 | 51 cp -a $_pkg/usr/include $fs/usr |
pankso@534 | 52 |
pankso@9 | 53 # libiberty.h |
pankso@9 | 54 cp -a $src/include/libiberty.h $fs/usr/include |
pankso@534 | 55 |
pankso@3188 | 56 # Remove 'strings' (Busybox). |
pankso@3188 | 57 #rm $fs/usr/lib/libiberty.a |
rcx@3930 | 58 rm $fs/usr/bin/strings $fs/usr/bin/*-strings |
pankso@9 | 59 } |