source: trunk/dports/math/slepc/Portfile

Last change on this file was 153419, checked in by sean@…, 12 months ago

slepc: update to 3.7.3

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 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 153419 2016-09-30 00:19:37Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           bitbucket 1.0
6PortGroup           mpi 1.0
7
8bitbucket.setup     slepc slepc 3.7.3 v
9categories          math science
10maintainers         sean
11license             LGPL
12description         Scalable Library for Eigenvalue Problem Computations
13long_description    SLEPc is a software library for the solution of large \
14                    scale sparse eigenvalue problems on parallel computers. It is an \
15                    extension of PETSc and can be used for either standard or generalized \
16                    eigenproblems, with real or complex arithmetic. It can also be used for \
17                    computing a partial SVD of a large, sparse, rectangular matrix.
18
19notes               "Add the following lines to your .bash_profile if you plan to\
20                    use the PETSC/SLEPC makefile rules in $prefix/lib/petsc/conf:\n\
21                    \texport PETSC_DIR=${prefix}/lib/petsc\n\
22                    \texport SLEPC_DIR=${prefix}/lib/slepc"
23
24platforms           darwin
25universal_variant   no
26
27checksums           rmd160  daf92f73deaabf529c3bfa883fbd178b33ca4825 \
28                    sha256  df907126ca75bb7ade45015e681269718b1f1dad7eb2e605fd40efebb8e4fdd3
29
30mpi.setup
31mpi.enforce_variant petsc
32
33depends_lib-append  port:petsc
34use_parallel_build  no
35
36depends_build-append \
37                    port:sowing
38
39configure.args      --prefix=${prefix}/lib/slepc
40configure.env-append \
41                    PETSC_DIR=${prefix}/lib/petsc
42build.env-append    PETSC_DIR=${prefix}/lib/petsc
43destroot.env-append PETSC_DIR=${prefix}/lib/petsc
44destroot.cmd-append SLEPC_DESTDIR=${destroot}${prefix}/lib/slepc
45
46variant arpack description {compile with ARPACK support} {
47    mpi.enforce_variant arpack
48
49    pre-fetch {
50        if {![file exists ${prefix}/lib/libparpack.a]} {
51            return -code error "Please install a mpi variant of arpack first."
52        }
53    }
54
55    depends_lib-append      port:arpack
56    configure.args-append   --with-arpack-dir=${prefix} \
57                            --with-arpack-flags=-lparpack,-larpack
58}
59
60# fix install name
61post-destroot {
62    system "install_name_tool -id ${prefix}/lib/slepc/lib/libslepc.dylib ${destroot}${prefix}/lib/slepc/lib/libslepc.dylib"
63    reinplace -W ${destroot}${prefix}/lib/slepc/lib/slepc/conf "s,${destroot},,g" slepc_variables slepc_rules
64}
Note: See TracBrowser for help on using the repository browser.