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

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

math/slepc: version bump to 3.1-p4

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