source: trunk/dports/math/metis/Portfile @ 116385

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

metis: add compilers portgroup

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.8 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 116385 2014-01-23 20:15:19Z sean@macports.org $
3
4PortSystem          1.0
5PortGroup           cmake 1.0
6PortGroup           compilers 1.0
7
8compilers.choose    cc cxx cpp
9compilers.setup
10
11name                metis
12version             5.1.0
13revision            3
14categories          math
15platforms           darwin
16maintainers         sean
17license             Apache-2 LGPL-2.1+
18
19description         A package for unstructured graph partitioning
20
21long_description    METIS is a set of programs for partitioning graphs and \
22                    for producing fill reducing orderings for sparse \
23                    matrices. The algorithms implemented by METIS are based \
24                    on the multilevel graph partitioning scheme described \
25                    in \[KK95a\] and \[KK95e\]. METIS provides high quality \
26                    partitions, is extremely fast, and produces low fill \
27                    orderings.
28
29homepage            http://glaros.dtc.umn.edu/gkhome/metis/metis/overview
30master_sites        http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/
31
32checksums           rmd160  2c4a54bcd3179a609842cde1908dbd232a770495 \
33                    sha256  76faebe03f6c963127dbb73c13eab58c9a3faeae48779f049066a21c087c5db2
34
35patch.pre_args      -p1
36patchfiles-append   remove_home_dir.patch \
37                    cmake64.patch \
38                    sharedprefix.patch \
39                    missing_includes.patch \
40                    cmake_tls.patch \
41                    gkl.patch \
42                    cmake_gklib_tls.patch \
43                    cmake_system_include.patch
44
45configure.args-append \
46                    -DGKLIB_PATH=${worksrcpath}/GKlib \
47                    -DSHARED=1 \
48                    -DMETIS_USE_DOUBLEPRECISION=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-destroot {
62    # Install documentation
63    xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}
64    xinstall -m 644 ${worksrcpath}/manual/manual.pdf \
65        ${destroot}${prefix}/share/doc/${name}
66}
67
68variant openmp description {Enable openmp support} {
69  configure.args-append       -DOPENMP=1
70}
71
72variant longindex description {Build with index type being long} {
73  configure.args-append       -DMETIS_USE_LONGINDEX=1
74}
75
76variant single description {Build with single precision} {
77  configure.args-delete       -DMETIS_USE_DOUBLEPRECISION=1
78}
79
80livecheck.type  regex
81livecheck.url   http://glaros.dtc.umn.edu/gkhome/metis/metis/changes
82livecheck.regex {Ver: ([0-9.]+),}
Note: See TracBrowser for help on using the repository browser.