CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
shadow: updated to 4.1.5.1
[crossrootfs.git] / gcc / Pkgfile
index b5d40096799da73980d8a8fa4d6a235ec365a3dd..ebd4e7b03bcdbbb9336648425a0b64e6f6b47d42 100644 (file)
@@ -2,12 +2,12 @@
 # URL: http://gcc.gnu.org
 # Maintainer: CRUX System Team, core-ports at crux dot nu
 # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
-# Depends on: libgmp libmpfr
+# Depends on: zlib libmpc
 
 name=gcc
-version=4.5.2
+version=4.7.2
 release=1
-source=(ftp://sources.redhat.com/pub/gcc/releases/$name-$version/$name-{core,g++}-$version.tar.bz2
+source=(ftp://gcc.gnu.org/pub/gcc/releases/$name-$version/$name-$version.tar.bz2
         $name-nocheck-fixincludes.patch)
 
 
@@ -15,11 +15,9 @@ build() {
   cd $name-$version
   
   patch -p1 -i $SRC/$name-nocheck-fixincludes.patch
-  sed -i 's|REVISION|REVISION " (CRUX)"|' $name/version.c
+  sed -i 's|REVISION|REVISION " (CRUX-ARM)"|' $name/version.c
   # apply a sed substitutio that will suppress the installation of libiberty.a
   sed 's|install_to_$(INSTALL_DEST) ||' -i libiberty/Makefile.in
-  # avoid hardcodeds
-  sed 's|@have_mktemp_command@|yes|' -i gcc/gccbug.in
 
   mkdir $SRC/build
   cd $SRC/build
@@ -40,7 +38,7 @@ build() {
                               --disable-nls \
                               --with-x=no \
                               --with-system-zlib \
-                              --with-pkgversion="CRUX"
+                              --with-pkgversion="CRUX-ARM"
 
   # prevent GCC from looking in the wrong directories for headers and libraries
   sed "/^HOST_\(GMP\|PPL\|CLOOG\)\(LIBS\|INC\)/s:-[IL]/\(lib\|include\)::" -i Makefile
@@ -55,7 +53,7 @@ build() {
 
   mv $PKG/usr/lib/gcc/*/$version/include-fixed/{limits.h,syslimits.h} $PKG/usr/lib/gcc/*/$version/include/
 
-  rm $PKG/usr/lib/libstdc++.so.6.0.14-gdb.py
+  rm $PKG/usr/lib/libstdc++.so.6.0.17-gdb.py
   rm -r $PKG/usr/share
   rm -r $PKG/usr/lib/gcc/*/$version/{install-tools,include-fixed}