[60073] trunk/dports/python/py25-scipy/Portfile

ram at macports.org ram at macports.org
Sat Oct 31 12:09:08 PDT 2009


Revision: 60073
          http://trac.macports.org/changeset/60073
Author:   ram at macports.org
Date:     2009-10-31 12:09:08 -0700 (Sat, 31 Oct 2009)
Log Message:
-----------
python/py25-scipy: depend on atlas, sync with py26-scipy

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

Modified: trunk/dports/python/py25-scipy/Portfile
===================================================================
--- trunk/dports/python/py25-scipy/Portfile	2009-10-31 19:08:59 UTC (rev 60072)
+++ trunk/dports/python/py25-scipy/Portfile	2009-10-31 19:09:08 UTC (rev 60073)
@@ -5,6 +5,7 @@
 
 name                    py25-scipy
 version                 0.7.1
+revision                1
 categories              python
 platforms               darwin
 maintainers             ram openmaintainer
@@ -22,18 +23,26 @@
 depends_lib-append      port:py25-numpy \
                         port:py25-nose \
                         port:SuiteSparse \
-                        bin:swig:swig-python
+                        bin:swig:swig-python \
+                        port:atlas
 
 worksrcdir              ${distname}
 
-build.env               CCFLAGS="-I${prefix}/include -L${prefix}/lib"
+build.env-append        CCFLAGS="-I${prefix}/include -L${prefix}/lib" \
+                        ATLAS=${prefix}/lib \
+                        LAPACK=${prefix}/lib \
+                        BLAS=${prefix}/lib
 
+destroot.env-append     CCFLAGS="-I${prefix}/include -L${prefix}/lib" \
+                        ATLAS=${prefix}/lib \
+                        LAPACK=${prefix}/lib \
+                        BLAS=${prefix}/lib
+
 #pre-fetch {
 #  if {![llength [glob -nocomplain ${prefix}/share/swig/*/python/python.swg]]} {
 #    ui_error "The python variant of swig is not installed. Please run"
-#    ui_error "the following commands:"
-#    ui_error "$ sudo port uninstall swig"
-#    ui_error "$ sudo port install swig +python"
+#    ui_error "the following command:"
+#    ui_error "$ sudo port -fn upgrade swig +python"
 #    error "python variant of swig required"
 #  }
 #}
@@ -42,6 +51,18 @@
   reinplace "s|include <\\(umfpack\.*.h\\)>|include <${prefix}/include/ufsparse/\\1>|g" ${worksrcpath}/scipy/sparse/linalg/dsolve/umfpack/umfpack.i
 }
 
+variant no_atlas description "Do not use macports atlas libraries" {
+    depends_lib-delete      port:atlas
+
+    build.env-delete        ATLAS=${prefix}/lib \
+                            LAPACK=${prefix}/lib \
+                            BLAS=${prefix}/lib
+
+    destroot.env-delete     ATLAS=${prefix}/lib \
+                            LAPACK=${prefix}/lib \
+                            BLAS=${prefix}/lib
+}
+
 variant gcc42 conflicts gcc43 gcc44 description "Use gfortran-mp-4.2 as fortran compiler" {
   depends_lib-append    port:gcc42
   set fc_options        "config_fc --fcompiler gnu95 --f77exec ${prefix}/bin/gfortran-mp-4.2 --f90exec ${prefix}/bin/gfortran-mp-4.2"
@@ -49,11 +70,17 @@
   destroot.cmd-append   ${fc_options}
 }
 
-variant gcc43 conflicts gcc42 gcc44 description "Use gfortran-mp-4.3 as fortran compiler" {
+variant gcc43 conflicts gcc42 gcc44 description "Use gcc 4.3 tool chain for building" {
   depends_lib-append    port:gcc43
   set fc_options        "config_fc --fcompiler gnu95 --f77exec ${prefix}/bin/gfortran-mp-4.3 --f90exec ${prefix}/bin/gfortran-mp-4.3"
-  build.cmd-append      ${fc_options}
-  destroot.cmd-append   ${fc_options}
+  set config_options    "config --cc ${prefix}/bin/gcc-mp-4.3 --include-dirs ${prefix}/include --library-dirs ${prefix}/lib"
+  build.cmd-append      ${fc_options} ${config_options}
+  destroot.cmd-append   ${fc_options} ${config_options}
+
+  destroot.env-append   CC="${prefix}/bin/gcc-mp-4.3" \
+                        CXX="${prefix}/bin/g++-mp-4.3"
+  build.env-append      CC="${prefix}/bin/gcc-mp-4.3" \
+                        CXX="${prefix}/bin/g++-mp-4.3"
 }
 
 variant gcc44 conflicts gcc42 gcc43 description "Use gfortran-mp-4.4 as fortran compiler" {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091031/555613ab/attachment.html>


More information about the macports-changes mailing list