[59616] trunk/dports/python/py26-numpy/Portfile

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


Revision: 59616
          http://trac.macports.org/changeset/59616
Author:   jameskyle at macports.org
Date:     2009-10-17 15:56:16 -0700 (Sat, 17 Oct 2009)
Log Message:
-----------
Added proper deletion of default opts for no_gcc43 and no_atlas variants.

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

Modified: trunk/dports/python/py26-numpy/Portfile
===================================================================
--- trunk/dports/python/py26-numpy/Portfile	2009-10-17 22:56:14 UTC (rev 59615)
+++ trunk/dports/python/py26-numpy/Portfile	2009-10-17 22:56:16 UTC (rev 59616)
@@ -26,14 +26,23 @@
 
 depends_lib-append      port:fftw-3 \
                         port:py26-nose \
-                        port:atlas
+                        port:atlas \
+                        port:gcc43
 
-build.env-append        ATLAS=${prefix}/lib \
-                        LAPACK=${prefix}/lib \
-                        BLAS=${prefix}/lib
+configure.compiler  macports-gcc-4.3
 
-configure.compiler      macports-gcc-4.3
-
+build.env-append    CC="${prefix}/bin/gcc-mp-4.3" \
+                    CXX="${prefix}/bin/g++-mp-4.3" \
+                    ATLAS=${prefix}/lib \
+                    LAPACK=${prefix}/lib \
+                    BLAS=${prefix}/lib
+                    
+destroot.env-append CC="${prefix}/bin/gcc-mp-4.3" \
+                    CXX="${prefix}/bin/g++-mp-4.3" \
+                    ATLAS=${prefix}/lib \
+                    LAPACK=${prefix}/lib \
+                    BLAS=${prefix}/lib                    
+           
 post-patch {
     reinplace "s|@@MPORTS_PYTHON_LIBRARY@@|${python.lib}|" ${worksrcpath}/numpy/distutils/fcompiler/g95.py
     reinplace "s|@@MPORTS_PYTHON@@|${python.bin}|" ${worksrcpath}/numpy/f2py/setup.py
@@ -44,6 +53,26 @@
     ln -s ${python.prefix}/bin/f2py ${destroot}${prefix}/bin/f2py-${branch}
 }
 
+variant no_gcc43 description {"Do not use the gcc43 compiler"} {  
+    depends_lib-delete port:gcc43
+    configure.compiler gcc-4.0
+    
+    build.env-delete CC="${prefix}/bin/gcc-mp-4.3" \
+                     CXX="${prefix}/bin/g++-mp-4.3"
+                     
+    destroot.env-delete CC="${prefix}/bin/gcc-mp-4.3" \
+                        CXX="${prefix}/bin/g++-mp-4.3"
+}
+
+variant no_atlas description {"Do not use the macports atlas libs"} {
+    build.env-delete    ATLAS=${prefix}/lib \
+                        LAPACK=${prefix}/lib \
+                        BLAS=${prefix}/lib
+    build.env-delete    ATLAS=${prefix}/lib \
+                        LAPACK=${prefix}/lib \
+                        BLAS=${prefix}/lib                   
+    depends_lib-delete port:atlas                    
+}
 variant universal {
     patchfiles-append  patch-numpyconfig.h.in.diff patch-setup.py.diff
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091017/f5c5ff29/attachment.html>


More information about the macports-changes mailing list