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

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

science/slepc: use notes instead of ui_msg, clean up configure code, doc fix

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