source: trunk/dports/math/parmetis/Portfile

Last change on this file was 130952, checked in by sean@…, 3 years ago

mpi-1.0: set default variant in the portgroup

  • 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 130952 2015-01-04 06:01:01Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           cmake 1.0
6PortGroup           mpi 1.0
7
8name                parmetis
9version             4.0.3
10revision            3
11categories          math
12platforms           darwin
13maintainers         sean openmaintainer
14# Included license is for "evaluation purposes" only (whatever that means) if
15# you're not a non-profit or US government agency.
16license             Restrictive
17
18description         ParMETIS - parallel graph partitioning
19
20long_description    ParMETIS - Parallel Graph Partitioning and Fill-reducing Matrix Ordering
21
22homepage            http://glaros.dtc.umn.edu/gkhome/metis/parmetis/overview
23master_sites        http://glaros.dtc.umn.edu/gkhome/fetch/sw/parmetis/
24
25checksums           rmd160  1e81baf2bafe79b7abed656bff2fa3745966a196 \
26                    sha256  f2d9a231b7cf97f1fee6e8c9663113ebf6c240d407d3c118c55b3633d6be6e5f
27
28compilers.choose    cc cxx
29mpi.setup           require
30
31depends_lib         port:metis
32
33patch.pre_args      -p1
34patchfiles-append   sharedprefix.patch \
35                    break_code_copying.patch \
36                    headers.patch \
37                    add_math_flag.patch \
38                    tls.patch \
39                    less_than_equal.patch \
40                    default_path.patch \
41                    static.patch \
42                    cmake_system_include.patch
43
44# mpich-default and openmpi are not universal
45universal_variant   no
46
47configure.args-append \
48                    -DSHARED=1
49
50if {[variant_isset debug]} {
51    # just to be safe
52    configure.cflags-delete    -O1 -O2 -O3 -Os -DNDEBUG
53    configure.cxxflags-delete  -O1 -O2 -O3 -Os -DNDEBUG
54    configure.optflags-delete  -O1 -O2 -O3 -Os -DNDEBUG
55
56    configure.optflags-append  -O0
57    configure.cflags-append    -g
58    configure.cxxflags-append  -g
59}
60
61post-extract {
62    delete ${worksrcpath}/metis/include/metis.h
63}
64
65livecheck.type      regex
66livecheck.url       http://glaros.dtc.umn.edu/gkhome/metis/parmetis/download
67livecheck.regex     /${name}-(\[0-9.\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.