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

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

slepc: update to 3.5 and change path to not collide with petsc; fixes #44492

  • 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 122964 2014-08-02 21:59:27Z sean@macports.org $
3
4PortSystem          1.0
5PortGroup           bitbucket 1.0
6PortGroup           conflicts_build 1.0
7PortGroup           mpi 1.0
8
9bitbucket.setup     slepc slepc 3.5 v
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  e4a5f50e76ac57446d95cbfd9b72bfd520b8df4b \
29                    sha256  f5fe1612fea623dd49149c08787c342196fd45bde376c543b9f31fe63013cf3f
30
31mpi.setup
32mpi.enforce_variant petsc
33
34depends_lib-append  port:petsc
35conflicts_build     slepc
36use_parallel_build  no
37
38configure.args      --prefix=${prefix}/lib/slepc
39configure.env-append \
40                    PETSC_DIR=${prefix}/lib/petsc
41build.env-append    PETSC_DIR=${prefix}/lib/petsc
42destroot.env-append PETSC_DIR=${prefix}/lib/petsc
43destroot.cmd-append SLEPC_DESTDIR=${destroot}${prefix}/lib/slepc
44
45variant arpack description {compile with ARPACK support} {
46    mpi.enforce_variant arpack
47    compilers.enforce_fortran
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/conf "s,${destroot},,g" slepc_variables slepc_rules
64}
Note: See TracBrowser for help on using the repository browser.