# -*- 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 153419 2016-09-30 00:19:37Z sean@macports.org $ PortSystem 1.0 PortGroup bitbucket 1.0 PortGroup mpi 1.0 bitbucket.setup slepc slepc 3.7.3 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 daf92f73deaabf529c3bfa883fbd178b33ca4825 \ sha256 df907126ca75bb7ade45015e681269718b1f1dad7eb2e605fd40efebb8e4fdd3 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 }