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

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

slepc: update to 3.6.2 and remove unneccessary enforce_fortran

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 KB
RevLine 
[115876]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
[37219]2# $Id: Portfile 142158 2015-11-04 23:30:54Z sean@macports.org $
3
[115876]4PortSystem          1.0
[116399]5PortGroup           bitbucket 1.0
6PortGroup           mpi 1.0
[37219]7
[142158]8bitbucket.setup     slepc slepc 3.6.2 v
[115876]9categories          math science
10maintainers         sean
11license             LGPL
12description         Scalable Library for Eigenvalue Problem Computations
[37219]13long_description    SLEPc is a software library for the solution of large \
[115876]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.
[74610]18
[115876]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\
[122964]22                    \texport SLEPC_DIR=${prefix}/lib/slepc"
[115876]23
24platforms           darwin
[60102]25universal_variant   no
[37219]26
[142158]27checksums           rmd160  c5a15b922f00c80400b357174ec0447f60571379 \
28                    sha256  1cbb3de5673d5f2325b5a986b029ff12d9dc96c9659fe5ab11a444f0ee44878f
[37219]29
[121955]30mpi.setup
31mpi.enforce_variant petsc
32
[37219]33depends_lib-append  port:petsc
[116399]34use_parallel_build  no
[37219]35
[130200]36depends_build-append \
37                    port:sowing
38
[122964]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
[37219]45
[116399]46variant arpack description {compile with ARPACK support} {
47    mpi.enforce_variant arpack
[87440]48
[37219]49    pre-fetch {
50        if {![file exists ${prefix}/lib/libparpack.a]} {
[116399]51            return -code error "Please install a mpi variant of arpack first."
[37219]52        }
53    }
[116399]54
[37219]55    depends_lib-append      port:arpack
[116399]56    configure.args-append   --with-arpack-dir=${prefix} \
57                            --with-arpack-flags=-lparpack,-larpack
[37219]58}
59
[116399]60# fix install name
61post-destroot {
[122964]62    system "install_name_tool -id ${prefix}/lib/slepc/lib/libslepc.dylib ${destroot}${prefix}/lib/slepc/lib/libslepc.dylib"
[140106]63    reinplace -W ${destroot}${prefix}/lib/slepc/lib/slepc/conf "s,${destroot},,g" slepc_variables slepc_rules
[116399]64}
Note: See TracBrowser for help on using the repository browser.