[60072] trunk/dports/python/py25-numpy/Portfile
ram at macports.org
ram at macports.org
Sat Oct 31 12:09:02 PDT 2009
Revision: 60072
http://trac.macports.org/changeset/60072
Author: ram at macports.org
Date: 2009-10-31 12:08:59 -0700 (Sat, 31 Oct 2009)
Log Message:
-----------
python/py25-numpy: depend on atlas, sync with py26-numpy
Modified Paths:
--------------
trunk/dports/python/py25-numpy/Portfile
Modified: trunk/dports/python/py25-numpy/Portfile
===================================================================
--- trunk/dports/python/py25-numpy/Portfile 2009-10-31 17:54:08 UTC (rev 60071)
+++ trunk/dports/python/py25-numpy/Portfile 2009-10-31 19:08:59 UTC (rev 60072)
@@ -5,6 +5,7 @@
name py25-numpy
version 1.3.0
+revision 1
categories python
platforms darwin
maintainers ram openmaintainer
@@ -23,8 +24,26 @@
patch-f2py_setup.py.diff
depends_lib-append port:fftw-3 \
- port:py25-nose
+ port:py25-nose \
+ port:atlas \
+ port:gcc43
+if {![variant_isset no_gcc43]} {
+ 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_PREFIX@@|${prefix}|" ${worksrcpath}/numpy/distutils/fcompiler/g95.py
reinplace "s|@@MPORTS_PYTHON@@|${python.bin}|" ${worksrcpath}/numpy/f2py/setup.py
@@ -36,4 +55,24 @@
}
}
-livecheck.distname NumPy
+variant no_gcc43 description {Do not use the gcc43 compiler (disables fortran code)} {
+ depends_lib-delete port:gcc43
+ 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} {
+ 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
+}
+
+livecheck.distname NumPy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091031/2871002e/attachment.html>
More information about the macports-changes
mailing list