Skip to content
Permalink
Browse files

Add more compiler suites for the 'configure.compiler' option

git-svn-id: https://svn.macports.org/repository/macports/trunk/base@28302 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Markus W. Weißmann
Markus W. Weißmann committed Aug 28, 2007
1 parent dba95ee commit 22e4561965f1028dd41ac46009cd8c17bb73f7ac
Showing with 34 additions and 1 deletion.
  1. +2 −0 ChangeLog
  2. +14 −1 doc/portfile.7
  3. +18 −0 src/port1.0/portconfigure.tcl
@@ -6,6 +6,8 @@

Unreleased:

- Add more compiler suites for the 'configure.compiler' option

- `port variants` behaves like `port info` in that it parses the Portfile for up-to-date info.
`port variants` also supports the --index flag (eridius in r27919).

@@ -852,12 +852,25 @@ Fortran-90-compiler to put in the F90 environment variable when invoking the con
.Em optional
.It Ic configure.compiler
Selects a complete compiler suite to use. This option will override the compiler environment variable for all compilers the named suite features. Please note that this option will intentionally not set any dependencies on the selected compiler suite!
.Em gcc-3.3
.Em gcc-4.0
use the standard system compiler suites,
.Em apple-gcc-3.3
.Em apple-gcc-4.0
use Apple's gcc suite installed via MacPorts,
.Em macports-gcc-3.3
.Em macports-gcc-3.4
.Em macports-gcc-4.0
.Em macports-gcc-4.1
.Em macports-gcc-4.2
.Em macports-gcc-4.3
use the vanilla gcc installed via MacPorts.
.br
.Sy Type:
.Em optional
.br
.Sy Values:
.Em gcc-3.3 gcc-4.0 macports-gcc-4.0 macports-gcc-4.1 macports-gcc-4.2
.Em gcc-3.3 gcc-4.0 apple-gcc-3.3 apple-gcc-4.0 macports-gcc-3.3 macports-gcc-3.4 macports-gcc-4.0 macports-gcc-4.1 macports-gcc-4.2 macports-gcc-4.3
.br
.Sy Example:
.Dl configure.compiler gcc-4.0
@@ -118,6 +118,24 @@ proc configure_main {args} {
set configure.cc "/usr/bin/gcc-4.0"
set configure.cxx "/usr/bin/g++-4.0"
set configure.cpp "/usr/bin/cpp-4.0" }
apple-gcc-3.3 {
ui_debug "Using Macports Apple gcc 3.3"
set configure.cc "${prefix}/bin/gcc-apple-3.3"
set configure.cpp "${prefix}/bin/cpp-apple-3.3" }
apple-gcc-4.0 {
ui_debug "Using Macports Apple gcc 4.0"
set configure.cc "${prefix}/bin/gcc-apple-4.0"
set configure.cpp "${prefix}/bin/cpp-apple-4.0" }
macports-gcc-3.3 {
ui_debug "Using MacPorts gcc 3.3"
set configure.cc "${prefix}/bin/gcc-mp-3.3"
set configure.cxx "${prefix}/bin/g++-mp-3.3"
set configure.cpp "${prefix}/bin/cpp-mp-3.3" }
macports-gcc-3.4 {
ui_debug "Using MacPorts gcc 3.4"
set configure.cc "${prefix}/bin/gcc-mp-3.4"
set configure.cxx "${prefix}/bin/g++-mp-3.4"
set configure.cpp "${prefix}/bin/cpp-mp-3.4" }
macports-gcc-4.0 {
ui_debug "Using MacPorts gcc 4.0"
set configure.cc "${prefix}/bin/gcc-mp-4.0"

0 comments on commit 22e4561

Please sign in to comment.
You can’t perform that action at this time.