wok-6.x annotate binutils/receipt @ rev 7539

Up: gst-plugins-good to 0.10.26.
author Christopher Rogers <slaxemulator@gmail.com>
date Tue Dec 07 07:29:33 2010 +0000 (2010-12-07)
parents be693bb0fed6
children c636437d360a
rev   line source
pankso@9 1 # SliTaz package receipt.
pankso@9 2
pankso@9 3 PACKAGE="binutils"
pankso@5244 4 VERSION="2.20.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@5244 10 BUILD_DEPENDS="zlib-dev texinfo"
pankso@9 11 WEB_SITE="http://www.gnu.org/software/binutils/"
pankso@2699 12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
erjo@4780 13 PROVIDE="libbfd"
jozee@4932 14 TAGS="assembler linker"
pankso@9 15
pankso@9 16 # Rules to configure and make the package.
pankso@534 17 #
pankso@9 18 compile_rules()
pankso@9 19 {
pankso@5244 20 mkdir -p 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 &&
pascal@5782 28 make -j 4 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 }