Commit | Line | Data |
---|---|---|
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 | |
7 | name=binutils | |
36cfe29b | 8 | version=2.23.1 |
8c739ccc | 9 | release=1 |
e426e56d | 10 | source=(ftp://ftp.gnu.org/gnu/$name/$name-$version.tar.bz2) |
8c739ccc JB |
11 | |
12 | build() { | |
91455824 VM |
13 | mkdir build |
14 | cd build | |
15 | ../$name-$version/configure --prefix=/usr \ | |
54c9ecf4 | 16 | --build=arm-unknown-linux-gnueabihf \ |
91455824 VM |
17 | --mandir=/usr/man \ |
18 | --enable-shared \ | |
19 | --disable-nls | |
20 | make tooldir=/usr | |
e426e56d | 21 | make check |
91455824 VM |
22 | make tooldir=/usr DESTDIR=$PKG install |
23 | install -m 0644 ../$name-$version/include/libiberty.h $PKG/usr/include | |
24 | rm -r $PKG/usr/share | |
25 | sed -i "s|-L$SRC[^ ]* ||g" $PKG/usr/lib/libbfd.la | |
8c739ccc | 26 | } |