wok-6.x view binutils/receipt @ rev 6207

Up: libevent, libevent-dev to 1.4.14b.
author Christopher Rogers <slaxemulator@gmail.com>
date Sat Sep 11 08:42:30 2010 +0000 (2010-09-11)
parents d9797bed828a
children be693bb0fed6
line source
1 # SliTaz package receipt.
3 PACKAGE="binutils"
4 VERSION="2.20.1"
5 CATEGORY="development"
6 SHORT_DESC="GNU assembler, linker and binary utilities."
7 MAINTAINER="pankso@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.bz2"
9 DEPENDS="zlib"
10 BUILD_DEPENDS="zlib-dev texinfo"
11 WEB_SITE="http://www.gnu.org/software/binutils/"
12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
13 PROVIDE="libbfd"
14 TAGS="assembler linker"
16 # Rules to configure and make the package.
17 #
18 compile_rules()
19 {
20 mkdir -p binutils-build && cd binutils-build
21 ../$PACKAGE-$VERSION/configure \
22 --program-prefix=$TOOLPREFIX \
23 --prefix=/usr \
24 --infodir=/usr/share/info \
25 --mandir=/usr/share/man \
26 --enable-shared \
27 $CONFIGURE_ARGS &&
28 make -j 4 tooldir=/usr &&
29 # Install in binutils-build/ and then move the files to
30 # to the source tree. Can't install directly... This is done
31 # to keep the $src and $_pkg working for genpkg.
32 make tooldir=/usr DESTDIR=$PWD/_pkg install &&
33 mv _pkg ../$PACKAGE-$VERSION/ &&
34 # This is the default binutils, so create symlinks
35 # to the target platform binutil binaries.
36 # Delete duplicate binaries to save space.
37 for binutil in $(ls -1 $src/_pkg/usr/bin/ | grep "${TOOLPREFIX}") ; do
38 genericBinutilPath="$src/_pkg/usr/bin/$(echo "$binutil" | sed "s:$TOOLPREFIX::g")"
39 if [ -e $genericBinutilPath ] ; then
40 rm -f $genericBinutilPath
41 fi
42 ln -s $binutil $genericBinutilPath
43 done
44 }
46 # Rules to gen a SliTaz package suitable for Tazpkg.
47 genpkg_rules()
48 {
49 mkdir -p $fs/usr
50 cp -a $_pkg/usr/bin $fs/usr
51 cp -a $_pkg/usr/lib $fs/usr
52 cp -a $_pkg/usr/include $fs/usr
54 # libiberty.h
55 cp -a $src/include/libiberty.h $fs/usr/include
57 # Remove 'strings' (Busybox).
58 #rm $fs/usr/lib/libiberty.a
59 rm $fs/usr/bin/strings $fs/usr/bin/*-strings
60 }