wok-next view binutils/receipt @ rev 3114
Awesome: add entry into Slim sessions
author | Mallory MOLLO <mallory@skyrock.com> |
---|---|
date | Mon May 18 20:45:20 2009 +0200 (2009-05-18) |
parents | 45b0ddd9adf0 |
children | 3daee9f84084 |
line source
1 # SliTaz package receipt.
3 PACKAGE="binutils"
4 VERSION="2.19.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 WEB_SITE="http://www.gnu.org/software/binutils/"
11 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
12 #WGET_URL="ftp://sourceware.org/pub/binutils/snapshots/$TARBALL"
14 # Rules to configure and make the package.
15 #
16 # First pass: --disable-werror \
17 #
18 compile_rules()
19 {
20 mkdir binutils-build && cd binutils-build
21 ../$PACKAGE-$VERSION/configure \
22 --prefix=/usr \
23 --infodir=/usr/share/info \
24 --mandir=/usr/share/man \
25 --enable-shared \
26 $CONFIGURE_ARGS &&
27 make tooldir=/usr &&
28 # Install in binutils-build/ and then move the files to
29 # to the source tree. Can't install directly... This is done
30 # to keep the $src and $_pkg working for genpkg.
31 make tooldir=/usr DESTDIR=$PWD/_pkg install &&
32 mv _pkg ../$PACKAGE-$VERSION/
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr
39 cp -a $_pkg/usr/bin $fs/usr
40 cp -a $_pkg/usr/lib $fs/usr
41 cp -a $_pkg/usr/include $fs/usr
43 # libiberty.h
44 cp -a $src/include/libiberty.h $fs/usr/include
46 # Remove libiberty.a (use the one from GCC) and 'strings' (Busybox).
47 rm $fs/usr/lib/libiberty.a
48 rm $fs/usr/bin/strings
49 }