summaryrefslogtreecommitdiffstats
path: root/binutils/Pkgfile
blob: b729d5914aa32d07b9fa2210def97a0a446d2688 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
description="The GNU Binutils are a collection of binary tools"
packager="CRUX System Team, core-ports at crux dot nu"
maintainer="Lukc <lukc AT upyum DOT com>" # FIXME: Don't want to be the 
#+ maintainer of a package I don't understand -- for now. /o\
url="http://sources.redhat.com/binutils/"
depends=(zlib)

name=binutils
version=2.20.1
release=1
source=(ftp://ftp.gnu.org/gnu/$name/$name-$version.tar.bz2)
build () 
{ 
	# This seems to remove the documentation... which is something we don't
	#+ want, for now.
	#sed -i '/^SUBDIRS/s/doc//' $name-$version/bfd/Makefile.in;
	sed -i '/^# RELEASE=y/s/#//' $name-$version/bfd/Makefile.in;
	mkdir build;
	cd build;
	../$name-$version/configure --prefix=$prefix --mandir=$mandir --enable-shared --disable-nls;
	make tooldir=$prefix;
	make check;
	make tooldir=$prefix DESTDIR=$PKG install;
	cp ../$name-$version/include/libiberty.h $PKG/usr/include;
	sed -i "s|-L$SRC[^ ]* ||g" $PKG/usr/lib/libbfd.la
}