Revision: 80127 http://trac.macports.org/changeset/80127 Author: jeremyhu@macports.org Date: 2011-07-04 17:39:43 -0700 (Mon, 04 Jul 2011) Log Message: ----------- apple-gcc40: Updated to version 5493 Modified Paths: -------------- trunk/dports/lang/apple-gcc40/Portfile Modified: trunk/dports/lang/apple-gcc40/Portfile =================================================================== --- trunk/dports/lang/apple-gcc40/Portfile 2011-07-05 00:23:08 UTC (rev 80126) +++ trunk/dports/lang/apple-gcc40/Portfile 2011-07-05 00:39:43 UTC (rev 80127) @@ -3,7 +3,7 @@ PortSystem 1.0 name apple-gcc40 -version 5465 +version 5493 categories lang platforms darwin maintainers nomaintainer @@ -11,10 +11,12 @@ long_description Apple's version of the GNU compiler collection, \ version 4.0. Supports C and Objective-C only. -homepage http://developer.apple.com/documentation/DeveloperTools/gcc-4.0/gcc/ -master_sites http://www.opensource.apple.com/darwinsource/tarballs/other/ +homepage http://opensource.apple.com/ +master_sites http://opensource.apple.com/tarballs/gcc distname gcc-${version} -checksums sha1 7452d5a5a8f8b125cf2ab31781c78da9b6d84bbe +checksums md5 66651c04639a222434f21e62f4cf0419 \ + sha1 e3b1f67ff250730f5b4ee9674a1970aa7d9db399 \ + rmd160 3566d6e5c74bdb442cfb6b20450c2b2137ef0627 post-extract { file mkdir ${workpath}/build } @@ -40,12 +42,20 @@ destroot.dir ${build.dir} +# STAGE1_CFLAGS="-O2 -fkeep-inline-functions" : from configure.ac +# BOOT_CFLAGS="-O2 -g" : from Makefile.tpl +# -std=gnu89 : for building with compilers that default to c99 (clang) +# -D_FORTIFY_SOURCE=0 : The built compiler might not understand newer builtins +# exposed in libc headers for fortified string functions. +# Yes, we need to set both BOOT_CFLAGS and STAGE1_CFLAGS +# because STAGE1_CFLAGS is used with xgcc for libgcc +build.args-append BOOT_CFLAGS="-O2 -g -D_FORTIFY_SOURCE=0" STAGE1_CFLAGS="-O2 -fkeep-inline-functions -D_FORTIFY_SOURCE=0 -std=gnu89" + post-destroot { file delete -force \ ${destroot}${nprefix}/man ${destroot}${nprefix}/info system "cd ${destroot}${prefix}/bin && ln -sf ${nprefix}/bin/gcc-apple-4.0 && ln -sf ${nprefix}/bin/cpp-apple-4.0" } -livecheck.type moddate -livecheck.url ${master_sites} - +# It's difficult to distinguish between Apple's gcc-4.0 and gcc-4.2 releases +livecheck.type none