source: trunk/dports/math/mumps/Portfile @ 146242

Last change on this file since 146242 was 146242, checked in by sean@…, 4 years ago

mumps: remove livecheck since petsc keeps track of it

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.0 KB
Line 
1# -*- 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
2# $Id: Portfile 146242 2016-03-02 00:54:07Z sean@macports.org $
3
4PortSystem          1.0
5PortGroup           mpi 1.0
6
7name                mumps
8version             5.0.1
9categories          math
10license             public-domain
11platforms           darwin
12maintainers         sean openmaintainer
13description         MUltifrontal Massively Parallel sparse direct Solver
14long_description    MUMPS: a parallel sparse direct solver
15supported_archs     noarch
16
17depends_lib         port:scalapack port:parmetis
18
19homepage            http://mumps.enseeiht.fr/
20master_sites        ${homepage}
21
22distname            MUMPS_${version}
23
24checksums           rmd160  f5a99de1a9ee7e28c6f9fddac0a4852ec660109e \
25                    sha256  50355b2e67873e2239b4998a46f2bbf83f70cdad6517730ab287ae3aae9340a0
26
27mpi.setup           require require_fortran
28
29mpi.enforce_variant scalapack
30
31patch.pre_args      -p1
32patchfiles-append   patch-shared.diff
33
34use_parallel_build  no
35use_configure       no
36
37build.target        alllib
38build.args          SHAREDFLAGS="-dynamiclib" PREFIX="${prefix}" SHAREDLIBEXT=".dylib"
39
40configure.cflags    -fPIC -O3 -mtune=native
41configure.fflags    -fPIC -O3 -mtune=native
42configure.f90flags  -fPIC -O3 -mtune=native
43
44post-extract {
45    file copy ${worksrcpath}/Make.inc/Makefile.inc.generic ${worksrcpath}/Makefile.inc
46    reinplace "s|^\#LMETISDIR.*$|LMETISDIR = ${prefix}/lib|" ${worksrcpath}/Makefile.inc
47    reinplace "s|^\#IMETIS.*$|IMETIS = -I${prefix}/include|" ${worksrcpath}/Makefile.inc
48    reinplace "s|^\#LMETIS.*$|LMETIS = ${prefix}/lib/libparmetis.dylib ${prefix}/lib/libmetis.dylib|" ${worksrcpath}/Makefile.inc
49    reinplace "s|^ORDERINGSF.*$|ORDERINGSF = -Dpord -Dparmetis|" ${worksrcpath}/Makefile.inc
50    reinplace "s|^CC .*$|CC = ${configure.cc}|" ${worksrcpath}/Makefile.inc
51    reinplace "s|^FC .*$|FC = ${configure.f90}|" ${worksrcpath}/Makefile.inc
52    reinplace "s|^FL .*$|FL = ${configure.f90}|" ${worksrcpath}/Makefile.inc
53    reinplace "s|^OPTC .*$|OPTC = ${configure.cflags}|" ${worksrcpath}/Makefile.inc
54    reinplace "s|^OPTL .*$|OPTL = ${configure.cflags}|" ${worksrcpath}/Makefile.inc
55    reinplace "s|^OPTF .*$|OPTF = ${configure.f90flags}|" ${worksrcpath}/Makefile.inc
56    reinplace "s|^AR.*$|AR = ar cr |" ${worksrcpath}/Makefile.inc
57    reinplace "s|^RANLIB.*$|RANLIB = ranlib -c|" ${worksrcpath}/Makefile.inc
58    reinplace "s|^SCALAP.*$|SCALAP = ${prefix}/lib/libscalapack.dylib|" ${worksrcpath}/Makefile.inc
59    reinplace "s|^INCPAR.*$|INCPAR = -I\$(topdir)/include|" ${worksrcpath}/Makefile.inc
60    reinplace "s|^LIBPAR.*$|LIBPAR = \$(SCALAP)|" ${worksrcpath}/Makefile.inc
61    reinplace "s|^LIBBLAS.*$|LIBBLAS = -framework Accelerate|" ${worksrcpath}/Makefile.inc
62}
63
64destroot {
65  eval xinstall -m 644 [glob ${worksrcpath}/include/*.h] ${destroot}${prefix}/include
66  eval xinstall -m 644 [glob ${worksrcpath}/lib/*.a] ${destroot}${prefix}/lib
67  eval xinstall -m 644 [glob ${worksrcpath}/lib/*.dylib] ${destroot}${prefix}/lib
68}
69
70livecheck.type      none
Note: See TracBrowser for help on using the repository browser.