source: trunk/dports/math/superlu_dist/Portfile

Last change on this file was 150510, checked in by sean@…, 12 months ago

superlu_dist: update to 5.1.0 which supports cmake

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.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 150510 2016-07-20 20:37:59Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           cmake 1.0
6PortGroup           mpi 1.0
7
8name                superlu_dist
9version             5.1.0
10categories          math
11license             BSD
12platforms           darwin
13maintainers         sean openmaintainer
14description         A package for solving linear equations
15long_description    SuperLU is a general purpose library for the direct \
16                    solution of large, sparse, nonsymmetric systems of \
17                    linear equations on high performance machines.
18
19homepage            http://crd-legacy.lbl.gov/~xiaoye/SuperLU
20master_sites        ${homepage}
21
22distname            ${name}_${version}
23worksrcdir          SuperLU_DIST_${version}
24
25checksums           rmd160  148bf92ee5bfa7fec8501b61d56ce32bc83b4376 \
26                    sha256  30ac554a992441e6041c6fb07772da4fa2fa6b30714279de03573c2cad6e4b60
27
28compilers.choose    cc cxx
29mpi.setup           require
30
31depends_lib         port:parmetis \
32                    port:superlu
33
34configure.cflags    -Os -mtune=native
35
36post-patch {
37    reinplace "s|^enable_language.*Fortran.*||" ${worksrcpath}/CMakeLists.txt
38    reinplace "s|^set(NOFORTRAN FALSE)$|set(NOFORTRAN TRUE)|" ${worksrcpath}/CMakeLists.txt
39}
40
41configure.args-append \
42                    -DTPL_BLAS_LIBRARIES="-framework Accelerate" \
43                    -DTPL_PARMETIS_INCLUDE_DIRS=${prefix}/include \
44                    -DTPL_PARMETIS_LIBRARIES="${prefix}/lib/libparmetis.dylib\;${prefix}/lib/libmetis.dylib" \
45                    -Denable_tests=OFF \
46                    -DUSE_XSDK_DEFAULTS=ON \
47                    -DXSDK_ENABLE_Fortran=OFF
48
49post-destroot {
50    # these are the same files as installed by superlu, so we'll just depend on
51    # superlu for now
52    delete ${destroot}${prefix}/include/superlu_enum_consts.h
53    delete ${destroot}${prefix}/include/supermatrix.h
54}   
55
56variant longindex description {Build with 64 ints} {
57    configure.cflags-append     -DXSDK_INDEX_SIZE=64
58}
59
60livecheck.type      none
Note: See TracBrowser for help on using the repository browser.