core/binutils/Pkgfile

33 lines
1.0 KiB
Plaintext
Raw Normal View History

2006-02-23 16:26:10 +01:00
# Description: The GNU Binutils are a collection of binary tools
# URL: http://sources.redhat.com/binutils/
# Maintainer: CRUX System Team, core-ports at crux dot nu
# Depends on: zlib flex
2006-02-23 16:26:10 +01:00
name=binutils
2018-01-05 23:21:14 +01:00
version=2.29.1
2016-06-16 11:35:40 +02:00
release=1
2018-01-05 23:21:14 +01:00
source=(http://ftpmirror.gnu.org/gnu/$name/$name-$version.tar.xz)
2006-02-23 16:26:10 +01:00
build() {
2013-04-05 12:08:09 +02:00
sed -i '/^SUBDIRS/s/doc//' $name-$version/bfd/Makefile.in
2006-02-23 16:26:10 +01:00
mkdir build
cd build
2006-02-23 16:26:10 +01:00
../$name-$version/configure --prefix=/usr \
2007-08-30 10:05:49 +02:00
--enable-shared \
--disable-nls \
--enable-ld=default \
--enable-gold=yes \
--enable-plugins \
2016-04-06 17:52:11 +02:00
--enable-install-libiberty \
--disable-werror
2006-02-23 16:26:10 +01:00
make tooldir=/usr
make tooldir=/usr DESTDIR=$PKG install
rm -r $PKG/usr/share/info
2015-08-04 13:23:58 +02:00
rm $PKG/usr/share/man/man1/{dlltool,nlmconv,windres,windmc}.1
sed -i "s|-L$SRC[^ ]* ||g" $PKG/usr/lib/lib{bfd,opcodes}.la
2006-02-23 16:26:10 +01:00
}