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

Last change on this file since 72499 was 72499, checked in by mmoll@…, 9 years ago

math/slepc: increase revision number

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.4 KB
RevLine 
[37219]1# $Id: Portfile 72499 2010-10-18 14:32:54Z mmoll@macports.org $
2
3PortSystem      1.0
4
5name            slepc
[71874]6version         3.1-p4
[72499]7revision        1
[37219]8categories      math science
9maintainers     mmoll
10description     Scalable Library for Eigenvalue Problem Computations
11long_description    SLEPc is a software library for the solution of large \
12    scale sparse eigenvalue problems on parallel computers. It is an \
13    extension of PETSc and can be used for either standard or generalized \
14    eigenproblems, with real or complex arithmetic. It can also be used for \
15    computing a partial SVD of a large, sparse, rectangular matrix.
16platforms       darwin
17homepage        http://www.grycap.upv.es/slepc
18master_sites    http://www.grycap.upv.es/slepc/download/distrib
19distname        ${name}-${version}
[60102]20universal_variant   no
[37219]21
[71874]22checksums           md5     96057d4ee9d1a17c7b1aa614d864f84a \
23                    sha1    a781a90c62465e88be322cdd3ff4b6bff7f3f877 \
24                    rmd160  7a0776a49431e1967afe06ee07563b8df463c064
[37219]25
26depends_lib-append  port:petsc
27
28extract.suffix  .tgz
[71874]29configure.env-append  PETSC_DIR=${prefix}/lib/petsc SLEPC_DIR=${worksrcpath}
30configure.cmd         ${worksrcpath}/config/configure.py
31configure.args        --prefix=${prefix}/lib/petsc
32build.env-append      PETSC_DIR=${prefix}/lib/petsc PETSC_ARCH=installed-petsc SLEPC_DIR=${worksrcpath}
33destroot.env-append   PETSC_DIR=${prefix}/lib/petsc PETSC_ARCH=installed-petsc SLEPC_DIR=${worksrcpath}
[72498]34destroot.cmd-append   SLEPC_INSTALL_DIR=${destroot}${prefix}/lib/petsc
[37219]35
36variant arpack description {compile with ARPACK support} {
37    pre-fetch {
38        if {![file exists ${prefix}/lib/libparpack.a]} {
39            return -code error "Please install the mpi variant of arpack first."
40        }
41    }
42    # This is a rather fragile way to figure out where the fortran library can be
43    # found that is needed to link against libparpack.a:
[71874]44    if {[file exists ${prefix}/lib/gcc44]} {
45        set fortrandir ${prefix}/lib/gcc44
[37219]46    } else {
[71874]47        if {[file exists ${prefix}/lib/gcc43]} {
48            set fortrandir ${prefix}/lib/gcc43
[37219]49        } else {
[71874]50            if {[file exists ${prefix}/lib/gcc42]} {
51                set fortrandir ${prefix}/lib/gcc42
[37219]52            } else {
[71874]53                if {[file exists ${prefix}/lib/g95]} {
54                    set fortrandir ${prefix}/lib/gcc95
55                } else {
56                    return -code error "Please install a fortran compiler by installing one of the following ports: gcc42, gcc43, or g95."
57                }
[37219]58            }
59        }
60    }
61    depends_lib-append      port:arpack
62    configure.args-append   --with-arpack-dir=${fortrandir} \
63                --with-arpack-flags=-lparpack,-larpack,-lgfortran,-lmpi_f77
64}
65
66post-activate {
67    ui_msg "********************************************************"
68    ui_msg "* Add the following lines to your .bash_profile if you *"
69    ui_msg "* plan to use the PETSC/SLEPC makefile rules in        *"
[49722]70    ui_msg "* $prefix/lib/petsc/conf:                              *"
[37219]71    ui_msg "*                                                      *"
72    ui_msg "*   export PETSC_DIR=${prefix}/lib/petsc               *"
73    ui_msg "*   export SLEPC_DIR=${prefix}/lib/petsc               *"
74    ui_msg "*                                                      *"
75    ui_msg "********************************************************"
76}
[53642]77
[57375]78livecheck.type  regex
[53642]79livecheck.url   http://www.grycap.upv.es/slepc/download/download.htm
[53647]80livecheck.regex slepc-(\[0-9.\]+(-p\[0-9\]+))\\.tgz
Note: See TracBrowser for help on using the repository browser.