2006-02-23 15:26:10 +00:00
|
|
|
|
# Description: The GNU Binutils are a collection of binary tools
|
|
|
|
|
# URL: http://sources.redhat.com/binutils/
|
2006-04-20 20:37:09 +00:00
|
|
|
|
# Maintainer: Per Lid<69>n, core-ports at crux dot nu
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
|
|
name=binutils
|
2006-06-25 09:20:39 +00:00
|
|
|
|
version=2.17
|
2006-02-23 15:26:10 +00:00
|
|
|
|
release=1
|
2006-06-25 09:20:39 +00:00
|
|
|
|
source=(ftp://ftp.gnu.org/gnu/$name/$name-$version.tar.bz2)
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
|
|
build() {
|
|
|
|
|
mkdir build
|
|
|
|
|
cd build
|
|
|
|
|
../$name-$version/configure --prefix=/usr \
|
|
|
|
|
--enable-shared \
|
|
|
|
|
--disable-nls
|
|
|
|
|
make tooldir=/usr
|
|
|
|
|
make check
|
|
|
|
|
make tooldir=/usr DESTDIR=$PKG install
|
|
|
|
|
cp ../$name-$version/include/libiberty.h $PKG/usr/include
|
|
|
|
|
rm -rf $PKG/usr/info
|
|
|
|
|
sed -i "s|-L$SRC[^ ]* ||g" $PKG/usr/lib/libbfd.la
|
|
|
|
|
}
|