[86866] trunk/dports/_resources/port1.0/group/python-1.0.tcl

jmr at macports.org jmr at macports.org
Sat Nov 5 18:41:00 PDT 2011


Revision: 86866
          http://trac.macports.org/changeset/86866
Author:   jmr at macports.org
Date:     2011-11-05 18:40:56 -0700 (Sat, 05 Nov 2011)
Log Message:
-----------
python portgroup: add compiler env vars in build phase (#31046)

Modified Paths:
--------------
    trunk/dports/_resources/port1.0/group/python-1.0.tcl

Modified: trunk/dports/_resources/port1.0/group/python-1.0.tcl
===================================================================
--- trunk/dports/_resources/port1.0/group/python-1.0.tcl	2011-11-06 00:32:25 UTC (rev 86865)
+++ trunk/dports/_resources/port1.0/group/python-1.0.tcl	2011-11-06 01:40:56 UTC (rev 86866)
@@ -199,6 +199,8 @@
 
 options python.add_archflags
 default python.add_archflags yes
+options python.set_compiler
+default python.set_compiler yes
 
 pre-build {
     if {${python.add_archflags}} {
@@ -217,6 +219,13 @@
                              LDFLAGS="${configure.ld_archflags}"
         }
     }
+    if {${python.set_compiler}} {
+        foreach var {cc objc cxx fc f77 f90} {
+            if {[set configure.${var}] != ""} {
+                build.env-append [string toupper $var]="[set configure.${var}]"
+            }
+        }
+    }
 }
 
 options python.link_binaries python.link_binaries_suffix
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111105/0208326e/attachment.html>


More information about the macports-changes mailing list