source: trunk/dports/math/slepc/Portfile @ 132749

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

petsc: update to 3.5.4; revbump descendents

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