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

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

math/slepc: license

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