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

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

slepc: add modeline and whitespace cleanup

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.1 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 115876 2014-01-13 06:11:23Z sean@macports.org $
3
4PortSystem          1.0
5PortGroup           conflicts_build 1.0
6PortGroup           active_variants 1.1
7
8name                slepc
9version             3.3-p4
10categories          math science
11maintainers         sean
12license             LGPL
13description         Scalable Library for Eigenvalue Problem Computations
14long_description    SLEPc is a software library for the solution of large \
15                    scale sparse eigenvalue problems on parallel computers. It is an \
16                    extension of PETSc and can be used for either standard or generalized \
17                    eigenproblems, with real or complex arithmetic. It can also be used for \
18                    computing a partial SVD of a large, sparse, rectangular matrix.
19
20notes               "Add the following lines to your .bash_profile if you plan to\
21                    use the PETSC/SLEPC makefile rules in $prefix/lib/petsc/conf:\n\
22                    \texport PETSC_DIR=${prefix}/lib/petsc\n\
23                    \texport SLEPC_DIR=${prefix}/lib/petsc"
24
25platforms           darwin
26homepage            http://www.grycap.upv.es/slepc
27master_sites        http://www.grycap.upv.es/slepc/download/distrib
28distname            ${name}-${version}
29universal_variant   no
30
31checksums           md5     d034e8b894bda374ec330a750428ac3f \
32                    sha1    49620a9aa6bb502bd773dadee11aa7f98a784ba6 \
33                    rmd160  0426a86aab0e765618ade3ac8c17548661cbe1f7
34
35depends_lib-append  port:petsc
36
37configure.args      --prefix=${prefix}/lib/petsc
38build.env-append    PETSC_DIR=${prefix}/lib/petsc PETSC_ARCH=arch-installed-petsc SLEPC_DIR=${worksrcpath}
39destroot.env-append PETSC_DIR=${prefix}/lib/petsc PETSC_ARCH=arch-installed-petsc SLEPC_DIR=${worksrcpath}
40destroot.cmd-append SLEPC_DESTDIR=${destroot}${prefix}/lib/petsc
41
42conflicts_build     slepc
43
44variant arpack description {compile with ARPACK support} {
45    require_active_variants arpack openmpi
46    pre-fetch {
47        if {![file exists ${prefix}/lib/libparpack.a]} {
48            return -code error "Please install the openmpi or mpich2 variant of arpack first."
49        }
50    }
51    # This is a rather fragile way to figure out where the fortran library can be
52    # found that is needed to link against libparpack.a:
53    set fortrandirs {g95 gcc42 gcc43 gcc44 gcc45 gcc46 gcc47 gcc48}
54    set fortrandir ""
55    foreach dir ${fortrandirs} {
56        if {[file exists ${prefix}/lib/${dir}]} {
57            set fortrandir ${prefix}/lib/${dir}
58        }
59    }
60    if {${fortrandir} == ""} {
61        ui_error "Install a fortran compiler by installing one of these ports:"
62        ui_error "gcc42, gcc43, gcc44, gcc45, gcc46, gcc47, gcc48, or g95."
63        return -code error "No fortran compiler installed"
64    }
65    depends_lib-append      port:arpack
66    configure.args-append   --with-arpack-dir=${fortrandir} \
67                --with-arpack-flags=-lparpack,-larpack,-lgfortran
68}
69
70livecheck.type      regex
71livecheck.url       http://www.grycap.upv.es/slepc/download/download.htm
72livecheck.regex     slepc-(\[0-9.\]+(-p\[0-9\]+))\\.tar.gz
Note: See TracBrowser for help on using the repository browser.