CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
gcc: fixed typo
[ports/core-arm.git] / binutils / Pkgfile
CommitLineData
8c739ccc 1# Description: The GNU Binutils are a collection of binary tools
fe1e2a07
JB
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
8c739ccc
JB
6
7name=binutils
aa646e66
VM
8version=2.24
9release=2
e426e56d 10source=(ftp://ftp.gnu.org/gnu/$name/$name-$version.tar.bz2)
8c739ccc
JB
11
12build() {
d49f1a61
JB
13 sed -i '/^SUBDIRS/s/doc//' $name-$version/bfd/Makefile.in
14
91455824
VM
15 mkdir build
16 cd build
17 ../$name-$version/configure --prefix=/usr \
54c9ecf4 18 --build=arm-unknown-linux-gnueabihf \
91455824
VM
19 --mandir=/usr/man \
20 --enable-shared \
21 --disable-nls
22 make tooldir=/usr
e426e56d 23 make check
91455824
VM
24 make tooldir=/usr DESTDIR=$PKG install
25 install -m 0644 ../$name-$version/include/libiberty.h $PKG/usr/include
26 rm -r $PKG/usr/share
aa646e66 27 sed -i "s|-L$SRC[^ ]* ||g" $PKG/usr/lib/lib{bfd,opcodes}.la
8c739ccc 28}