source: trunk/dports/math/scalapack/Portfile

Last change on this file was 152195, checked in by sean@…, 11 months ago

scalapack: use the correct library location

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 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 152195 2016-08-31 20:59:17Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           cmake 1.0
6PortGroup           mpi 1.0
7PortGroup           linear_algebra 1.0
8
9name                scalapack
10version             2.0.2
11revision            1
12categories          math
13platforms           darwin
14maintainers         sean openmaintainer
15supported_archs     noarch
16license             BSD
17description         A package for solving linear equations
18long_description    The ScaLAPACK (or Scalable LAPACK) library includes \
19                    a subset of LAPACK routines redesigned for distributed \
20                    memory MIMD parallel computers. Since version 2.0.0, \
21                    ScaLAPACK includes BLACS.
22
23homepage            http://www.netlib.org/scalapack/
24master_sites        ${homepage}
25extract.suffix      .tgz
26
27checksums           rmd160  cbe6b783aab96cc73f37156b10e28accffdf28e3 \
28                    sha256  0c74aeae690fe5ee4db7926f49c5d0bb69ce09eea75beb915e00bba07530395c
29
30mpi.setup           require
31
32configure.args      -DCMAKE_INSTALL_NAME_DIR=${prefix}/lib \
33                    -DBUILD_SHARED_LIBS=ON \
34                    -DBUILD_TESTING=ON
35# BUILD_TESTING only affects BLACS directory anyway
36
37test.run            yes
38
39pre-test {
40    # test infrastructure uses /bin/ps (I think for checking on job timeout), which is forbidden by sandboxing
41    append portsandbox_profile " (allow process-exec (literal \"/bin/ps\") (with no-profile))"
42}
43
44pre-configure {
45    configure.args-append \
46        -DMPI_C_COMPILER=${mpi.cc} \
47        -DMPI_Fortran_COMPILER=${mpi.fc} \
48        -DMPIEXEC=${prefix}/bin/${mpi.exec} \
49        -DLAPACK_LIBRARIES="-L${prefix}/lib ${linalglib}"
50}
51
52livecheck.type      regex
53livecheck.regex     ${name}-(\[0-9.\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.