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

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

slepc: update to version 3.0.0-p3

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.1 KB
Line 
1# $Id: Portfile 50212 2009-04-27 20:35:36Z mmoll@macports.org $
2
3PortSystem      1.0
4
5name            slepc
6version         3.0.0-p3
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}
19
20patchfiles      patch-config-configure.py.diff
21
22checksums       md5     03b9099767a2315ed2020bc8ebb5847a \
23                sha1    5cdd72251c5c9e88262678bd357a7cd22a6fe1b8 \
24                rmd160  cda6773bc43f03472630d74e7a091f49d9b55b22
25
26depends_lib-append  port:petsc
27
28extract.suffix  .tgz
29configure.env-append    PETSC_DIR=${prefix}/lib/petsc \
30                SLEPC_DIR=${worksrcpath}
31configure.cmd   ${worksrcpath}/config/configure.py
32configure.args  --prefix=${prefix}/lib/petsc
33build.env       PETSC_DIR=${prefix}/lib/petsc  \
34                SLEPC_DIR=${worksrcpath}
35destroot.env    PETSC_DIR=${prefix}/lib/petsc PETSC_ARCH=. \
36                SLEPC_DIR=${worksrcpath}
37destroot.destdir    SLEPC_INSTALL_DIR=${destroot}${prefix}/lib/petsc
38
39variant arpack description {compile with ARPACK support} {
40    pre-fetch {
41        if {![file exists ${prefix}/lib/libparpack.a]} {
42            return -code error "Please install the mpi variant of arpack first."
43        }
44    }
45    # This is a rather fragile way to figure out where the fortran library can be
46    # found that is needed to link against libparpack.a:
47    if {[file exists ${prefix}/lib/gcc43]} {
48        set fortrandir ${prefix}/lib/gcc43
49    } else {
50        if {[file exists ${prefix}/lib/gcc42]} {
51            set fortrandir ${prefix}/lib/gcc42
52        } else {
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            }
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}
Note: See TracBrowser for help on using the repository browser.