[41443] trunk/dports/cross/i386-elf-gcc/Portfile

pguyot at kallisys.net pguyot at kallisys.net
Mon Nov 3 03:59:35 PST 2008


Revision: 41443
          http://trac.macports.org/changeset/41443
Author:   pguyot at kallisys.net
Date:     2008-11-03 03:59:33 -0800 (Mon, 03 Nov 2008)
Log Message:
-----------
Update to 4.3.2, fixes #15113 and #16487

Modified Paths:
--------------
    trunk/dports/cross/i386-elf-gcc/Portfile

Modified: trunk/dports/cross/i386-elf-gcc/Portfile
===================================================================
--- trunk/dports/cross/i386-elf-gcc/Portfile	2008-11-03 11:02:29 UTC (rev 41442)
+++ trunk/dports/cross/i386-elf-gcc/Portfile	2008-11-03 11:59:33 UTC (rev 41443)
@@ -2,12 +2,12 @@
 
 PortSystem			1.0
 name            	i386-elf-gcc
-version         	3.4.6
+version         	4.3.2
 
 # Parameters for this port.
-set newlibversion	1.15.0
+set newlibversion	1.16.0
 set crossgcc-target i386-elf
-set default-languages --enable-languages="c,c++,f77,objc"
+set default-languages --enable-languages="c,c++,objc"
 
 description     	gcc cross-compilers for i386-elf, with newlib runtime library.
 long_description	gnu compilers collection (including c++, fortran and objc) for \
@@ -15,20 +15,20 @@
 homepage			http://gcc.gnu.org/
 platforms       	darwin
 categories      	cross devel
-maintainers     	pguyot at kallisys.net
+maintainers     	stepan at coresystems.de pguyot at kallisys.net openmaintainer
 master_sites		gnu:gcc/gcc-${version}/:gcc \
 					ftp://sources.redhat.com/pub/newlib/:newlib \
 					ftp://ftp.mirror.ac.uk/sites/sources.redhat.com/pub/newlib/:newlib
 distfiles			gcc-${version}.tar.bz2:gcc newlib-${newlibversion}.tar.gz:newlib
 worksrcdir			gcc-${version}
 checksums			gcc-${version}.tar.bz2 \
-						md5 4a21ac777d4b5617283ce488b808da7b \
-						sha1 97b290fdc572c8e490b3b39f243e69bacad23c2b \
-						rmd160 b15003368cedc7964f6ceaee0c39ddc43a46c442 \
+                    md5     5dfac5da961ecd5f227c3175859a486d \
+                    sha1    787b566ad4f386a9896e2d5703e6ff5e7ccaca58 \
+                    rmd160  0ced28bd2e0d89f081cf88273b5f1530599b52fb \
 					newlib-${newlibversion}.tar.gz \
-						md5 4020004b1b7a56ca4cf7f6d35b40a4cb \
-						sha1 f6860b36e48fb831a30bab491230bbc7ce2669a2 \
-						rmd160 e57cbb5b3f007ec26a4ec62f5652e23523357001
+                    md5     bf8f1f9e3ca83d732c00a79a6ef29bc4 \
+                    sha1    841edec33d19a9e549984982fb92445ee967e265 \
+                    rmd160  fa40ff43e858da3093c9f3b5b203724b9b327696
 patchfiles			patch-gcc-Makefile.in
 
 # All cross ports violate the mtree layout.
@@ -37,12 +37,10 @@
 # Download everything to gcc/
 dist_subdir			gcc
 
-depends_lib			bin:${crossgcc-target}-ar:${crossgcc-target}-binutils \
-					bin:${crossgcc-target}-as:${crossgcc-target}-binutils \
-					bin:${crossgcc-target}-ld:${crossgcc-target}-binutils \
-					bin:${crossgcc-target}-nm:${crossgcc-target}-binutils \
-					bin:${crossgcc-target}-ranlib:${crossgcc-target}-binutils
-depends_build		bin:msgfmt:gettext
+depends_lib			port:${crossgcc-target}-binutils \
+                    port:gmp \
+                    port:mpfr \
+                    port:gettext
 
 # gcc is .bz2, newlib is .gz.
 # let's extract only gcc with DP infrastructure, we'll do newlib manually.
@@ -73,17 +71,17 @@
 }
 configure.dir   ${workpath}/build
 configure.cmd   ${workpath}/gcc-${version}/configure
-configure.cc    "cc -no-cpp-precomp"
+configure.cc    "cc -no-cpp-precomp -I${prefix}/include"
 configure.env	${environment}
 configure.args  --infodir='${prefix}/share/info' \
 				--mandir='${prefix}/share/man' \
 				--target=${crossgcc-target} \
 				--program-prefix=${crossgcc-target}- \
 				--program-suffix=-${version} \
-				--with-included-gettext \
+				--without-included-gettext \
 				--enable-obsolete \
 				--with-newlib \
-				--enable-multilib \
+				--disable-libgfortran \
 				--with-gxx-include-dir=${prefix}/${crossgcc-target}/include/c++/${version}/ \
 				${default-languages}
 
@@ -92,14 +90,6 @@
 build.args		${environment}
 destroot.args	${environment}
 
-# Variant to include java tools.
-# I'm not exactly sure what the interest of this variant is except to measure
-# the speed of your Xserve G5 farm. Or your patience if you don't have such
-# a farm.
-variant java {
-	configure.args-delete ${default-languages}
-}
-
 post-patch {
 	namespace eval crossgcc {}
 
@@ -159,15 +149,13 @@
 		if { [ file exists "${worksrcpath}/${module}/Makefile.in" ] } {
 			reinplace "s|@PACKAGE@|${crossgcc-target}- at PACKAGE@|g" \
 				"${worksrcpath}/${module}/Makefile.in"
+			reinplace "s|${module}\.mo|${crossgcc-target}-${module}.mo|g" \
+				"${worksrcpath}/${module}/Makefile.in"
 		}
 		if { [ file exists "${worksrcpath}/${module}/doc/Makefile.in" ] } {
 			reinplace "s|@PACKAGE@|${crossgcc-target}- at PACKAGE@|g" \
 				"${worksrcpath}/${module}/doc/Makefile.in"
 		}
-		if { [ file exists "${worksrcpath}/${module}/po/Make-in" ] } {
-			reinplace "s|@PACKAGE@|${crossgcc-target}- at PACKAGE@|g" \
-				"${worksrcpath}/${module}/po/Make-in"
-		}
 	}
 
 	# gcc/doc/cpp.texi
@@ -182,21 +170,18 @@
 	# gcc/doc/gccint.texi
 	crossgcc::fixinfo gcc/doc/ gcc/Makefile.in gccint texi
 
-	# gcc/f/g77.texi
-	crossgcc::fixinfo gcc/f/ gcc/f/Make-lang.in g77 texi
+	# gcc/fortran/gfortran.texi
+	crossgcc::fixinfo gcc/fortran/ gcc/fortran/Make-lang.in gfortran texi
 
 	# gcc/java/gcj.texi
 	crossgcc::fixinfo gcc/java/ gcc/java/Make-lang.in gcj texi
 
-	# fastjar/fastjar.texi
-	crossgcc::fixinfo fastjar/ fastjar/Makefile.in fastjar texi
-	
 	# gcc/doc/gccinstall.info
 	crossgcc::fixinfo gcc/doc/ gcc/Makefile.in gccinstall info
 
 	# gettext stuff.
 	crossgcc::fixgettext gcc
-	crossgcc::fixgettext fastjar
+	crossgcc::fixgettext libcpp
 }
 
 pre-destroot {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20081103/a35114f9/attachment-0001.html>


More information about the macports-changes mailing list