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

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

slepc: fix arpack variant call to enforce_fortran

  • 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 122963 2014-08-02 21:59:20Z 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.4.4 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/petsc"
24
25platforms           darwin
26universal_variant   no
27
28checksums           rmd160  f7efe797897974d59a86dceacbefd29fefbeb550 \
29                    sha256  d738843bb48c11bf3e3395988bdd302d10b2eb6da6981d7b4a119477e524f87b
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/petsc
39build.env-append    PETSC_DIR=${prefix}/lib/petsc PETSC_ARCH=arch-installed-petsc SLEPC_DIR=${worksrcpath}
40destroot.env-append PETSC_DIR=${prefix}/lib/petsc PETSC_ARCH=arch-installed-petsc SLEPC_DIR=${worksrcpath}
41destroot.cmd-append SLEPC_DESTDIR=${destroot}${prefix}/lib/petsc
42
43variant arpack description {compile with ARPACK support} {
44    mpi.enforce_variant arpack
45    compilers.enforce_fortran
46
47    pre-fetch {
48        if {![file exists ${prefix}/lib/libparpack.a]} {
49            return -code error "Please install a mpi variant of arpack first."
50        }
51    }
52
53    depends_lib-append      port:arpack
54    configure.args-append   --with-arpack-dir=${prefix} \
55                            --with-arpack-flags=-lparpack,-larpack
56}
57
58# fix install name
59post-destroot {
60    system "install_name_tool -id ${prefix}/lib/petsc/lib/libslepc.dylib ${destroot}${prefix}/lib/petsc/lib/libslepc.dylib"
61}
Note: See TracBrowser for help on using the repository browser.