CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
iproute2: deleted port
[crossrootfs.git] / binutils / Pkgfile
index 4296273839f204324c8ebf969d21b5714671de4f..3e828c5d64ad9db3d236a0f5d807dd0f5c1772c7 100644 (file)
@@ -5,16 +5,14 @@
 # Depends on:
 
 name=binutils
-version=2.19.1
+version=2.22
 release=1
-source=(ftp://ftp.gnu.org/gnu/$name/$name-$version.tar.bz2 \
-        $name-$version-branch_update-5.patch)
+source=(ftp://ftp.gnu.org/gnu/$name/$name-$version.tar.bz2)
 
 build() {
-  cd $name-$version
-  patch -p1 -i $SRC/$name-$version-branch_update-5.patch
-  sed -i '/^SUBDIRS/s/doc//' bfd/Makefile.in
-
+  sed -i '/^SUBDIRS/s/doc//' $name-$version/bfd/Makefile.in
+  sed -i '/^# RELEASE=y/s/#//' $name-$version/bfd/Makefile.in
+  sed -i 's|really-check: check-cplus-dem check-pexecute check-expandargv|really-check:|g' -i $name-$version/libiberty/testsuite/Makefile.in
   mkdir $SRC/build
   cd $SRC/build
 
@@ -22,16 +20,17 @@ build() {
   $SRC/$name-$version/configure --build=$CHOST \
                                 --host=$CTARGET \
                                 --target=$CTARGET \
-                                --without-multilib \
                                 --prefix=/usr \
-                                --disable-shared \
+                                --mandir=/usr/man \
+                                --enable-shared \
                                 --disable-nls
 
   make configure-host
   make tooldir=/usr
+  make check
   make tooldir=/usr DESTDIR=$PKG install
   
   cp ../$name-$version/include/libiberty.h $PKG/usr/include
-  rm -rf $PKG/usr/info
+  rm -r $PKG/usr/share
   sed -i "s|-L$SRC[^ ]* ||g" $PKG/usr/lib/libbfd.la
 }