CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
m4: updated mandir
[crossrootfs.git] / binutils / Pkgfile
CommitLineData
6dca1d21
JB
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
b751b192 4# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
6dca1d21
JB
5# Depends on:
6
7name=binutils
0709e900 8version=2.25.1
b12bbc2f 9release=2
c2b30fb8 10source=(ftp://ftp.gnu.org/gnu/$name/$name-$version.tar.bz2)
6dca1d21
JB
11
12build() {
d3c4b411
VM
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
6dca1d21
JB
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 \
6dca1d21 23 --prefix=/usr \
d3c4b411 24 --enable-shared \
0709e900
VM
25 --disable-nls \
26 --enable-ld=default \
27 --enable-gold=yes \
28 --enable-plugins \
29 --disable-werror
6dca1d21 30
6dca1d21
JB
31 make tooldir=/usr
32 make tooldir=/usr DESTDIR=$PKG install
33
0709e900
VM
34 install -m 0644 ../$name-$version/include/libiberty.h $PKG/usr/include
35
36 rm -r $PKG/usr/share/info
37 rm $PKG/usr/share/man/man1/{dlltool,nlmconv,windres,windmc}.1
6dca1d21
JB
38 sed -i "s|-L$SRC[^ ]* ||g" $PKG/usr/lib/libbfd.la
39}