2006-02-23 16:26:10 +01:00
|
|
|
# Description: The GNU Binutils are a collection of binary tools
|
|
|
|
# URL: http://sources.redhat.com/binutils/
|
2007-01-23 18:25:18 +01:00
|
|
|
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
2010-04-21 20:13:34 +02:00
|
|
|
# Depends on: zlib
|
2006-02-23 16:26:10 +01:00
|
|
|
|
|
|
|
name=binutils
|
2010-06-03 12:08:29 +02:00
|
|
|
version=2.20.1
|
|
|
|
release=1
|
2011-09-01 12:02:22 +02:00
|
|
|
source=(ftp://ftp.gnu.org/gnu/$name/$name-${version}a.tar.bz2)
|
2006-02-23 16:26:10 +01:00
|
|
|
|
|
|
|
build() {
|
2008-10-02 13:53:24 +02:00
|
|
|
sed -i '/^SUBDIRS/s/doc//' $name-$version/bfd/Makefile.in
|
2010-06-03 12:08:29 +02:00
|
|
|
sed -i '/^# RELEASE=y/s/#//' $name-$version/bfd/Makefile.in
|
2006-02-23 16:26:10 +01:00
|
|
|
mkdir build
|
|
|
|
cd build
|
|
|
|
../$name-$version/configure --prefix=/usr \
|
2010-06-03 12:08:29 +02:00
|
|
|
--mandir=/usr/man \
|
2007-08-30 10:05:49 +02:00
|
|
|
--enable-shared \
|
2010-06-03 12:08:29 +02:00
|
|
|
--disable-nls
|
2006-02-23 16:26:10 +01:00
|
|
|
make tooldir=/usr
|
|
|
|
make check
|
|
|
|
make tooldir=/usr DESTDIR=$PKG install
|
2011-09-01 12:02:22 +02:00
|
|
|
install -m 0644 ../$name-$version/include/libiberty.h $PKG/usr/include
|
2010-06-03 12:08:29 +02:00
|
|
|
rm -r $PKG/usr/share
|
2006-02-23 16:26:10 +01:00
|
|
|
sed -i "s|-L$SRC[^ ]* ||g" $PKG/usr/lib/libbfd.la
|
|
|
|
}
|