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

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

slepc: give up maintainership

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.9 KB
Line 
1# $Id: Portfile 113581 2013-11-20 03:34:17Z mmoll@macports.org $
2
3PortSystem      1.0
4PortGroup       conflicts_build 1.0
5PortGroup       active_variants 1.1
6
7name            slepc
8version         3.3-p4
9categories      math science
10maintainers     nomaintainer
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     d034e8b894bda374ec330a750428ac3f \
30                    sha1    49620a9aa6bb502bd773dadee11aa7f98a784ba6 \
31                    rmd160  0426a86aab0e765618ade3ac8c17548661cbe1f7
32
33depends_lib-append  port:petsc
34
35configure.args        --prefix=${prefix}/lib/petsc
36build.env-append      PETSC_DIR=${prefix}/lib/petsc PETSC_ARCH=arch-installed-petsc SLEPC_DIR=${worksrcpath}
37destroot.env-append   PETSC_DIR=${prefix}/lib/petsc PETSC_ARCH=arch-installed-petsc SLEPC_DIR=${worksrcpath}
38destroot.cmd-append   SLEPC_DESTDIR=${destroot}${prefix}/lib/petsc
39
40conflicts_build     slepc
41
42variant arpack description {compile with ARPACK support} {
43    require_active_variants arpack openmpi
44    pre-fetch {
45        if {![file exists ${prefix}/lib/libparpack.a]} {
46            return -code error "Please install the openmpi or mpich2 variant of arpack first."
47        }
48    }
49    # This is a rather fragile way to figure out where the fortran library can be
50    # found that is needed to link against libparpack.a:
51    set fortrandirs {g95 gcc42 gcc43 gcc44 gcc45 gcc46 gcc47 gcc48}
52    set fortrandir ""
53    foreach dir ${fortrandirs} {
54        if {[file exists ${prefix}/lib/${dir}]} {
55            set fortrandir ${prefix}/lib/${dir}
56        }
57    }
58    if {${fortrandir} == ""} {
59        ui_error "Install a fortran compiler by installing one of these ports:"
60        ui_error "gcc42, gcc43, gcc44, gcc45, gcc46, gcc47, gcc48, or g95."
61        return -code error "No fortran compiler installed"
62    }
63    depends_lib-append      port:arpack
64    configure.args-append   --with-arpack-dir=${fortrandir} \
65                --with-arpack-flags=-lparpack,-larpack,-lgfortran
66}
67
68livecheck.type  regex
69livecheck.url   http://www.grycap.upv.es/slepc/download/download.htm
70livecheck.regex slepc-(\[0-9.\]+(-p\[0-9\]+))\\.tar.gz
Note: See TracBrowser for help on using the repository browser.