From 66f63302924f103d0b332f0678e717185ed6cec5 Mon Sep 17 00:00:00 2001 From: Lukc Date: Thu, 23 Dec 2010 23:02:34 +0100 Subject: Recette de binutils mise à jour. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- binutils/Pkgfile | 42 +++++++++++++++++++++++++++--------------- 1 file changed, 27 insertions(+), 15 deletions(-) diff --git a/binutils/Pkgfile b/binutils/Pkgfile index ec9e903..533e6d2 100644 --- a/binutils/Pkgfile +++ b/binutils/Pkgfile @@ -1,24 +1,36 @@ -description="The GNU Binutils are a collection of binary tools" -packager="" -maintainer="CRUX System Team, core-ports at crux dot nu" +description="The GNU Binutils are a collection of binary tools." +packager="CRUX System Team " +maintainer="Lukc " url="http://sources.redhat.com/binutils/" depends=(zlib) name=binutils version=2.20.1 release=1 -source=(ftp://ftp.gnu.org/gnu/binutils/binutils-2.20.1.tar.bz2) +source=(ftp://ftp.gnu.org/gnu/$name/$name-$version.tar.bz2) build () { - 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=/usr --mandir=/usr/man --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 -r $PKG/usr/share; - sed -i "s|-L$SRC[^ ]* ||g" $PKG/usr/lib/libbfd.la + sed -i '/^SUBDIRS/s/doc//' $name-$version/bfd/Makefile.in; + sed -i '/^# RELEASE=y/s/#//' $name-$version/bfd/Makefile.in; + mkdir build; + cd build; + if [[ $CROSS_ARCH ]]; then + info "Building $name for $CROSS_ARCH." + fi + ../$name-$version/configure \ + ${CHOST:+--build=${CHOST}} \ + ${CTARGET:+--host=${CTARGET}} \ + ${CROSS_ARCH:+--target=${CROSS_ARCH}} \ + --prefix=$prefix \ + --mandir=$mandir \ + --enable-shared \ + $(use_enable nls); + make tooldir=$prefix; + make check; + make tooldir=$prefix DESTDIR=$PKG install; + cp ../$name-$version/include/libiberty.h $PKG$prefix/include; + # FIXME + if [[ -e $PKG$prefix/lib/libfd.la ]]; then + sed -i "s|-L$SRC[^ ]* ||g" $PKG$prefix/lib/libbfd.la + fi } -- cgit v1.2.3-54-g00ecf