[92418] trunk/dports/lang
jeremyhu at macports.org
jeremyhu at macports.org
Fri Apr 27 22:01:58 PDT 2012
Revision: 92418
https://trac.macports.org/changeset/92418
Author: jeremyhu at macports.org
Date: 2012-04-27 22:01:57 -0700 (Fri, 27 Apr 2012)
Log Message:
-----------
gcc[345678]: Adjust formatting to make diffing easier to read. I also added MacPorts branding to the --version but didn't feel it was worth a revbump for
Modified Paths:
--------------
trunk/dports/lang/gcc43/Portfile
trunk/dports/lang/gcc44/Portfile
trunk/dports/lang/gcc45/Portfile
trunk/dports/lang/gcc46/Portfile
trunk/dports/lang/gcc47/Portfile
trunk/dports/lang/gcc48/Portfile
Modified: trunk/dports/lang/gcc43/Portfile
===================================================================
--- trunk/dports/lang/gcc43/Portfile 2012-04-28 04:53:24 UTC (rev 92417)
+++ trunk/dports/lang/gcc43/Portfile 2012-04-28 05:01:57 UTC (rev 92418)
@@ -1,35 +1,37 @@
-# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id$
PortSystem 1.0
PortGroup select 1.0
-name gcc43
-version 4.3.6
-revision 2
-platforms darwin
-categories lang
-maintainers mww openmaintainer
+name gcc43
+version 4.3.6
+revision 3
+platforms darwin
+categories lang
+maintainers mww openmaintainer
# an exception in the license allows dependents to not be GPL
-license {GPL-3+ GPL-2+ Permissive}
-description The GNU compiler collection
-long_description The GNU compiler collection, including front ends for \
- C, C++, Objective-C, Objective-C++, Java and Fortran95.
+license {GPL-3+ GPL-2+ Permissive}
+description The GNU compiler collection
+long_description The GNU compiler collection, including front ends for \
+ C, C++, Objective-C, Objective-C++, Fortran, and Java.
-homepage http://gcc.gnu.org/
-master_sites ftp://ftp.funet.fi/pub/mirrors/sources.redhat.com/pub/gcc/releases/gcc-${version}/ \
- ftp://ftp.gwdg.de/pub/linux/gcc/releases/gcc-${version}/ \
- ftp://gcc.ftp.nluug.nl/mirror/languages/gcc/releases/gcc-${version}/ \
- ftp://gcc.gnu.org/pub/gcc/releases/gcc-${version}/ \
- gnu:gcc/gcc-${version}
+homepage http://gcc.gnu.org/
+master_sites ftp://ftp.funet.fi/pub/mirrors/sources.redhat.com/pub/gcc/releases/gcc-${version}/ \
+ ftp://ftp.gwdg.de/pub/linux/gcc/releases/gcc-${version}/ \
+ ftp://gcc.ftp.nluug.nl/mirror/languages/gcc/releases/gcc-${version}/ \
+ ftp://gcc.gnu.org/pub/gcc/releases/gcc-${version}/ \
+ gnu:gcc/gcc-${version}
-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
-distfiles ${dcore} ${dfort} ${dcxx} ${djava} ${dobjc}
+use_bzip2 yes
+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
+
+distfiles ${dcore} ${dfort} ${dcxx} ${djava} ${dobjc}
+
checksums gcc-core-${version}.tar.bz2 \
md5 43df9ad8b4bb314a46bac12f5aefaec2 \
sha1 d9dc274ad558194e7d9bacc49c333a4870d7e613 \
@@ -51,19 +53,17 @@
sha1 437833d7211118f8647941c1a78531ec125f97c2 \
rmd160 cde38f66b4b952f52938dc50d7606a0e1ccc7d2f
-use_bzip2 yes
+depends_lib port:gmp port:mpfr port:libiconv
+depends_run port:gcc_select port:ld64 port:cctools
-depends_lib port:gmp port:mpfr port:libiconv
-depends_run port:gcc_select port:ld64 port:cctools
-
depends_skip_archcheck-append gcc_select ld64 cctools
-patchfiles Make-lang.in.diff darwin10.diff i386_multilib.diff
-patch.dir ${workpath}/gcc-${version}
+patchfiles Make-lang.in.diff darwin10.diff i386_multilib.diff
+patch.dir ${workpath}/gcc-${version}
-set major 4.3
+set major 4.3
-worksrcdir build
+worksrcdir build
post-extract {
file mkdir ${worksrcpath}
@@ -73,34 +73,43 @@
configure.pre_args-append --build=${build_arch}-apple-darwin${os.major}
}
-configure.cmd ../gcc-${version}/configure
-configure.args --enable-languages=c,c++,objc,obj-c++,java,fortran \
- --libdir=${prefix}/lib/${name} \
- --includedir=${prefix}/include/${name} \
- --infodir=${prefix}/share/info \
- --mandir=${prefix}/share/man \
- --datadir=${prefix}/share/${name} \
- --with-local-prefix=${prefix} \
- --with-system-zlib \
- --disable-nls \
- --program-suffix=-mp-${major} \
- --with-gxx-include-dir=${prefix}/include/${name}/c++/ \
- --with-gmp=${prefix} \
- --with-mpfr=${prefix} \
- --disable-multilib \
- --with-as=${prefix}/bin/as \
- --with-ld=${prefix}/bin/ld \
- --with-ar=${prefix}/bin/ar
+configure.cmd ../gcc-${version}/configure
+configure.args --enable-languages=c,c++,objc,obj-c++,java,fortran \
+ --libdir=${prefix}/lib/${name} \
+ --includedir=${prefix}/include/${name} \
+ --infodir=${prefix}/share/info \
+ --mandir=${prefix}/share/man \
+ --datadir=${prefix}/share/${name} \
+ --with-local-prefix=${prefix} \
+ --with-libiconv-prefix=${prefix} \
+ --with-system-zlib \
+ --disable-nls \
+ --program-suffix=-mp-${major} \
+ --with-gxx-include-dir=${prefix}/include/${name}/c++/ \
+ --with-gmp=${prefix} \
+ --with-mpfr=${prefix} \
+ --enable-stage1-checking \
+ --disable-multilib \
+ --with-as=${prefix}/bin/as \
+ --with-ld=${prefix}/bin/ld \
+ --with-ar=${prefix}/bin/ar \
+ --with-bugurl=https://trac.macports.org/newticket
configure.env-append \
- AR_FOR_TARGET=${prefix}/bin/ar \
- AS_FOR_TARGET=${prefix}/bin/as \
- LD_FOR_TARGET=${prefix}/bin/ld \
- NM_FOR_TARGET=${prefix}/bin/nm \
- OBJDUMP_FOR_TARGET=${prefix}/bin/objdump \
- RANLIB_FOR_TARGET=${prefix}/bin/ranlib \
- STRIP_FOR_TARGET=${prefix}/bin/strip
+ AR_FOR_TARGET=${prefix}/bin/ar \
+ AS_FOR_TARGET=${prefix}/bin/as \
+ LD_FOR_TARGET=${prefix}/bin/ld \
+ NM_FOR_TARGET=${prefix}/bin/nm \
+ OBJDUMP_FOR_TARGET=${prefix}/bin/objdump \
+ RANLIB_FOR_TARGET=${prefix}/bin/ranlib \
+ STRIP_FOR_TARGET=${prefix}/bin/strip \
+ OTOOL=${prefix}/bin/otool \
+ OTOOL64=${prefix}/bin/otool
+pre-configure {
+ configure.args-append --with-pkgversion="MacPorts ${name} ${version}_${revision}${portvariants}"
+}
+
# http://trac.macports.org/ticket/29104
if {${configure.compiler} == "llvm-gcc-4.2"} {
configure.compiler clang
@@ -108,52 +117,33 @@
# 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
+# -std=gnu89 : for building with 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
-if {${configure.compiler} == "clang"} {
- # -O1 in STAGE1_CFLAGS : <rdar://problem/9720596>, fixed in llvm trunk r134428
- build.args-append BOOT_CFLAGS="-O2 -g -D_FORTIFY_SOURCE=0" STAGE1_CFLAGS="-O1 -fkeep-inline-functions -D_FORTIFY_SOURCE=0 -std=gnu89"
-} else {
- build.args-append BOOT_CFLAGS="-O2 -g -D_FORTIFY_SOURCE=0" STAGE1_CFLAGS="-O2 -fkeep-inline-functions -D_FORTIFY_SOURCE=0 -std=gnu89"
-}
-
+build.args-append BOOT_CFLAGS="-O2 -g -D_FORTIFY_SOURCE=0" STAGE1_CFLAGS="-O2 -fkeep-inline-functions -D_FORTIFY_SOURCE=0 -std=gnu89"
+build.target bootstrap
use_parallel_build yes
-destroot.target install install-info-host
-# install-info # errors on objc-info files
+destroot.target install install-info-host
post-destroot {
- # move manuals to gcc43-specific directory
- xinstall -m 755 -d ${destroot}${prefix}/share/gcc43/man/man7
- xinstall -m 755 -d ${destroot}${prefix}/share/gcc43/info
- eval xinstall -m 0644 [glob ${destroot}${prefix}/share/man/man7/*] ${destroot}${prefix}/share/gcc43/man/man7
- eval xinstall -m 0644 [glob ${destroot}${prefix}/share/info/*] ${destroot}${prefix}/share/gcc43/info
+ file delete -force ${destroot}${prefix}/share/man/man7 \
+ ${destroot}${prefix}/share/info
# install/copy ffitarget.h only if we have it
if {![catch {set ffitarget.h [glob ${destroot}${prefix}/lib/${name}/gcc/*/${version}/include/ffitarget.h]} result]} {
file copy ${ffitarget.h} ${destroot}${prefix}/include/${name}/
}
-
- foreach file {cpp cppinternals gcc gccinstall gccint gfortran libgomp} {
- system -W ${destroot}${prefix}/share/info "mv ${file}.info ${file}-${major}.info"
- }
-
- if {${os.major} != 8 || ${build_arch} != "i386"} {
- foreach file {cp-tools gcj} {
- system -W ${destroot}${prefix}/share/info "mv ${file}.info ${file}-${major}.info"
- }
- }
}
-select.group gcc
-select.file ${filespath}/mp-${name}
+select.group gcc
+select.file ${filespath}/mp-${name}
# Java support does not compile on 10.4/x86
platform darwin 8 i386 {
- configure.args-delete --enable-languages=c,c++,objc,obj-c++,java,fortran
- configure.args-append --enable-languages=c,c++,objc,obj-c++,fortran
+ configure.args-delete --enable-languages=c,c++,objc,obj-c++,java,fortran
+ configure.args-append --enable-languages=c,c++,objc,obj-c++,fortran
}
platform powerpc {
@@ -178,6 +168,6 @@
configure.universal_ldflags
configure.universal_args
-livecheck.type regex
-livecheck.url http://gcc.gnu.org/gcc-4.3/
-livecheck.regex GCC (4\\.3\\.\[0-9\])
+livecheck.type regex
+livecheck.url http://gcc.gnu.org/gcc-4.3/
+livecheck.regex GCC (4\\.3\\.\[0-9\])
Modified: trunk/dports/lang/gcc44/Portfile
===================================================================
--- trunk/dports/lang/gcc44/Portfile 2012-04-28 04:53:24 UTC (rev 92417)
+++ trunk/dports/lang/gcc44/Portfile 2012-04-28 05:01:57 UTC (rev 92418)
@@ -3,33 +3,36 @@
PortSystem 1.0
PortGroup select 1.0
-name gcc44
-epoch 1
-version 4.4.7
-revision 1
-platforms darwin
-categories lang
-maintainers mww openmaintainer
+name gcc44
+epoch 1
+version 4.4.7
+revision 1
+platforms darwin
+categories lang
+maintainers mww openmaintainer
# an exception in the license allows dependents to not be GPL
-license {GPL-3+ Permissive}
-description The GNU compiler collection
-long_description The GNU compiler collection, including front ends for \
- C, C++, Objective-C, Objective-C++, Java and Fortran95.
+license {GPL-3+ Permissive}
+description The GNU compiler collection
+long_description The GNU compiler collection, including front ends for \
+ C, C++, Objective-C, Objective-C++, Fortran, and Java.
-homepage http://gcc.gnu.org/
-master_sites ftp://ftp.funet.fi/pub/mirrors/sources.redhat.com/pub/gcc/releases/gcc-${version}/ \
- ftp://ftp.gwdg.de/pub/linux/gcc/releases/gcc-${version}/ \
- ftp://gcc.ftp.nluug.nl/mirror/languages/gcc/releases/gcc-${version}/ \
- ftp://gcc.gnu.org/pub/gcc/releases/gcc-${version}/ \
- gnu:gcc/gcc-${version}
+homepage http://gcc.gnu.org/
+master_sites ftp://ftp.funet.fi/pub/mirrors/sources.redhat.com/pub/gcc/releases/gcc-${version}/ \
+ ftp://ftp.gwdg.de/pub/linux/gcc/releases/gcc-${version}/ \
+ ftp://gcc.ftp.nluug.nl/mirror/languages/gcc/releases/gcc-${version}/ \
+ ftp://gcc.gnu.org/pub/gcc/releases/gcc-${version}/ \
+ gnu:gcc/gcc-${version}
-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
-distfiles ${dcore} ${dfort} ${dcxx} ${djava} ${dobjc}
+use_bzip2 yes
+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
+
+distfiles ${dcore} ${dfort} ${dcxx} ${djava} ${dobjc}
+
checksums gcc-core-4.4.7.tar.bz2 \
md5 3bda0831d654964ee152c46fa8d29e46 \
sha1 6db82d9cb0c9c0bd93c80c972e8b08b8dca2455d \
@@ -51,57 +54,61 @@
sha1 d87e56cf6216795e8c0fd7148918d2e09790c24d \
rmd160 660d8e2f8162458e463de6195e58391ee711ed59
-use_bzip2 yes
+depends_lib port:gmp port:mpfr port:libiconv
+depends_run port:gcc_select port:ld64 port:cctools
-depends_lib port:gmp port:mpfr port:libiconv
-depends_run port:gcc_select port:ld64 port:cctools
-
depends_skip_archcheck-append gcc_select ld64 cctools
-patch.dir ${workpath}/gcc-${version}
+patch.dir ${workpath}/gcc-${version}
-set major 4.4
+set major 4.4
-worksrcdir build
+worksrcdir build
+post-extract {
+ file mkdir ${worksrcpath}
+}
+
platform darwin {
configure.pre_args-append --build=${build_arch}-apple-darwin${os.major}
}
-post-extract {
- file mkdir ${worksrcpath}
-}
+configure.cmd ../gcc-${version}/configure
+configure.args --enable-languages=c,c++,objc,obj-c++,java,fortran \
+ --libdir=${prefix}/lib/${name} \
+ --includedir=${prefix}/include/${name} \
+ --infodir=${prefix}/share/info \
+ --mandir=${prefix}/share/man \
+ --datadir=${prefix}/share/${name} \
+ --with-local-prefix=${prefix} \
+ --with-libiconv-prefix=${prefix} \
+ --with-system-zlib \
+ --disable-nls \
+ --program-suffix=-mp-${major} \
+ --with-gxx-include-dir=${prefix}/include/${name}/c++/ \
+ --with-gmp=${prefix} \
+ --with-mpfr=${prefix} \
+ --enable-stage1-checking \
+ --disable-multilib \
+ --with-as=${prefix}/bin/as \
+ --with-ld=${prefix}/bin/ld \
+ --with-ar=${prefix}/bin/ar \
+ --with-bugurl=https://trac.macports.org/newticket
-configure.cmd ../gcc-${version}/configure
-configure.args --enable-languages=c,c++,objc,obj-c++,java,fortran \
- --libdir=${prefix}/lib/${name} \
- --includedir=${prefix}/include/${name} \
- --infodir=${prefix}/share/info \
- --mandir=${prefix}/share/man \
- --with-local-prefix=${prefix} \
- --with-system-zlib \
- --disable-nls \
- --program-suffix=-mp-${major} \
- --with-gxx-include-dir=${prefix}/include/${name}/c++/ \
- --with-gmp=${prefix} \
- --with-mpfr=${prefix} \
- --enable-stage1-checking \
- --disable-multilib \
- --with-as=${prefix}/bin/as \
- --with-ld=${prefix}/bin/ld \
- --with-ar=${prefix}/bin/ar
-
configure.env-append \
- AR_FOR_TARGET=${prefix}/bin/ar \
- AS_FOR_TARGET=${prefix}/bin/as \
- LD_FOR_TARGET=${prefix}/bin/ld \
- NM_FOR_TARGET=${prefix}/bin/nm \
- OBJDUMP_FOR_TARGET=${prefix}/bin/objdump \
- RANLIB_FOR_TARGET=${prefix}/bin/ranlib \
- STRIP_FOR_TARGET=${prefix}/bin/strip
+ AR_FOR_TARGET=${prefix}/bin/ar \
+ AS_FOR_TARGET=${prefix}/bin/as \
+ LD_FOR_TARGET=${prefix}/bin/ld \
+ NM_FOR_TARGET=${prefix}/bin/nm \
+ OBJDUMP_FOR_TARGET=${prefix}/bin/objdump \
+ RANLIB_FOR_TARGET=${prefix}/bin/ranlib \
+ STRIP_FOR_TARGET=${prefix}/bin/strip \
+ OTOOL=${prefix}/bin/otool \
+ OTOOL64=${prefix}/bin/otool
-build.target bootstrap
-use_parallel_build yes
+pre-configure {
+ configure.args-append --with-pkgversion="MacPorts ${name} ${version}_${revision}${portvariants}"
+}
# http://trac.macports.org/ticket/29104
if {${configure.compiler} == "llvm-gcc-4.2"} {
@@ -116,33 +123,33 @@
# 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"
+build.target bootstrap
+use_parallel_build yes
-destroot.target install install-info-host
+destroot.target install install-info-host
post-destroot {
- file delete -force ${destroot}${prefix}/share/man/man7 \
- ${destroot}${prefix}/share/info
- # install/copy ffitarget.h only if we have it
- if {![catch {set ffitarget.h [glob ${destroot}${prefix}/lib/${name}/gcc/*/${version}/include/ffitarget.h]} result]} {
- file copy ${ffitarget.h} ${destroot}${prefix}/include/${name}/
- }
- file rename ${destroot}${prefix}/share/python/aotcompile.py \
- ${destroot}${prefix}/share/python/aotcompile-44.py
- file rename ${destroot}${prefix}/share/python/classfile.py \
- ${destroot}${prefix}/share/python/classfile-44.py
+ file delete -force ${destroot}${prefix}/share/man/man7 \
+ ${destroot}${prefix}/share/info
+ # install/copy ffitarget.h only if we have it
+ if {![catch {set ffitarget.h [glob ${destroot}${prefix}/lib/${name}/gcc/*/${version}/include/ffitarget.h]} result]} {
+ file copy ${ffitarget.h} ${destroot}${prefix}/include/${name}/
+ }
+ file rename ${destroot}${prefix}/share/python/aotcompile.py \
+ ${destroot}${prefix}/share/python/aotcompile-44.py
+ file rename ${destroot}${prefix}/share/python/classfile.py \
+ ${destroot}${prefix}/share/python/classfile-44.py
}
-select.group gcc
-select.file ${filespath}/mp-${name}
+select.group gcc
+select.file ${filespath}/mp-${name}
-platform darwin 10 {
- configure.args-append --enable-fully-dynamic-string
+platform darwin {
+ if {${os.major} >= 10} {
+ configure.args-append --enable-fully-dynamic-string
+ }
}
-platform darwin 11 {
- configure.args-append --enable-fully-dynamic-string
-}
-
platform powerpc {
configure.universal_archs ppc ppc64
}
@@ -165,6 +172,6 @@
configure.universal_ldflags
configure.universal_args
-livecheck.type regex
-livecheck.url http://gcc.gnu.org/gcc-4.4/
-livecheck.regex GCC (4\\.4\\.\[0-9\])
+livecheck.type regex
+livecheck.url http://gcc.gnu.org/gcc-4.4/
+livecheck.regex GCC (4\\.4\\.\[0-9\])
Modified: trunk/dports/lang/gcc45/Portfile
===================================================================
--- trunk/dports/lang/gcc45/Portfile 2012-04-28 04:53:24 UTC (rev 92417)
+++ trunk/dports/lang/gcc45/Portfile 2012-04-28 05:01:57 UTC (rev 92418)
@@ -3,39 +3,43 @@
PortSystem 1.0
PortGroup select 1.0
-name gcc45
-epoch 1
-version 4.5.3
-revision 3
-platforms darwin
-categories lang
-maintainers mww openmaintainer
+name gcc45
+epoch 1
+version 4.5.3
+revision 3
+platforms darwin
+categories lang
+maintainers mww openmaintainer
# an exception in the license allows dependents to not be GPL
-license {GPL-3+ Permissive}
-description The GNU compiler collection
-long_description The GNU compiler collection, including front ends for \
- C, C++, Objective-C, Objective-C++, Fortran and Java.
+license {GPL-3+ Permissive}
+description The GNU compiler collection
+long_description The GNU compiler collection, including front ends for \
+ C, C++, Objective-C, Objective-C++, Fortran, and Java.
-homepage http://gcc.gnu.org/
-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
+homepage http://gcc.gnu.org/
+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}
+use_bzip2 yes
+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}
+
checksums gcc-core-${version}.tar.bz2 \
md5 98be5094b5b5a7b9087494291bc7f522 \
sha1 5edd2a4ae5a265df716550079995c0a0bc7be564 \
@@ -61,102 +65,103 @@
sha1 58c1d79c64c8cd718550f32a932ccfde8d1e6449 \
rmd160 d3f4da657f086b6423f74e93f001132f4855368a
-use_bzip2 yes
+depends_lib port:gmp port:mpfr port:libiconv port:libmpc port:ppl
+depends_run port:gcc_select port:ld64 port:cctools
-depends_lib port:gmp port:mpfr port:libiconv port:libmpc port:ppl
-depends_run port:gcc_select port:ld64 port:cctools
-
depends_skip_archcheck-append gcc_select ld64 cctools
-set major 4.5
+set major 4.5
-worksrcdir build
+worksrcdir build
+post-extract {
+ file mkdir ${worksrcpath}
+ copy ${distpath}/${ecj} ${workpath}/gcc-${version}/ecj.jar
+}
+
platform darwin {
configure.pre_args-append --build=${build_arch}-apple-darwin${os.major}
}
-post-extract {
- copy ${distpath}/${ecj} ${workpath}/gcc-${version}/ecj.jar
-}
+configure.cmd ../gcc-${version}/configure
+configure.args --enable-languages=c,c++,objc,obj-c++,fortran,java \
+ --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} \
+ --with-gxx-include-dir=${prefix}/include/${name}/c++/ \
+ --with-gmp=${prefix} \
+ --with-mpfr=${prefix} \
+ --with-mpc=${prefix} \
+ --with-ppl=${prefix} \
+ --enable-stage1-checking \
+ --disable-multilib \
+ --with-as=${prefix}/bin/as \
+ --with-ld=${prefix}/bin/ld \
+ --with-ar=${prefix}/bin/ar \
+ --with-bugurl=https://trac.macports.org/newticket
+configure.env-append \
+ AR_FOR_TARGET=${prefix}/bin/ar \
+ AS_FOR_TARGET=${prefix}/bin/as \
+ LD_FOR_TARGET=${prefix}/bin/ld \
+ NM_FOR_TARGET=${prefix}/bin/nm \
+ OBJDUMP_FOR_TARGET=${prefix}/bin/objdump \
+ RANLIB_FOR_TARGET=${prefix}/bin/ranlib \
+ STRIP_FOR_TARGET=${prefix}/bin/strip \
+ OTOOL=${prefix}/bin/otool \
+ OTOOL64=${prefix}/bin/otool
+
pre-configure {
- file mkdir ${worksrcpath}
+ configure.args-append --with-pkgversion="MacPorts ${name} ${version}_${revision}${portvariants}"
}
-configure.cmd ../gcc-${version}/configure
-configure.args --enable-languages=c,c++,objc,obj-c++,fortran,java \
- --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-system-zlib \
- --disable-nls \
- --program-suffix=-mp-${major} \
- --with-gxx-include-dir=${prefix}/include/${name}/c++/ \
- --with-gmp=${prefix} \
- --with-mpfr=${prefix} \
- --with-mpc=${prefix} \
- --with-ppl=${prefix} \
- --enable-stage1-checking \
- --disable-multilib \
- --with-as=${prefix}/bin/as \
- --with-ld=${prefix}/bin/ld \
- --with-ar=${prefix}/bin/ar
-
-configure.env-append \
- AR_FOR_TARGET=${prefix}/bin/ar \
- AS_FOR_TARGET=${prefix}/bin/as \
- LD_FOR_TARGET=${prefix}/bin/ld \
- NM_FOR_TARGET=${prefix}/bin/nm \
- OBJDUMP_FOR_TARGET=${prefix}/bin/objdump \
- RANLIB_FOR_TARGET=${prefix}/bin/ranlib \
- STRIP_FOR_TARGET=${prefix}/bin/strip
-
# http://trac.macports.org/ticket/29104
if {${configure.compiler} == "llvm-gcc-4.2"} {
configure.compiler clang
}
+
# LTO doesn't work for other targets, see ticket #32863
if {![variant_isset universal] && $build_arch == "x86_64"} {
configure.args-append --enable-lto
}
-build.target bootstrap
-use_parallel_build yes
+build.target bootstrap
+use_parallel_build yes
-destroot.target install install-info-host
+destroot.target install install-info-host
post-destroot {
- file delete -force ${destroot}${prefix}/share/man/man7 \
- ${destroot}${prefix}/share/info
- # install/copy ffitarget.h only if we have it
- if {![catch {set ffitarget.h [glob ${destroot}${prefix}/lib/${name}/gcc/*/${version}/include/ffitarget.h]} result]} {
- file copy ${ffitarget.h} ${destroot}${prefix}/include/${name}/
- }
- file rename ${destroot}${prefix}/share/python/aotcompile.py \
- ${destroot}${prefix}/share/python/aotcompile-45.py
- file rename ${destroot}${prefix}/share/python/classfile.py \
- ${destroot}${prefix}/share/python/classfile-45.py
+ file delete -force ${destroot}${prefix}/share/man/man7 \
+ ${destroot}${prefix}/share/info
+ # install/copy ffitarget.h only if we have it
+ if {![catch {set ffitarget.h [glob ${destroot}${prefix}/lib/${name}/gcc/*/${version}/include/ffitarget.h]} result]} {
+ file copy ${ffitarget.h} ${destroot}${prefix}/include/${name}/
+ }
+ file rename ${destroot}${prefix}/share/python/aotcompile.py \
+ ${destroot}${prefix}/share/python/aotcompile-45.py
+ file rename ${destroot}${prefix}/share/python/classfile.py \
+ ${destroot}${prefix}/share/python/classfile-45.py
}
-select.group gcc
-select.file ${filespath}/mp-${name}
+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 {
+ if {${os.major} == 8} {
+ # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45248
+ configure.args-append --with-dwarf2
+ } elseif {${os.major} >= 10} {
+ configure.args-append --enable-fully-dynamic-string
+ }
}
-platform darwin 10 {
- configure.args-append --enable-fully-dynamic-string
-}
-platform darwin 11 {
- configure.args-append --enable-fully-dynamic-string
-}
-
platform powerpc {
configure.universal_archs ppc ppc64
}
@@ -179,6 +184,6 @@
configure.universal_ldflags
configure.universal_args
-livecheck.type regex
-livecheck.url http://gcc.gnu.org/gcc-4.5/
-livecheck.regex GCC (4\\.5\\.\[0-9\])
+livecheck.type regex
+livecheck.url http://gcc.gnu.org/gcc-4.5/
+livecheck.regex GCC (4\\.5\\.\[0-9\])
Modified: trunk/dports/lang/gcc46/Portfile
===================================================================
--- trunk/dports/lang/gcc46/Portfile 2012-04-28 04:53:24 UTC (rev 92417)
+++ trunk/dports/lang/gcc46/Portfile 2012-04-28 05:01:57 UTC (rev 92418)
@@ -3,125 +3,132 @@
PortSystem 1.0
PortGroup select 1.0
-name gcc46
-epoch 1
-version 4.6.3
-revision 1
-platforms darwin
-categories lang
-maintainers mww openmaintainer
+name gcc46
+epoch 1
+version 4.6.3
+revision 1
+platforms darwin
+categories lang
+maintainers mww openmaintainer
# an exception in the license allows dependents to not be GPL
-license {GPL-3+ Permissive}
-description The GNU compiler collection
-long_description The GNU compiler collection, including front ends for \
- C, C++, Objective-C, Objective-C++ and Fortran.
+license {GPL-3+ Permissive}
+description The GNU compiler collection
+long_description The GNU compiler collection, including front ends for \
+ C, C++, Objective-C, Objective-C++, and Fortran.
-homepage http://gcc.gnu.org/
-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
+homepage http://gcc.gnu.org/
+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 ecj ecj-4.5.jar
-set gcc gcc-${version}.tar.bz2
-distfiles ${gcc}:gcc ${ecj}:ecj
-extract.only ${gcc}
+use_bzip2 yes
-checksums gcc-4.6.3.tar.bz2 \
+set ecj ecj-4.5.jar
+
+distname gcc-${version}
+
+distfiles [suffix ${distname}]:gcc ${ecj}:ecj
+
+extract.only [suffix ${distname}]
+
+checksums [suffix ${distname}] \
md5 773092fe5194353b02bb0110052a972e \
rmd160 9abb2f940d08fc84f2d91b6a6ce8d662ca889269 \
sha256 e8f5853d4eec2f5ebaf8a72ae4d53c436aacf98153b2499f8635b48c4718a093 \
- ecj-4.5.jar \
- md5 d7cd6a27c8801e66cbaa964a039ecfdb \
- sha1 58c1d79c64c8cd718550f32a932ccfde8d1e6449 \
- rmd160 d3f4da657f086b6423f74e93f001132f4855368a
+ ${ecj} \
+ rmd160 d3f4da657f086b6423f74e93f001132f4855368a \
+ sha256 98fd128f1d374d9e42fd9d4836bdd249c6d511ebc6c0df17fbc1b9df96c3d781
-use_bzip2 yes
+depends_lib port:gmp port:mpfr port:libiconv port:libmpc port:ppl
+depends_run port:gcc_select port:ld64 port:cctools
-depends_lib port:gmp port:mpfr port:libiconv port:libmpc port:ppl
-depends_run port:gcc_select port:ld64 port:cctools
-
depends_skip_archcheck-append gcc_select ld64 cctools
-set major 4.6
+set major 4.6
-worksrcdir build
+worksrcdir build
post-extract {
- file mkdir ${worksrcpath}
- copy ${distpath}/${ecj} ${workpath}/gcc-${version}/ecj.jar
+ file mkdir ${worksrcpath}
+ copy ${distpath}/${ecj} ${workpath}/${distname}/ecj.jar
}
platform darwin {
configure.pre_args-append --build=${build_arch}-apple-darwin${os.major}
}
-configure.cmd ../gcc-${version}/configure
+configure.cmd ../gcc-${version}/configure
# '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} \
- --with-gxx-include-dir=${prefix}/include/${name}/c++/ \
- --with-gmp=${prefix} \
- --with-mpfr=${prefix} \
- --with-mpc=${prefix} \
- --with-ppl=${prefix} \
- --enable-stage1-checking \
- --disable-multilib \
- --enable-lto \
- --with-as=${prefix}/bin/as \
- --with-ld=${prefix}/bin/ld \
- --with-ar=${prefix}/bin/ar
+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} \
+ --with-gxx-include-dir=${prefix}/include/${name}/c++/ \
+ --with-gmp=${prefix} \
+ --with-mpfr=${prefix} \
+ --with-mpc=${prefix} \
+ --with-ppl=${prefix} \
+ --enable-stage1-checking \
+ --disable-multilib \
+ --enable-lto \
+ --with-as=${prefix}/bin/as \
+ --with-ld=${prefix}/bin/ld \
+ --with-ar=${prefix}/bin/ar \
+ --with-bugurl=https://trac.macports.org/newticket
configure.env-append \
- AR_FOR_TARGET=${prefix}/bin/ar \
- AS_FOR_TARGET=${prefix}/bin/as \
- LD_FOR_TARGET=${prefix}/bin/ld \
- NM_FOR_TARGET=${prefix}/bin/nm \
- OBJDUMP_FOR_TARGET=${prefix}/bin/objdump \
- RANLIB_FOR_TARGET=${prefix}/bin/ranlib \
- STRIP_FOR_TARGET=${prefix}/bin/strip \
- OTOOL=${prefix}/bin/otool \
- OTOOL64=${prefix}/bin/otool
+ AR_FOR_TARGET=${prefix}/bin/ar \
+ AS_FOR_TARGET=${prefix}/bin/as \
+ LD_FOR_TARGET=${prefix}/bin/ld \
+ NM_FOR_TARGET=${prefix}/bin/nm \
+ OBJDUMP_FOR_TARGET=${prefix}/bin/objdump \
+ RANLIB_FOR_TARGET=${prefix}/bin/ranlib \
+ STRIP_FOR_TARGET=${prefix}/bin/strip \
+ OTOOL=${prefix}/bin/otool \
+ OTOOL64=${prefix}/bin/otool
+pre-configure {
+ configure.args-append --with-pkgversion="MacPorts ${name} ${version}_${revision}${portvariants}"
+}
+
# http://trac.macports.org/ticket/29104
if {${configure.compiler} == "llvm-gcc-4.2"} {
configure.compiler clang
}
-build.target bootstrap
-use_parallel_build yes
+build.target bootstrap
+use_parallel_build yes
-destroot.target install install-info-host
+destroot.target install install-info-host
post-destroot {
- file delete -force ${destroot}${prefix}/share/man/man7 \
- ${destroot}${prefix}/share/info
- # install/copy ffitarget.h only if we have it
- if {![catch {set ffitarget.h [glob ${destroot}${prefix}/lib/${name}/gcc/*/${version}/include/ffitarget.h]} result]} {
- file copy ${ffitarget.h} ${destroot}${prefix}/include/${name}/
- }
+ file delete -force ${destroot}${prefix}/share/man/man7 \
+ ${destroot}${prefix}/share/info
+ # install/copy ffitarget.h only if we have it
+ if {![catch {set ffitarget.h [glob ${destroot}${prefix}/lib/${name}/gcc/*/${version}/include/ffitarget.h]} result]} {
+ file copy ${ffitarget.h} ${destroot}${prefix}/include/${name}/
+ }
}
-select.group gcc
-select.file ${filespath}/mp-${name}
+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
+ # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45248
+ configure.args-append --with-dwarf2
}
platform powerpc {
@@ -151,6 +158,6 @@
depends_lib-append port:cloog
}
-livecheck.type regex
-livecheck.url http://gcc.gnu.org/gcc-4.6/
-livecheck.regex GCC (4\\.6\\.\[0-9\])
+livecheck.type regex
+livecheck.url http://gcc.gnu.org/gcc-4.6/
+livecheck.regex GCC (4\\.6\\.\[0-9\])
Modified: trunk/dports/lang/gcc47/Portfile
===================================================================
--- trunk/dports/lang/gcc47/Portfile 2012-04-28 04:53:24 UTC (rev 92417)
+++ trunk/dports/lang/gcc47/Portfile 2012-04-28 05:01:57 UTC (rev 92418)
@@ -69,6 +69,7 @@
--infodir=${prefix}/share/info \
--mandir=${prefix}/share/man \
--datarootdir=${prefix}/share/gcc-${major} \
+ --with-libiconv-prefix=${prefix} \
--with-local-prefix=${prefix} \
--with-system-zlib \
--disable-nls \
@@ -83,7 +84,8 @@
--enable-lto \
--with-as=${prefix}/bin/as \
--with-ld=${prefix}/bin/ld \
- --with-ar=${prefix}/bin/ar
+ --with-ar=${prefix}/bin/ar \
+ --with-bugurl=https://trac.macports.org/newticket
configure.env-append \
AR_FOR_TARGET=${prefix}/bin/ar \
@@ -92,8 +94,14 @@
NM_FOR_TARGET=${prefix}/bin/nm \
OBJDUMP_FOR_TARGET=${prefix}/bin/objdump \
RANLIB_FOR_TARGET=${prefix}/bin/ranlib \
- STRIP_FOR_TARGET=${prefix}/bin/strip
+ STRIP_FOR_TARGET=${prefix}/bin/strip \
+ OTOOL=${prefix}/bin/otool \
+ OTOOL64=${prefix}/bin/otool
+pre-configure {
+ configure.args-append --with-pkgversion="MacPorts ${name} ${version}_${revision}${portvariants}"
+}
+
# http://trac.macports.org/ticket/29104
if {${configure.compiler} == "llvm-gcc-4.2"} {
configure.compiler clang
@@ -138,7 +146,7 @@
configure.universal_ldflags
configure.universal_args
-livecheck.type regex
-livecheck.url http://gcc.gnu.org/gcc-4.7/
-livecheck.regex GCC (4\\.7\\.\[0-9\])
+livecheck.type regex
+livecheck.url http://gcc.gnu.org/gcc-4.7/
+livecheck.regex GCC (4\\.7\\.\[0-9\])
Modified: trunk/dports/lang/gcc48/Portfile
===================================================================
--- trunk/dports/lang/gcc48/Portfile 2012-04-28 04:53:24 UTC (rev 92417)
+++ trunk/dports/lang/gcc48/Portfile 2012-04-28 05:01:57 UTC (rev 92418)
@@ -69,7 +69,8 @@
--enable-lto \
--with-as=${prefix}/bin/as \
--with-ld=${prefix}/bin/ld \
- --with-ar=${prefix}/bin/ar
+ --with-ar=${prefix}/bin/ar \
+ --with-bugurl=https://trac.macports.org/newticket
configure.env-append \
AR_FOR_TARGET=${prefix}/bin/ar \
@@ -78,8 +79,14 @@
NM_FOR_TARGET=${prefix}/bin/nm \
OBJDUMP_FOR_TARGET=${prefix}/bin/objdump \
RANLIB_FOR_TARGET=${prefix}/bin/ranlib \
- STRIP_FOR_TARGET=${prefix}/bin/strip
+ STRIP_FOR_TARGET=${prefix}/bin/strip \
+ OTOOL=${prefix}/bin/otool \
+ OTOOL64=${prefix}/bin/otool
+pre-configure {
+ configure.args-append --with-pkgversion="MacPorts ${name} ${version}_${revision}${portvariants}"
+}
+
# http://trac.macports.org/ticket/29104
if {${configure.compiler} == "llvm-gcc-4.2"} {
configure.compiler clang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120427/923ea0b2/attachment-0001.html>
More information about the macports-changes
mailing list