CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
openssl: updated to 1.0.2s
[ports/core-arm.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: zlib flex
6
7name=binutils
8version=2.29.1
9release=1
10source=(http://ftpmirror.gnu.org/gnu/$name/$name-$version.tar.bz2)
11
12build() {
13 sed -i '/^SUBDIRS/s/doc//' $name-$version/bfd/Makefile.in
14
15 mkdir build
16 cd build
17
18 ../$name-$version/configure --prefix=/usr \
19 --build=arm-unknown-linux-gnueabihf \
20 --enable-shared \
21 --disable-nls \
22 --enable-ld=default \
23 --enable-gold=yes \
24 --enable-plugins \
25 --enable-install-libiberty \
26 --disable-werror
27
28 make tooldir=/usr
29 make tooldir=/usr DESTDIR=$PKG install
30
31 rm -r $PKG/usr/share/info
32 rm $PKG/usr/share/man/man1/{dlltool,nlmconv,windres,windmc}.1
33 sed -i "s|-L$SRC[^ ]* ||g" $PKG/usr/lib/lib{bfd,opcodes}.la
34}