core/binutils/Pkgfile

43 lines
1.1 KiB
Plaintext
Raw Normal View History

2006-02-23 16:26:10 +01:00
# Description: The GNU Binutils are a collection of binary tools
2021-12-13 12:26:03 +01:00
# URL: http://sources.redhat.com/binutils/
# Maintainer: CRUX System Team, core-ports at crux dot nu
# Depends on: flex zlib
2006-02-23 16:26:10 +01:00
name=binutils
2021-12-11 19:33:57 +01:00
version=2.37
2020-07-25 02:17:35 +02:00
release=1
2021-12-13 12:26:03 +01:00
source=(https://ftpmirror.gnu.org/gnu/$name/$name-$version.tar.xz
2021-12-11 19:33:57 +01:00
binutils-2.37-upstream_fix-1.patch)
2006-02-23 16:26:10 +01:00
build() {
2021-12-11 19:33:57 +01:00
patch -Np1 -d $name-$version -i $SRC/binutils-2.37-upstream_fix-1.patch
# fix empty manpages
sed -i '63d' $name-$version/etc/texi2pod.pl
find -name \*.1 -delete
sed -i '/^SUBDIRS/s/doc//' $name-$version/bfd/Makefile.in
sed -i '/^SUBDIRS/s/doc//' $name-$version/binutils/Makefile.in
mkdir build
cd build
../$name-$version/configure --prefix=/usr \
--enable-shared \
--enable-ld=default \
--enable-gold=yes \
--enable-lto \
--enable-plugins \
--enable-install-libiberty \
--with-system-zlib \
2021-12-13 12:26:03 +01:00
--with-bugurl=https://crux.nu/bugs/ \
--disable-nls \
--disable-werror
2021-12-11 19:33:57 +01:00
make tooldir=/usr
make tooldir=/usr DESTDIR=$PKG install
rm -r $PKG/usr/share/info
sed -i "s|-L$SRC[^ ]* ||g" $PKG/usr/lib/lib{bfd,ctf,ctf-nobfd,opcodes}.la
2006-02-23 16:26:10 +01:00
}