CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
bc: fixed compilation
authorJose V Beneyto <sepen@crux.nu>
Mon, 14 Dec 2009 08:18:51 +0000 (09:18 +0100)
committerJose V Beneyto <sepen@crux.nu>
Mon, 14 Dec 2009 08:18:51 +0000 (09:18 +0100)
bc/Pkgfile

index 9d195a96e1cdc363801053fc3533a99405f5096f..c7e1471f63fef19b0a2b9d6440616b24d15a12ab 100644 (file)
@@ -6,19 +6,22 @@
 
 name=bc
 version=1.06
 
 name=bc
 version=1.06
-release=3
+release=4
 source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.gz \
         $name-$version-compile_fixes.patch $name-$version-fixes-1.patch)
 
 build() { 
   cd $name-$version
 source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.gz \
         $name-$version-compile_fixes.patch $name-$version-fixes-1.patch)
 
 build() { 
   cd $name-$version
-  patch -p1 < ../$name-$version-compile_fixes.patch
-  patch -p1 < ../$name-$version-fixes-1.patch
+
+  patch -p1 -i $SRC/$name-$version-compile_fixes.patch
+  patch -p1 -i $SRC/$name-$version-fixes-1.patch
+  sed '/^_PROTOTYPE/d' -i bc/scan.c
     
   ./configure --build=$CHOST \
               --host=$CTARGET \
     
   ./configure --build=$CHOST \
               --host=$CTARGET \
-              --prefix=/usr --with-readline
-  make
+              --prefix=/usr \
+              --with-readline
+  make AR="$AR"
   make DESTDIR=$PKG install
   rm -rf $PKG/usr/info
 }
   make DESTDIR=$PKG install
   rm -rf $PKG/usr/info
 }