Ticket #14833: Portfile

File Portfile, 2.4 KB (added by mmoll@…, 17 years ago)
Line 
1# $Id: $
2
3PortSystem      1.0
4
5name            slepc
6version         2.3.3
7categories      math science
8maintainers     cs.rice.edu: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
20# fixed up patch from official site:
21# (1) removed one patch that was rejected by patch,
22# (2) official path assumed "patch -p1", whereas MacPorts assumes "patch -p0".
23patchfiles      patch-slepc-2.3.3.diff
24
25checksums       md5 5f9172c12f95ea0bebc73d45f4cdcaa0 \
26                sha1 17ffa8507ae81102178e5041e1f57c20cb9143c2
27
28depends_lib-append  port:petsc
29
30extract.suffix  .tgz
31configure.env-append    PETSC_DIR=${prefix}/lib/petsc PETSC_ARCH=darwin \
32                SLEPC_DIR=${worksrcpath}
33configure.cmd   ${worksrcpath}/config/configure.py
34configure.args  --prefix=${prefix}/lib/petsc
35build.env       PETSC_DIR=${prefix}/lib/petsc PETSC_ARCH=darwin \
36                SLEPC_DIR=${worksrcpath}
37destroot.env    PETSC_DIR=${prefix}/lib/petsc PETSC_ARCH=darwin \
38                SLEPC_DIR=${worksrcpath}
39destroot.destdir    SLEPC_INSTALL_DIR=${destroot}${prefix}/lib/petsc
40
41variant arpack description {compile with ARPACK support} {
42    depends_lib-append      port:arpack
43    configure.args-append   --with-arpack
44}
45
46post-activate {
47    ui_msg "********************************************************"
48    ui_msg "* Add the following lines to your .bash_profile if you *"
49    ui_msg "* plan to use the PETSC/SLEPC makefile rules in        *"
50    ui_msg "* $prefix/lib/petsc/bmake:                             *"
51    ui_msg "*                                                      *"
52    ui_msg "*   export PETSC_DIR=${prefix}/lib/petsc               *"
53    ui_msg "*   export PETSC_ARCH=darwin                           *"
54    ui_msg "*   export SLEPC_DIR=${prefix}/lib/petsc               *"
55    ui_msg "*                                                      *"
56    ui_msg "********************************************************"
57}