PKGBUILDs/core/binutils/PKGBUILD

47 lines
1.6 KiB
Bash
Raw Normal View History

2009-09-26 14:35:50 +00:00
# Maintainer: Alexander Foremny <alexanderforemny@gmail.com>
2009-09-26 14:54:19 +00:00
# Modified by OpenPogo
2009-09-26 14:35:50 +00:00
# toolchain build order: kernel-headers->glibc->binutils->gcc-libs->gcc->binutils->glibc
pkgname=binutils
pkgver=2.19.1
pkgrel=3
_date=20090205
pkgdesc="A set of programs to assemble and manipulate binary and object files"
arch=('arm')
url="http://www.gnu.org/software/binutils/"
license=('GPL')
groups=('base-devel')
options=('!libtool' '!distcc' '!ccache')
2009-09-26 14:54:19 +00:00
depends=('texinfo>=4.13a-3')
2009-09-26 14:35:50 +00:00
source=(ftp://ftp.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}_${_date}.tar.bz2)
md5sums=('8fd8a7082814124917289eba9f2b46f1')
build() {
mkdir -p $srcdir/binutils-build
cd $srcdir/binutils-build
CC="gcc -L`pwd`/bfd/.libs/"
2009-09-26 14:54:19 +00:00
../configure --prefix=/opt \
--mandir=/opt/share/man --infodir=/opt/share/info \
2009-09-26 14:35:50 +00:00
--enable-shared || return 1
# fix man files install path
2009-09-26 14:54:19 +00:00
sed -i -e "s:mandir \= \/opt\/share:mandir \= ${pkgdir}\/opt\/share:" ${srcdir}/binutils-build/Makefile || return 1
2009-09-26 14:35:50 +00:00
# fix info files install path
2009-09-26 14:54:19 +00:00
sed -i -e "s:infodir \= \/opt\/share:infodir \= ${pkgdir}\/opt\/share:" ${srcdir}/binutils-build/Makefile || return 1
2009-09-26 14:35:50 +00:00
# This checks the host environment and makes sure all the necessary tools are available to compile Binutils.
make configure-host || return 1
2009-09-26 14:54:19 +00:00
make tooldir=${startdir}/pkg/opt || return 1
make prefix=${startdir}/pkg/opt tooldir=${startdir}/pkg/opt install
2009-09-26 14:35:50 +00:00
2009-09-26 14:54:19 +00:00
install -m 644 ../include/libiberty.h ${startdir}/pkg/opt/include
2009-09-26 14:35:50 +00:00
# Remove these symlinks, with binutils prereleases they are not ABI stable.
# Programs should compile static to the .a file.
2009-09-26 14:54:19 +00:00
rm -f ${startdir}/pkg/opt/lib/lib{bfd,opcodes}.so
2009-09-26 14:35:50 +00:00
}