[116392] trunk/dports/math

sean at macports.org sean at macports.org
Thu Jan 23 12:15:43 PST 2014


Revision: 116392
          https://trac.macports.org/changeset/116392
Author:   sean at macports.org
Date:     2014-01-23 12:15:43 -0800 (Thu, 23 Jan 2014)
Log Message:
-----------
ml: add new port for preconditioning an elliptic pde

Added Paths:
-----------
    trunk/dports/math/ml/
    trunk/dports/math/ml/Portfile
    trunk/dports/math/ml/files/
    trunk/dports/math/ml/files/configure.math.patch

Added: trunk/dports/math/ml/Portfile
===================================================================
--- trunk/dports/math/ml/Portfile	                        (rev 0)
+++ trunk/dports/math/ml/Portfile	2014-01-23 20:15:43 UTC (rev 116392)
@@ -0,0 +1,56 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem          1.0
+PortGroup           mpi 1.0
+
+mpi.setup
+
+name                ml
+version             6.2
+categories          math
+platforms           darwin
+maintainers         sean openmaintainer
+description         Multilevel Preconditioning Package
+long_description    ML is designed to solve large sparse linear systems of \
+                    equations arising primarily from elliptic PDE discretizations.
+
+homepage            http://trilinos.sandia.gov/packages/ml/
+master_sites        http://ftp.mcs.anl.gov/pub/petsc/externalpackages
+
+checksums           rmd160  f7a56200e19d89c3aa21927d578384a226146199 \
+                    sha256  cd04da3308430c1268560db808bea33e17d82a42324ebbd624ca451b4a6e03ba
+
+universal_variant   no
+use_parallel_build  no
+
+configure.args      --disable-ml-epetra \
+                    --disable-ml-aztecoo \
+                    --disable-ml-examples \
+                    --disable-tests \
+                    --with-blas='-framework vecLib' \
+                    --with-lapack='-framework Accelerate'
+
+configure.cflags    -O3 -mtune=native -fPIC
+configure.cxxflags  -O3 -mtune=native -fPIC
+configure.fflags    -O3 -mtune=native -fPIC
+configure.f90flags  -O3 -mtune=native -fPIC
+
+post-build {
+    system -W ${worksrcpath}/src "${configure.cxx} *.o -framework Accelerate -framework vecLib -dynamiclib -Wl,-multiply_defined,suppress,-commons,use_dylibs,-search_paths_first -install_name ${prefix}/lib/lib${name}.${version}.dylib -o lib${name}.${version}.dylib"
+}
+
+post-destroot {
+    move ${worksrcpath}/src/lib${name}.${version}.dylib ${destroot}${prefix}/lib
+    system -W ${destroot}${prefix}/lib "ln -s lib${name}.${version}.dylib lib${name}.dylib"
+}
+
+if {[mpi_variant_isset]} {
+    configure.args-append      --enable-mpi
+    configure.cflags-append    -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX
+    configure.cxxflags-append  -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX
+}
+
+livecheck.type      regex
+livecheck.url       ${master_sites}
+livecheck.regex     ${name}-(\[0-9.\]+)${extract.suffix}

Added: trunk/dports/math/ml/files/configure.math.patch
===================================================================
--- trunk/dports/math/ml/files/configure.math.patch	                        (rev 0)
+++ trunk/dports/math/ml/files/configure.math.patch	2014-01-23 20:15:43 UTC (rev 116392)
@@ -0,0 +1,13 @@
+--- configure.ac.orig	2011-04-29 16:53:43.000000000 -0500
++++ configure.ac	2011-04-29 16:53:51.000000000 -0500
+@@ -569,8 +569,8 @@
+   # checks for libraries now
+   dnl Replace `main' with a function in -lm:
+   #  #np# These lines can be removed if the math lib is not needed.
+-  AC_SEARCH_LIBS(pow,[m],,AC_MSG_ERROR(Cannot find math library))
+-  AC_SEARCH_LIBS(sqrt,[m],,AC_MSG_ERROR(Cannot find math library))
++  # AC_SEARCH_LIBS(pow,[m],,AC_MSG_ERROR(Cannot find math library))
++  # AC_SEARCH_LIBS(sqrt,[m],,AC_MSG_ERROR(Cannot find math library))
+ 
+   # find or choose to supply valid blas and lapack libraries
+   TAC_BLAS([], [AC_MSG_ERROR([[Cannot find blas library, specify a path using --with-ldflags=-I<DIR> (ex. --with-ldflags=-I/usr/path/lib) or a specific library using --with-blas=DIR/LIB (for example --with-blas=/usr/path/lib/libcxml.a)]])])
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140123/40e629cc/attachment.html>


More information about the macports-changes mailing list