[56491] trunk/dports/python/py25-cvxopt/Portfile

mnick at macports.org mnick at macports.org
Fri Aug 28 14:34:03 PDT 2009


Revision: 56491
          http://trac.macports.org/changeset/56491
Author:   mnick at macports.org
Date:     2009-08-28 14:34:02 -0700 (Fri, 28 Aug 2009)
Log Message:
-----------
link against cblas if libblas.dylib doesn't exist. closes #19820

Modified Paths:
--------------
    trunk/dports/python/py25-cvxopt/Portfile

Modified: trunk/dports/python/py25-cvxopt/Portfile
===================================================================
--- trunk/dports/python/py25-cvxopt/Portfile	2009-08-28 20:59:59 UTC (rev 56490)
+++ trunk/dports/python/py25-cvxopt/Portfile	2009-08-28 21:34:02 UTC (rev 56491)
@@ -51,6 +51,12 @@
 configure {
     reinplace "s|ATLAS_LIB_DIR = .*|ATLAS_LIB_DIR = '${prefix}/lib'|" \
               ${worksrcpath}/src/setup.py
+    
+    # default to cblas if ${prefix}/lib/libblas.dylib doesnt exist
+    if {![file exists ${prefix}/lib/libblas.dylib]} {
+        reinplace "s|libraries = \\(.*\\)'blas'\\(.*\\)|libraries = \\1'cblas'\\2|g" \
+              ${worksrcpath}/src/setup.py
+    }
 
     if {[variant_isset gsl]} {
         reinplace "s|BUILD_GSL = .*|BUILD_GSL = 1|" \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090828/99829488/attachment.html>


More information about the macports-changes mailing list