# -*- 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 # $Id$ PortSystem 1.0 PortGroup cmake 1.0 PortGroup compilers 1.0 name grib_api version 1.18.0 platforms darwin maintainers takeshi license Apache-2 categories science description GRIB decoder homepage https://software.ecmwf.int/wiki/display/GRIB/Home master_sites https://software.ecmwf.int/wiki/download/attachments/3473437 distname ${name}-${version}-Source checksums rmd160 93846fae559958be1a1ff4f57eec192047baf66a \ sha256 dfffeeb4df715b234907cb12d6729617bed0df0ff023337c2dd3cd20ab58199e long_description \ The ECMWF GRIB API is an application program interface accessible \ from C and FORTRAN programs developed for encoding and decoding \ WMO FM-92 GRIB edition 1 and edition 2 messages. A useful set of \ command line tools is also provided to give quick access to grib messages. if [fortran_variant_isset] { compilers.choose fc f77 f90 } compilers.setup -clang -dragonegg -gfortran -llvm -gcc44 -gcc45 -gcc46 depends_build-append \ bin:bison:bison \ bin:flex:flex \ port:perl5 depends_lib port:jasper \ port:hdf5 \ port:openjpeg15 \ port:libpng \ port:netcdf \ port:zlib fetch.ignore_sslcert yes cmake.out_of_source yes if {![fortran_variant_isset]} { default_variants +gcc5 } configure.args-append \ -DENABLE_FORTRAN=OFF \ -DENABLE_NETCDF=ON \ -DENABLE_PNG=ON \ -DENABLE_PYTHON=OFF \ -DENABLE_TESTS=OFF \ -DJASPER_INCLUDE_DIR=${prefix}/include \ -DJASPER_LIBRARY_RELEASE=${prefix}/lib/libjasper.dylib \ -DHDF5_z_LIBRARY_RELEASE=${prefix}/lib/libz.dylib \ -DNETCDF_CONFIG_EXECUTABLE=${prefix}/bin/nc-config \ -DOPENJPEG_INCLUDE_DIR=${prefix}/include/openjpeg-1.5 \ -DOPENJPEG_LIBRARY=${prefix}/lib/libopenjpeg.dylib \ -DPERL_EXECUTABLE=${prefix}/bin/perl \ -DZLIB_INCLUDE_DIR=${prefix}/include \ -DZLIB_LIBRARY=${prefix}/lib/libz.dylib if {[variant_isset g95]} { configure.args-append -DBUILD_SHARED_LIBS=OFF } post-destroot { xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name} xinstall -m 644 {*}[glob ${worksrcpath}/html/*.html] \ ${destroot}${prefix}/share/doc/${name} } if {[fortran_variant_isset]} { configure.args-delete -DENABLE_FORTRAN=OFF configure.args-append -DENABLE_FORTRAN=ON } variant python27 description {Add support for python27} { depends_lib-append port:py27-numpy configure.args-delete -DENABLE_PYTHON=OFF configure.args-append -DENABLE_PYTHON=ON \ -DPYTHON_CONFIG=${prefix}/bin/python2.7-config \ -DPYTHON_EXECUTABLE=${prefix}/bin/python2.7 \ } variant openmp description {Add support for OpenMP} { configure.args-append -DENABLE_GRIB_OMP_THREADS=ON } livecheck.type regex livecheck.url ${homepage} livecheck.regex "GRIB API version (\\d+(?:\\.\\d+)*)"