[28513] trunk/base

source_changes at macosforge.org source_changes at macosforge.org
Sun Sep 2 14:34:09 PDT 2007


Revision: 28513
          http://trac.macosforge.org/projects/macports/changeset/28513
Author:   mww at macports.org
Date:     2007-09-02 14:34:09 -0700 (Sun, 02 Sep 2007)

Log Message:
-----------
also add 'configure.f90flags' for Fortran 90 flags

Modified Paths:
--------------
    trunk/base/doc/portfile.7
    trunk/base/src/port1.0/portconfigure.tcl

Modified: trunk/base/doc/portfile.7
===================================================================
--- trunk/base/doc/portfile.7	2007-09-02 21:24:51 UTC (rev 28512)
+++ trunk/base/doc/portfile.7	2007-09-02 21:34:09 UTC (rev 28513)
@@ -825,6 +825,14 @@
 .br
 .Sy Default:
 .Em -O2
+.It Ic configure.f90flags
+Flags to put in the F90FLAGS environment variable when invoking the configure script.
+.br 
+.Sy Type:
+.Em optional
+.br
+.Sy Default:
+.Em -O2
 .It Ic configure.cc
 C-compiler to put in the CC environment variable when invoking the configure script.
 .br

Modified: trunk/base/src/port1.0/portconfigure.tcl
===================================================================
--- trunk/base/src/port1.0/portconfigure.tcl	2007-09-02 21:24:51 UTC (rev 28512)
+++ trunk/base/src/port1.0/portconfigure.tcl	2007-09-02 21:34:09 UTC (rev 28513)
@@ -53,13 +53,14 @@
 default use_configure yes
 
 # Configure special environment variables.
-options configure.cflags configure.cppflags configure.cxxflags configure.ldflags configure.fflags
+options configure.cflags configure.cppflags configure.cxxflags configure.ldflags configure.fflags configure.f90flags
 # We could have default debug/optimization flags at some point.
 default configure.cflags	{-O2}
 default configure.cppflags	{"-I${prefix}/include"}
 default configure.cxxflags	{-O2}
 default configure.ldflags	{"-L${prefix}/lib"}
 default configure.fflags	{-O2}
+default configure.f90flags	{-O2}
 
 # Universal options & default values.
 options configure.universal_args		configure.universal_cflags configure.universal_cppflags configure.universal_cxxflags configure.universal_ldflags configure.universal_env
@@ -114,7 +115,7 @@
 proc configure_main {args} {
     global [info globals]
     global worksrcpath use_configure use_autoconf use_automake use_xmkmf
-    global configure.env configure.cflags configure.cppflags configure.cxxflags configure.ldflags configure.fflags
+    global configure.env configure.cflags configure.cppflags configure.cxxflags configure.ldflags configure.fflags configure.f90flags
     global configure.cc configure.cxx configure.cpp configure.f77 configure.f90 configure.fc configure.compiler prefix
     global os.platform os.major
     
@@ -232,6 +233,7 @@
 		append_list_to_environment_value configure "CXXFLAGS" ${configure.cxxflags}
 		append_list_to_environment_value configure "LDFLAGS" ${configure.ldflags}
 		append_list_to_environment_value configure "FFLAGS" ${configure.fflags}
+		append_list_to_environment_value configure "F90FLAGS" ${configure.f90flags}
 
 		# Execute the command (with the new environment).
 		if {[catch {command_exec configure} result]} {

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070902/b9911d90/attachment.html


More information about the macports-changes mailing list