CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
e2fsprogs: updated to 1.42.5 and aligned with upstream
[crossrootfs.git] / binutils / Pkgfile
... / ...
CommitLineData
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
7name=binutils
8version=2.22
9release=1
10source=(ftp://ftp.gnu.org/gnu/$name/$name-$version.tar.bz2)
11
12build() {
13 sed -i '/^SUBDIRS/s/doc//' $name-$version/bfd/Makefile.in
14 sed -i '/^# RELEASE=y/s/#//' $name-$version/bfd/Makefile.in
15 sed -i 's|really-check: check-cplus-dem check-pexecute check-expandargv|really-check:|g' -i $name-$version/libiberty/testsuite/Makefile.in
16 mkdir $SRC/build
17 cd $SRC/build
18
19 AR="ar" AS="as" \
20 $SRC/$name-$version/configure --build=$CHOST \
21 --host=$CTARGET \
22 --target=$CTARGET \
23 --prefix=/usr \
24 --mandir=/usr/man \
25 --enable-shared \
26 --disable-nls
27
28 make configure-host
29 make tooldir=/usr
30 make check
31 make tooldir=/usr DESTDIR=$PKG install
32
33 cp ../$name-$version/include/libiberty.h $PKG/usr/include
34 rm -r $PKG/usr/share
35 sed -i "s|-L$SRC[^ ]* ||g" $PKG/usr/lib/libbfd.la
36}