[49049] trunk/dports/lang
mww at macports.org
mww at macports.org
Thu Apr 2 03:12:55 PDT 2009
Revision: 49049
http://trac.macports.org/changeset/49049
Author: mww at macports.org
Date: 2009-04-02 03:12:55 -0700 (Thu, 02 Apr 2009)
Log Message:
-----------
new port lang/gcc45
Added Paths:
-----------
trunk/dports/lang/gcc45/
trunk/dports/lang/gcc45/Portfile
trunk/dports/lang/gcc45/files/mp-gcc45
Removed Paths:
-------------
trunk/dports/lang/gcc45/Portfile
trunk/dports/lang/gcc45/files/mp-gcc44
Deleted: trunk/dports/lang/gcc45/Portfile
===================================================================
--- trunk/dports/lang/gcc44/Portfile 2009-03-13 10:03:59 UTC (rev 48040)
+++ trunk/dports/lang/gcc45/Portfile 2009-04-02 10:12:55 UTC (rev 49049)
@@ -1,128 +0,0 @@
-# $Id$
-
-PortSystem 1.0
-
-name gcc44
-version 4.4-20090306
-platforms darwin
-categories lang
-maintainers mww
-description The GNU compiler collection, prerelease BETA
-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.
-
-homepage http://gcc.gnu.org/
-master_sites ftp://ftp.gwdg.de/pub/linux/gcc/snapshots/${version}/ \
- ftp://ftp.funet.fi/pub/mirrors/sources.redhat.com/pub/gcc/snapshots/${version}/ \
- ftp://gcc.gnu.org/pub/gcc/snapshots/${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}
-
-checksums ${dcore} sha1 2347eb477624239207ae6cb6aaccda11576c2bbf \
- ${dfort} sha1 d72347c3cb6c88d8bbbf3db45d3f6cb194bc5daf \
- ${dcxx} sha1 567854f05673c59d116621b4322e27f10999ddd0 \
- ${djava} sha1 02a84f81512a7181ee348bd7f07329a80f271d9e \
- ${dobjc} sha1 151d81d27bb60bf455853f3079c66fbc39d7751a
-
-use_bzip2 yes
-
-# gmp and mpfr are not universal
-universal_variant no
-
-depends_lib port:gmp port:mpfr port:libiconv
-
-set major 4.4
-
-worksrcdir build
-
-pre-configure {
- file mkdir ${worksrcpath}
-}
-
-configure.cmd ../gcc-${version}/configure
-configure.args --enable-languages=c,c++,objc,obj-c++ \
- --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}
-# do NOT use MacPorts binutils -- they do not work
-configure.env-append AR_FOR_TARGET=/usr/bin/ar \
- AS_FOR_TARGET=/usr/bin/as \
- LD_FOR_TARGET=/usr/bin/ld \
- NM_FOR_TARGET=/usr/bin/nm \
- OBJDUMP_FOR_TARGET=/usr/bin/objdump \
- RANLIB_FOR_TARGET=/usr/bin/ranlib \
- STRIP_FOR_TARGET=/usr/bin/strip
-
-build.target bootstrap
-use_parallel_build yes
-
-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}/
- }
- # install select file for gcc_select
- xinstall -m 755 -d ${destroot}${prefix}/etc/select/gcc
- xinstall -m 444 ${filespath}/mp-gcc44 ${destroot}${prefix}/etc/select/gcc/
-}
-
-#platform darwin 7 {
-# configure.cflags-append -force_cpusubtype_ALL
-# confgiure.env BOOT_CFLAGS="-g -O2 -force_cpusubtype_ALL"
-# build.args-append XCFLAGS=-force_cpusubtype_ALL
-#}
-
-platform powerpc {
- configure.args-append --disable-multilib
-}
-
-# odcctools currently do not compile for x64 - move to variant for the time being
-variant odcctools \
- description "Use the odcctools instead of the system provided ones - does not work for x64 currently!" {
- depends_lib-append port:odcctools
- patch {
- reinplace "s|/usr/bin/libtool|${prefix}/bin/odlibtool|g" \
- ${workpath}/gcc-${version}/gcc/config/darwin.h
- }
- configure.args-append --with-as=${prefix}/bin/odas \
- --with-ld=${prefix}/bin/odld \
- --with-ar=${prefix}/bin/odar
-}
-
-# 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
-}
-
-livecheck.check regex
-livecheck.url ftp://gcc.gnu.org/pub/gcc/snapshots/
-livecheck.regex LATEST-4.4 -> (4.4-\[0-9\]+)
-
Copied: trunk/dports/lang/gcc45/Portfile (from rev 48972, trunk/dports/lang/gcc44/Portfile)
===================================================================
--- trunk/dports/lang/gcc45/Portfile (rev 0)
+++ trunk/dports/lang/gcc45/Portfile 2009-04-02 10:12:55 UTC (rev 49049)
@@ -0,0 +1,115 @@
+# $Id$
+
+PortSystem 1.0
+
+name gcc45
+version 4.5-20090327
+platforms darwin
+categories lang
+maintainers mww
+description The GNU compiler collection, prerelease BETA
+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.
+
+homepage http://gcc.gnu.org/
+master_sites ftp://ftp.gwdg.de/pub/linux/gcc/snapshots/${version}/ \
+ ftp://ftp.funet.fi/pub/mirrors/sources.redhat.com/pub/gcc/snapshots/${version}/ \
+ ftp://gcc.gnu.org/pub/gcc/snapshots/${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}
+
+checksums ${dcore} sha1 530acf62e514a6e1f7c7c7c71241cf847b48d3e9 \
+ ${dfort} sha1 57a5c75666c96e8b0f6d6befb1199ac0f80981e9 \
+ ${dcxx} sha1 fcd050ee73f617bf52a63db6ce9cc114f19c5f05 \
+ ${djava} sha1 65bfd4982783ebd53d67d24145be3285e53da4ba \
+ ${dobjc} sha1 53257e8612e1edb3afa2c0d65408a383a4e0462d
+
+use_bzip2 yes
+
+# gmp and mpfr are not universal
+universal_variant no
+
+depends_lib port:gmp port:mpfr port:libiconv
+
+set major 4.5
+
+worksrcdir build
+
+pre-configure {
+ file mkdir ${worksrcpath}
+}
+
+configure.cmd ../gcc-${version}/configure
+configure.args --enable-languages=c,c++,objc,obj-c++ \
+ --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}
+# do NOT use MacPorts binutils -- they do not work
+configure.env-append AR_FOR_TARGET=/usr/bin/ar \
+ AS_FOR_TARGET=/usr/bin/as \
+ LD_FOR_TARGET=/usr/bin/ld \
+ NM_FOR_TARGET=/usr/bin/nm \
+ OBJDUMP_FOR_TARGET=/usr/bin/objdump \
+ RANLIB_FOR_TARGET=/usr/bin/ranlib \
+ STRIP_FOR_TARGET=/usr/bin/strip
+
+build.target bootstrap
+use_parallel_build yes
+
+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}/
+ }
+ # install select file for gcc_select
+ xinstall -m 755 -d ${destroot}${prefix}/etc/select/gcc
+ xinstall -m 444 ${filespath}/mp-gcc44 ${destroot}${prefix}/etc/select/gcc/
+}
+
+#platform darwin 7 {
+# configure.cflags-append -force_cpusubtype_ALL
+# confgiure.env BOOT_CFLAGS="-g -O2 -force_cpusubtype_ALL"
+# build.args-append XCFLAGS=-force_cpusubtype_ALL
+#}
+
+platform powerpc {
+ configure.args-append --disable-multilib
+}
+
+# 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
+}
+
+livecheck.check regex
+livecheck.url ftp://gcc.gnu.org/pub/gcc/snapshots/
+livecheck.regex LATEST-4.5 -> (4.5-\[0-9\]+)
+
Deleted: trunk/dports/lang/gcc45/files/mp-gcc44
===================================================================
--- trunk/dports/lang/gcc44/files/mp-gcc44 2009-03-13 10:03:59 UTC (rev 48040)
+++ trunk/dports/lang/gcc45/files/mp-gcc44 2009-04-02 10:12:55 UTC (rev 49049)
@@ -1,7 +0,0 @@
-bin/gcc-mp-4.4
-bin/cpp-mp-4.4
-bin/c++-mp-4.4
-bin/g++-mp-4.4
-bin/gcj-mp-4.4
-bin/gcov-mp-4.4
-bin/gfortran-mp-4.4
Added: trunk/dports/lang/gcc45/files/mp-gcc45
===================================================================
--- trunk/dports/lang/gcc45/files/mp-gcc45 (rev 0)
+++ trunk/dports/lang/gcc45/files/mp-gcc45 2009-04-02 10:12:55 UTC (rev 49049)
@@ -0,0 +1,7 @@
+bin/gcc-mp-4.5
+bin/cpp-mp-4.5
+bin/c++-mp-4.5
+bin/g++-mp-4.5
+bin/gcj-mp-4.5
+bin/gcov-mp-4.5
+bin/gfortran-mp-4.5
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090402/d92b22fc/attachment-0001.html>
More information about the macports-changes
mailing list