| 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 |
| 6 | |
| 7 | name=binutils |
| 8 | version=2.20.1 |
| 9 | release=1 |
| 10 | source=(ftp://ftp.gnu.org/gnu/$name/$name-${version}a.tar.bz2) |
| 11 | |
| 12 | build() { |
| 13 | sed -i '/^SUBDIRS/s/doc//' $name-$version/bfd/Makefile.in |
| 14 | sed -i '/^# RELEASE=y/s/#//' $name-$version/bfd/Makefile.in |
| 15 | mkdir build |
| 16 | cd build |
| 17 | ../$name-$version/configure --prefix=/usr \ |
| 18 | --mandir=/usr/man \ |
| 19 | --enable-shared \ |
| 20 | --disable-nls |
| 21 | make tooldir=/usr |
| 22 | make check |
| 23 | make tooldir=/usr DESTDIR=$PKG install |
| 24 | install -m 0644 ../$name-$version/include/libiberty.h $PKG/usr/include |
| 25 | rm -r $PKG/usr/share |
| 26 | sed -i "s|-L$SRC[^ ]* ||g" $PKG/usr/lib/libbfd.la |
| 27 | } |