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

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

slepc: update to 3.4.3 and use mpi portgroup

  • 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 116399 2014-01-23 20:16:13Z sean@macports.org $
3
4PortSystem          1.0
5PortGroup           bitbucket 1.0
6PortGroup           conflicts_build 1.0
7PortGroup           mpi 1.0
8
9mpi.setup
10mpi.enforce_variant petsc
11
12bitbucket.setup     slepc slepc 3.4.3 v
13categories          math science
14maintainers         sean
15license             LGPL
16description         Scalable Library for Eigenvalue Problem Computations
17long_description    SLEPc is a software library for the solution of large \
18                    scale sparse eigenvalue problems on parallel computers. It is an \
19                    extension of PETSc and can be used for either standard or generalized \
20                    eigenproblems, with real or complex arithmetic. It can also be used for \
21                    computing a partial SVD of a large, sparse, rectangular matrix.
22
23notes               "Add the following lines to your .bash_profile if you plan to\
24                    use the PETSC/SLEPC makefile rules in $prefix/lib/petsc/conf:\n\
25                    \texport PETSC_DIR=${prefix}/lib/petsc\n\
26                    \texport SLEPC_DIR=${prefix}/lib/petsc"
27
28platforms           darwin
29universal_variant   no
30
31checksums           rmd160  4f9b2d4137977d87ea7c72fd42acf1005decd07a \
32                    sha256  85859234a56997ba840d1b57c2fbe44420c4c38faf5553d009f347410d3e239f
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    mpi.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.