CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
4296273839f204324c8ebf969d21b5714671de4f
[crossrootfs.git] / binutils / Pkgfile
1 # Description: The GNU Binutils are a collection of binary tools
2 # URL: http://sources.redhat.com/binutils/
3 # Maintainer: CRUX System Team, core-ports at crux dot nu
4 # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
5 # Depends on:
6
7 name=binutils
8 version=2.19.1
9 release=1
10 source=(ftp://ftp.gnu.org/gnu/$name/$name-$version.tar.bz2 \
11 $name-$version-branch_update-5.patch)
12
13 build() {
14 cd $name-$version
15 patch -p1 -i $SRC/$name-$version-branch_update-5.patch
16 sed -i '/^SUBDIRS/s/doc//' bfd/Makefile.in
17
18 mkdir $SRC/build
19 cd $SRC/build
20
21 AR="ar" AS="as" \
22 $SRC/$name-$version/configure --build=$CHOST \
23 --host=$CTARGET \
24 --target=$CTARGET \
25 --without-multilib \
26 --prefix=/usr \
27 --disable-shared \
28 --disable-nls
29
30 make configure-host
31 make tooldir=/usr
32 make tooldir=/usr DESTDIR=$PKG install
33
34 cp ../$name-$version/include/libiberty.h $PKG/usr/include
35 rm -rf $PKG/usr/info
36 sed -i "s|-L$SRC[^ ]* ||g" $PKG/usr/lib/libbfd.la
37 }