# -*- 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: Portfile 146242 2016-03-02 00:54:07Z sean@macports.org $ PortSystem 1.0 PortGroup mpi 1.0 name mumps version 5.0.1 categories math license public-domain platforms darwin maintainers sean openmaintainer description MUltifrontal Massively Parallel sparse direct Solver long_description MUMPS: a parallel sparse direct solver supported_archs noarch depends_lib port:scalapack port:parmetis homepage http://mumps.enseeiht.fr/ master_sites ${homepage} distname MUMPS_${version} checksums rmd160 f5a99de1a9ee7e28c6f9fddac0a4852ec660109e \ sha256 50355b2e67873e2239b4998a46f2bbf83f70cdad6517730ab287ae3aae9340a0 mpi.setup require require_fortran mpi.enforce_variant scalapack patch.pre_args -p1 patchfiles-append patch-shared.diff use_parallel_build no use_configure no build.target alllib build.args SHAREDFLAGS="-dynamiclib" PREFIX="${prefix}" SHAREDLIBEXT=".dylib" configure.cflags -fPIC -O3 -mtune=native configure.fflags -fPIC -O3 -mtune=native configure.f90flags -fPIC -O3 -mtune=native post-extract { file copy ${worksrcpath}/Make.inc/Makefile.inc.generic ${worksrcpath}/Makefile.inc reinplace "s|^\#LMETISDIR.*$|LMETISDIR = ${prefix}/lib|" ${worksrcpath}/Makefile.inc reinplace "s|^\#IMETIS.*$|IMETIS = -I${prefix}/include|" ${worksrcpath}/Makefile.inc reinplace "s|^\#LMETIS.*$|LMETIS = ${prefix}/lib/libparmetis.dylib ${prefix}/lib/libmetis.dylib|" ${worksrcpath}/Makefile.inc reinplace "s|^ORDERINGSF.*$|ORDERINGSF = -Dpord -Dparmetis|" ${worksrcpath}/Makefile.inc reinplace "s|^CC .*$|CC = ${configure.cc}|" ${worksrcpath}/Makefile.inc reinplace "s|^FC .*$|FC = ${configure.f90}|" ${worksrcpath}/Makefile.inc reinplace "s|^FL .*$|FL = ${configure.f90}|" ${worksrcpath}/Makefile.inc reinplace "s|^OPTC .*$|OPTC = ${configure.cflags}|" ${worksrcpath}/Makefile.inc reinplace "s|^OPTL .*$|OPTL = ${configure.cflags}|" ${worksrcpath}/Makefile.inc reinplace "s|^OPTF .*$|OPTF = ${configure.f90flags}|" ${worksrcpath}/Makefile.inc reinplace "s|^AR.*$|AR = ar cr |" ${worksrcpath}/Makefile.inc reinplace "s|^RANLIB.*$|RANLIB = ranlib -c|" ${worksrcpath}/Makefile.inc reinplace "s|^SCALAP.*$|SCALAP = ${prefix}/lib/libscalapack.dylib|" ${worksrcpath}/Makefile.inc reinplace "s|^INCPAR.*$|INCPAR = -I\$(topdir)/include|" ${worksrcpath}/Makefile.inc reinplace "s|^LIBPAR.*$|LIBPAR = \$(SCALAP)|" ${worksrcpath}/Makefile.inc reinplace "s|^LIBBLAS.*$|LIBBLAS = -framework Accelerate|" ${worksrcpath}/Makefile.inc } destroot { eval xinstall -m 644 [glob ${worksrcpath}/include/*.h] ${destroot}${prefix}/include eval xinstall -m 644 [glob ${worksrcpath}/lib/*.a] ${destroot}${prefix}/lib eval xinstall -m 644 [glob ${worksrcpath}/lib/*.dylib] ${destroot}${prefix}/lib } livecheck.type none