[136320] trunk/dports/science/mpich/Portfile

eborisch at macports.org eborisch at macports.org
Thu May 14 15:20:36 PDT 2015


Revision: 136320
          https://trac.macports.org/changeset/136320
Author:   eborisch at macports.org
Date:     2015-05-14 15:20:35 -0700 (Thu, 14 May 2015)
Log Message:
-----------
mpich-*-gcc*: Add check for selected MacPorts clang installation for +tuned variants on Yosemite.

Modified Paths:
--------------
    trunk/dports/science/mpich/Portfile

Modified: trunk/dports/science/mpich/Portfile
===================================================================
--- trunk/dports/science/mpich/Portfile	2015-05-14 22:06:59 UTC (rev 136319)
+++ trunk/dports/science/mpich/Portfile	2015-05-14 22:20:35 UTC (rev 136320)
@@ -207,7 +207,21 @@
         } {}
         default_variants-append     +fortran
 
-        if {${os.major} >= 14} {
+        
+        if {[ variant_isset tuned ] && ${os.major} >= 14} {
+            if {![ file exists ${prefix}/bin/clang ]} {
+                pre-configure {
+                    error "
+
+    **********************************************
+    A MacPorts-provided clang must be installed
+    and 'select'-ed to compile mpich-*gcc* +tuned!
+    (Such that ${prefix}/bin/clang exists.)
+    **********************************************        
+"
+                }
+
+            }
             # Use clang assembler
             configure.cflags-append     -Wa,-q
             configure.cxxflags-append   -Wa,-q
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150514/71b683b5/attachment.html>


More information about the macports-changes mailing list