[83578] trunk/dports/lang/gcc46/Portfile
mww at macports.org
mww at macports.org
Tue Sep 6 00:41:14 PDT 2011
Revision: 83578
http://trac.macports.org/changeset/83578
Author: mww at macports.org
Date: 2011-09-06 00:41:11 -0700 (Tue, 06 Sep 2011)
Log Message:
-----------
version 4.6.1
Modified Paths:
--------------
trunk/dports/lang/gcc46/Portfile
Modified: trunk/dports/lang/gcc46/Portfile
===================================================================
--- trunk/dports/lang/gcc46/Portfile 2011-09-06 06:38:11 UTC (rev 83577)
+++ trunk/dports/lang/gcc46/Portfile 2011-09-06 07:41:11 UTC (rev 83578)
@@ -1,59 +1,37 @@
-# $Id$
+#a $Id$
PortSystem 1.0
PortGroup select 1.0
name gcc46
-version 4.6-20110325
-revision 1
+version 4.6.1
platforms darwin
categories lang
maintainers mww openmaintainer
license GPL-3
-description The GNU compiler collection, prerelease BETA
+description The GNU compiler collection
long_description The GNU compiler collection, including front ends for \
- C, C++, Objective-C and Objective-C++. This is a \
- prerelease BETA version and does not have all \
- available language front ends enabled.
+ C, C++, Objective-C, Objective-C++ and Fortran.
homepage http://gcc.gnu.org/
-master_sites ftp://ftp.gwdg.de/pub/linux/gcc/snapshots/${version}/:gcc \
- ftp://ftp.funet.fi/pub/mirrors/sources.redhat.com/pub/gcc/snapshots/${version}/:gcc \
- ftp://gcc.gnu.org/pub/gcc/snapshots/${version}/:gcc \
+master_sites ftp://ftp.funet.fi/pub/mirrors/sources.redhat.com/pub/gcc/releases/gcc-${version}/:gcc \
+ ftp://ftp.gwdg.de/pub/linux/gcc/releases/gcc-${version}/:gcc \
+ ftp://gcc.ftp.nluug.nl/mirror/languages/gcc/releases/gcc-${version}/:gcc \
+ ftp://gcc.gnu.org/pub/gcc/releases/gcc-${version}/:gcc \
+ gnu:/gcc/gcc-${version}:gcc \
ftp://sourceware.org/pub/java/:ecj \
http://mirrors.kernel.org/sources.redhat.com/java/:ecj \
http://www.mirrorservice.org/sites/sources.redhat.com/pub/java/:ecj \
http://ftp-stud.fht-esslingen.de/pub/Mirrors/sourceware.org/java/:ecj
-set dcore gcc-core-${version}.tar.bz2
-set dfort gcc-fortran-${version}.tar.bz2
-set dcxx gcc-g++-${version}.tar.bz2
-set djava gcc-java-${version}.tar.bz2
-set dobjc gcc-objc-${version}.tar.bz2
set ecj ecj-4.5.jar
-distfiles ${dcore}:gcc ${dfort}:gcc ${dcxx}:gcc ${djava}:gcc ${dobjc}:gcc ${ecj}:ecj
-extract.only ${dcore} ${dfort} ${dcxx} ${djava} ${dobjc}
+set gcc gcc-${version}.tar.bz2
+distfiles ${gcc}:gcc ${ecj}:ejc
+extract.only ${gcc}
-checksums gcc-core-${version}.tar.bz2 \
- md5 248d44becf2a44003c6418b34790e991 \
- sha1 44d90a72938dae3f030e0d9add80d3bc5611c035 \
- rmd160 185b83d1f7d9fadf2467558c4f7e61265484ab0a \
- gcc-fortran-${version}.tar.bz2 \
- md5 54d8384ca06094fd22f7916cceef6c2a \
- sha1 b23551b2733cd7cec32fc99fb1543176102cc064 \
- rmd160 52392d790deb828ee9564ccd1e5bb56093a6f1a8 \
- gcc-g++-${version}.tar.bz2 \
- md5 ccf12496a86e8be199f0df921ebda353 \
- sha1 c7b2e57bc00f00abf7de6260a9c291255fc3819a \
- rmd160 54426dd2c2d9da2420a8810eef661af59387de82 \
- gcc-java-${version}.tar.bz2 \
- md5 847c0a3d625e1b8ef3deb002d80210d9 \
- sha1 200182e4c46acd50480eba3f93ec0ae641d70a18 \
- rmd160 41fdbe02af2e5b6d203b0043acba54f23e67e488 \
- gcc-objc-${version}.tar.bz2 \
- md5 7ab165c510808682773d68272f266375 \
- sha1 64a9f4faa6346087d21cecaba159900e5fd58307 \
- rmd160 afef759e65f3f9a7ace1164b15fa7fdf21cdf245 \
+checksums gcc-4.6.1.tar.bz2 \
+ rmd160 e12a50dc951b02c62916acfbb181c00cae176fd0 \
+ sha256 8eebf51c908151d1f1a3756c8899c5e71572e8469a547ad72a1ef16a08a31b59 \
ecj-4.5.jar \
md5 d7cd6a27c8801e66cbaa964a039ecfdb \
sha1 58c1d79c64c8cd718550f32a932ccfde8d1e6449 \
@@ -61,7 +39,7 @@
use_bzip2 yes
-depends_lib port:gmp port:mpfr port:libiconv port:libmpc
+depends_lib port:gmp port:mpfr port:libiconv port:libmpc port:ppl
depends_run port:gcc_select
set major 4.6
@@ -83,13 +61,15 @@
}
configure.cmd ../gcc-${version}/configure
-configure.args --enable-languages=c,c++,objc,obj-c++ \
+# 'java' and 'go' lead to compilation errors on 10.5/XCode 3.x
+configure.args --enable-languages=c,c++,objc,obj-c++,lto,fortran \
--libdir=${prefix}/lib/${name} \
--includedir=${prefix}/include/${name} \
--infodir=${prefix}/share/info \
--mandir=${prefix}/share/man \
--datarootdir=${prefix}/share/gcc-${major} \
--with-local-prefix=${prefix} \
+ --with-libiconv-prefix=${prefix} \
--with-system-zlib \
--disable-nls \
--program-suffix=-mp-${major} \
@@ -97,6 +77,7 @@
--with-gmp=${prefix} \
--with-mpfr=${prefix} \
--with-mpc=${prefix} \
+ --with-ppl=${prefix} \
--enable-stage1-checking \
--disable-multilib
# do NOT use MacPorts binutils -- they do not work
@@ -106,7 +87,9 @@
NM_FOR_TARGET=/usr/bin/nm \
OBJDUMP_FOR_TARGET=/usr/bin/objdump \
RANLIB_FOR_TARGET=/usr/bin/ranlib \
- STRIP_FOR_TARGET=/usr/bin/strip
+ STRIP_FOR_TARGET=/usr/bin/strip \
+ OTOOL=/usr/bin/otool \
+ OTOOL64=/usr/bin/otool
# http://trac.macports.org/ticket/29104
if {${configure.compiler} == "llvm-gcc-4.2"} {
@@ -130,6 +113,10 @@
select.group gcc
select.file ${filespath}/mp-${name}
+platform darwin 8 {
+ # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45248
+ configure.args-append --with-dwarf2
+}
platform darwin 10 {
configure.args-append --enable-fully-dynamic-string
}
@@ -138,26 +125,6 @@
configure.args-append --enable-fully-dynamic-string
}
-# due to popular request - untested for the BETA; will be removed as soon as other languages than C compile successfuly
-variant gfortran conflicts java \
- description "Enables Fortran/gfortran; this language will be enabled in the final version - this variant is completely untested!" {
- configure.args-delete --enable-languages=c,c++,objc,obj-c++
- configure.args-append --enable-languages=c,c++,objc,obj-c++,fortran
-}
-
-# due to popular request - untested for the BETA; will be removed as soon as other languages than C compile successfuly
-variant java conflicts gfortran \
- description "Enables Java/gcj; this language will be enabled in the final version - this variant is completely untested!" {
- configure.args-delete --enable-languages=c,c++,objc,obj-c++
- configure.args-append --enable-languages=c,c++,objc,obj-c++,java
- post-destroot {
- file rename ${destroot}${prefix}/share/python/aotcompile.py \
- ${destroot}${prefix}/share/python/aotcompile-46.py
- file rename ${destroot}${prefix}/share/python/classfile.py \
- ${destroot}${prefix}/share/python/classfile-46.py
- }
-}
-
platform powerpc {
configure.universal_archs ppc ppc64
}
@@ -172,6 +139,6 @@
configure.args-delete --disable-multilib
}
-livecheck.type regex
-livecheck.url ftp://gcc.gnu.org/pub/gcc/snapshots/
-livecheck.regex LATEST-4.6 -> (4.6-\[0-9\]+)
+livecheck.type regex
+livecheck.url http://gcc.gnu.org/gcc-4.5/
+livecheck.regex GCC (4\\.6\\.\[0-9\])
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110906/2d219ae8/attachment-0001.html>
More information about the macports-changes
mailing list