[59609] trunk/dports/python/py26-scipy/Portfile

jameskyle at macports.org jameskyle at macports.org
Sat Oct 17 15:56:02 PDT 2009


Revision: 59609
          http://trac.macports.org/changeset/59609
Author:   jameskyle at macports.org
Date:     2009-10-17 15:56:00 -0700 (Sat, 17 Oct 2009)
Log Message:
-----------
Added ATLAS, LAPACK, and BLAS build environment to build to macports libraries.
Set the gcc/g++ compiler to the gcc-mp-4.3 for the gcc43 build.

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

Modified: trunk/dports/python/py26-scipy/Portfile
===================================================================
--- trunk/dports/python/py26-scipy/Portfile	2009-10-17 22:55:57 UTC (rev 59608)
+++ trunk/dports/python/py26-scipy/Portfile	2009-10-17 22:56:00 UTC (rev 59609)
@@ -27,8 +27,16 @@
 
 worksrcdir              ${distname}
 
-build.env               CCFLAGS="-I${prefix}/include -L${prefix}/lib"
 
+build.env-append        ATLAS=${prefix}/lib \
+                        LAPACK=${prefix}/lib \
+                        BLAS=${prefix}/lib \
+                        CCFLAGS="-I${prefix}/include -L${prefix}/lib" \
+                        CC="${prefix}/bin/gcc-mp-4.3" \
+                        CXX="${prefix}/bin/g++-mp-4.3"
+                        
+                        
+
 #pre-fetch {
 #  if {![llength [glob -nocomplain ${prefix}/share/swig/*/python/python.swg]]} {
 #    ui_error "The python variant of swig is not installed. Please run"
@@ -52,8 +60,10 @@
 variant gcc43 conflicts gcc42 gcc44 description "Use gfortran-mp-4.3 as fortran compiler" {
   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}
+  
 }
 
 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/20091017/d2552fd8/attachment.html>


More information about the macports-changes mailing list