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 sean@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup cmake 1.0 |
---|
6 | PortGroup compilers 1.0 |
---|
7 | |
---|
8 | name metis |
---|
9 | version 5.1.0 |
---|
10 | revision 3 |
---|
11 | categories math |
---|
12 | platforms darwin |
---|
13 | maintainers sean |
---|
14 | license Apache-2 LGPL-2.1+ |
---|
15 | |
---|
16 | description A package for unstructured graph partitioning |
---|
17 | |
---|
18 | long_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 | |
---|
26 | homepage http://glaros.dtc.umn.edu/gkhome/metis/metis/overview |
---|
27 | master_sites http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/ |
---|
28 | |
---|
29 | checksums rmd160 2c4a54bcd3179a609842cde1908dbd232a770495 \ |
---|
30 | sha256 76faebe03f6c963127dbb73c13eab58c9a3faeae48779f049066a21c087c5db2 |
---|
31 | |
---|
32 | compilers.choose cc cxx cpp |
---|
33 | compilers.setup |
---|
34 | |
---|
35 | patch.pre_args -p1 |
---|
36 | patchfiles-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 | |
---|
45 | configure.args-append \ |
---|
46 | -DGKLIB_PATH=${worksrcpath}/GKlib \ |
---|
47 | -DSHARED=1 \ |
---|
48 | -DMETIS_USE_DOUBLEPRECISION=1 |
---|
49 | |
---|
50 | if {[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 | |
---|
61 | post-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 | |
---|
68 | variant openmp description {Enable openmp support} { |
---|
69 | configure.args-append -DOPENMP=1 |
---|
70 | } |
---|
71 | |
---|
72 | variant longindex description {Build with index type being long} { |
---|
73 | configure.args-append -DMETIS_USE_LONGINDEX=1 |
---|
74 | } |
---|
75 | |
---|
76 | variant single description {Build with single precision} { |
---|
77 | configure.args-delete -DMETIS_USE_DOUBLEPRECISION=1 |
---|
78 | } |
---|
79 | |
---|
80 | livecheck.type regex |
---|
81 | livecheck.url http://glaros.dtc.umn.edu/gkhome/metis/metis/changes |
---|
82 | livecheck.regex {Ver: ([0-9.]+),} |
---|