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

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

slepc: update to 3.6.1

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 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 140106 2015-09-09 21:27:27Z sean@macports.org $
3
4PortSystem          1.0
5PortGroup           bitbucket 1.0
6PortGroup           mpi 1.0
7
8bitbucket.setup     slepc slepc 3.6.1 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  3ba7492106c896128ba1615ea4493a47e1b6b976 \
28                    sha256  434a41d7b6f398751a5acfa469ec26f0c98349f37ce33efe838cd7b1fa107976
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    compilers.enforce_fortran
49
50    pre-fetch {
51        if {![file exists ${prefix}/lib/libparpack.a]} {
52            return -code error "Please install a mpi variant of arpack first."
53        }
54    }
55
56    depends_lib-append      port:arpack
57    configure.args-append   --with-arpack-dir=${prefix} \
58                            --with-arpack-flags=-lparpack,-larpack
59}
60
61# fix install name
62post-destroot {
63    system "install_name_tool -id ${prefix}/lib/slepc/lib/libslepc.dylib ${destroot}${prefix}/lib/slepc/lib/libslepc.dylib"
64    reinplace -W ${destroot}${prefix}/lib/slepc/lib/slepc/conf "s,${destroot},,g" slepc_variables slepc_rules
65}
Note: See TracBrowser for help on using the repository browser.