source: trunk/dports/science/cdo/Portfile @ 97518

Last change on this file since 97518 was 97518, checked in by takeshi@…, 8 years ago

cdo: added mpi variant to enable build when hdf5-18 is installed with +openmpi or +mpich2, closing #36017

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 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 97518 2012-09-07 21:21:29Z takeshi@macports.org $
3
4PortSystem                  1.0
5
6name                        cdo
7version                     1.5.5
8revision                    2
9platforms                   darwin
10maintainers                 takeshi
11license                     GPL-2
12categories                  science
13description                 Climate Data Operators
14homepage                    https://code.zmaw.de/projects/cdo
15master_sites                https://code.zmaw.de/attachments/download/2879
16checksums           md5     8072ebfebfa6a2c9b4ee4098d9fec338 \
17                    sha1    f8bc37985b0d6799df80b9083ff5a34f61dd207e \
18                    rmd160  dcc6e30ace830df12d5714a983189cd6ed333871
19long_description \
20    CDO is a collection of command line Operators               \
21    to manipulate and analyse Climate Data files.               \
22    Supported data formats are GRIB, netCDF, SERVICE, EXTRA and IEG. \
23    There are more than 600 operators available.
24
25fetch.ignore_sslcert        yes
26
27depends_lib                 port:netcdf \
28                            port:proj47
29
30configure.args              --with-netcdf=${prefix} \
31                            --disable-dependency-tracking \
32                            --with-proj=${prefix}/lib/proj47 \
33                            --with-hdf5=${prefix} \
34                            --with-zlib=${prefix}
35
36# Test if hdf5-18 is installed with +openmpi or +mpich2
37if {[file exists ${prefix}/bin/h5pcc]} {
38    default_variants +mpi
39}
40
41post-destroot {
42    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/doc
43    eval xinstall -m 644 [glob ${worksrcpath}/doc/*.pdf] ${destroot}${prefix}/share/doc/${name}/doc
44    foreach f {AUTHORS  ChangeLog NEWS OPERATORS README} {
45        eval xinstall -m 644 [glob ${worksrcpath}/${f}] ${destroot}${prefix}/share/doc/${name}
46    }
47}
48
49variant grib2 description {enable experimental grib2 support} {
50    depends_lib-append      port:grib_api
51    configure.args-append   --with-jasper=${prefix} \
52                            --with-grib_api=${prefix}
53    configure.ldflags-append    -lpng -lopenjpeg
54}
55
56variant mpi description {compile with h5pcc} {
57    configure.cc            ${prefix}/bin/h5pcc
58}
59
60livecheck.type              regex
61livecheck.url               ${homepage}
62livecheck.regex             {Version ([0-9]+\.[0-9]+\.[0-9]+\.*[0-9]*)}
Note: See TracBrowser for help on using the repository browser.