source: trunk/dports/math/ml/Portfile

Last change on this file was 152194, checked in by sean@…, 13 months ago

ml: fix build with newer perl; closes #51797

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 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 152194 2016-08-31 20:59:14Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           mpi 1.0
6
7name                ml
8version             6.2
9revision            2
10categories          math
11license             LGPL-2.1
12platforms           darwin
13maintainers         sean openmaintainer
14description         Multilevel Preconditioning Package
15long_description    ML is designed to solve large sparse linear systems of \
16                    equations arising primarily from elliptic PDE discretizations.
17
18homepage            http://trilinos.sandia.gov/packages/ml/
19master_sites        http://ftp.mcs.anl.gov/pub/petsc/externalpackages
20
21checksums           rmd160  f7a56200e19d89c3aa21927d578384a226146199 \
22                    sha256  cd04da3308430c1268560db808bea33e17d82a42324ebbd624ca451b4a6e03ba
23
24mpi.setup           require_fortran
25
26universal_variant   no
27use_parallel_build  no
28
29patchfiles-append   patch-perl.diff
30
31configure.args      --disable-ml-epetra \
32                    --disable-ml-aztecoo \
33                    --disable-ml-examples \
34                    --disable-tests \
35                    --with-blas=/usr/lib/libblas.dylib \
36                    --with-lapack=/usr/lib/liblapack.dylib
37
38configure.cflags    -O3 -mtune=native -fPIC
39configure.cxxflags  -O3 -mtune=native -fPIC
40configure.fflags    -O3 -mtune=native -fPIC
41configure.f90flags  -O3 -mtune=native -fPIC
42
43post-build {
44    system -W ${worksrcpath}/src "${configure.cxx} *.o /usr/lib/libblas.dylib /usr/lib/liblapack.dylib -dynamiclib -Wl,-multiply_defined,suppress,-commons,use_dylibs,-search_paths_first -install_name ${prefix}/lib/lib${name}.${version}.dylib -o lib${name}.${version}.dylib"
45}
46
47post-destroot {
48    move ${worksrcpath}/src/lib${name}.${version}.dylib ${destroot}${prefix}/lib
49    system -W ${destroot}${prefix}/lib "ln -s lib${name}.${version}.dylib lib${name}.dylib"
50}
51
52if {[mpi_variant_isset]} {
53    configure.args-append      --enable-mpi
54    configure.cflags-append    -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX
55    configure.cxxflags-append  -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX
56}
57
58livecheck.type      regex
59livecheck.url       ${master_sites}
60livecheck.regex     ${name}-(\[0-9.\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.