# -*- 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 # $Id: Portfile 142158 2015-11-04 23:30:54Z sean@macports.org $ PortSystem 1.0 PortGroup bitbucket 1.0 PortGroup mpi 1.0 bitbucket.setup slepc slepc 3.6.2 v categories math science maintainers sean license LGPL description Scalable Library for Eigenvalue Problem Computations long_description SLEPc is a software library for the solution of large \ scale sparse eigenvalue problems on parallel computers. It is an \ extension of PETSc and can be used for either standard or generalized \ eigenproblems, with real or complex arithmetic. It can also be used for \ computing a partial SVD of a large, sparse, rectangular matrix. notes "Add the following lines to your .bash_profile if you plan to\ use the PETSC/SLEPC makefile rules in $prefix/lib/petsc/conf:\n\ \texport PETSC_DIR=${prefix}/lib/petsc\n\ \texport SLEPC_DIR=${prefix}/lib/slepc" platforms darwin universal_variant no checksums rmd160 c5a15b922f00c80400b357174ec0447f60571379 \ sha256 1cbb3de5673d5f2325b5a986b029ff12d9dc96c9659fe5ab11a444f0ee44878f mpi.setup mpi.enforce_variant petsc depends_lib-append port:petsc use_parallel_build no depends_build-append \ port:sowing configure.args --prefix=${prefix}/lib/slepc configure.env-append \ PETSC_DIR=${prefix}/lib/petsc build.env-append PETSC_DIR=${prefix}/lib/petsc destroot.env-append PETSC_DIR=${prefix}/lib/petsc destroot.cmd-append SLEPC_DESTDIR=${destroot}${prefix}/lib/slepc variant arpack description {compile with ARPACK support} { mpi.enforce_variant arpack pre-fetch { if {![file exists ${prefix}/lib/libparpack.a]} { return -code error "Please install a mpi variant of arpack first." } } depends_lib-append port:arpack configure.args-append --with-arpack-dir=${prefix} \ --with-arpack-flags=-lparpack,-larpack } # fix install name post-destroot { system "install_name_tool -id ${prefix}/lib/slepc/lib/libslepc.dylib ${destroot}${prefix}/lib/slepc/lib/libslepc.dylib" reinplace -W ${destroot}${prefix}/lib/slepc/lib/slepc/conf "s,${destroot},,g" slepc_variables slepc_rules }