source: trunk/dports/math/metis/Portfile

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

compilers-1.0: move setup call in all ports to after setting of name

  • 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 121952 2014-07-12 05:25:04Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           cmake 1.0
6PortGroup           compilers 1.0
7
8name                metis
9version             5.1.0
10revision            3
11categories          math
12platforms           darwin
13maintainers         sean
14license             Apache-2 LGPL-2.1+
15
16description         A package for unstructured graph partitioning
17
18long_description    METIS is a set of programs for partitioning graphs and \
19                    for producing fill reducing orderings for sparse \
20                    matrices. The algorithms implemented by METIS are based \
21                    on the multilevel graph partitioning scheme described \
22                    in \[KK95a\] and \[KK95e\]. METIS provides high quality \
23                    partitions, is extremely fast, and produces low fill \
24                    orderings.
25
26homepage            http://glaros.dtc.umn.edu/gkhome/metis/metis/overview
27master_sites        http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/
28
29checksums           rmd160  2c4a54bcd3179a609842cde1908dbd232a770495 \
30                    sha256  76faebe03f6c963127dbb73c13eab58c9a3faeae48779f049066a21c087c5db2
31
32compilers.choose    cc cxx cpp
33compilers.setup
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.