source: trunk/dports/science/nco/Portfile @ 136910

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

nco: update to 4.4.9

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.7 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 136910 2015-05-29 20:58:02Z takeshi@macports.org $
3
4PortSystem          1.0
5PortGroup           compilers 1.0
6PortGroup           github 1.0
7
8github.setup        czender nco 4.4.9
9platforms           darwin
10maintainers         takeshi
11license             GPL-3
12categories          science
13description         The netCDF Operators
14master_sites        sourceforge \
15                    http://dust.ess.uci.edu/${name}/src/ \
16                    http://nco.sourceforge.net/src/
17
18compilers.choose    cc
19compilers.setup
20
21checksums           md5     94dbce7d8b43ccfaf6b5a4738883bc49 \
22                    sha1    5804ea35dabf4f95f0c6cab1b3ff154ec0776b38 \
23                    rmd160  5a5041e672a5fa73439a15a22b0b39eb41e75f94
24
25homepage            http://nco.sourceforge.net/
26long_description \
27    Each NCO operator (e.g., ncks) takes netCDF or HDF input file(s), \
28    performs an operation (e.g., averaging, hyperslabbing, or renaming), \
29    and outputs a processed netCDF file. Although most users of netCDF \
30    and HDF data are involved in scientific research, these data formats, \
31    and thus NCO, are generic and are equally useful in fields like finance. \
32    This version is OPeNDAP/DODS enabled, so it can be given \
33    URLs to read remote datasets as if they were local netCDF files.
34
35depends_lib         port:curl \
36                    port:gettext \
37                    port:libiconv \
38                    port:libxml2 \
39                    port:netcdf \
40                    port:openssl \
41                    port:udunits2 \
42                    port:zlib \
43                    port:gsl \
44                    port:hdf5
45depends_build       port:antlr \
46                    port:bison \
47                    port:m4 \
48                    port:texinfo
49depends_run         port:wget
50
51configure.env       HAVE_ANTLR=yes ANTLR_ROOT=${prefix} \
52                    PATH_TO_NCGEN=${prefix}/bin/ncgen
53configure.cppflags-append   -I/usr/include/malloc \
54                            -I${prefix}/include/udunits2 \
55                            -I${prefix}/include \
56                            -DENABLE_NETCDF4
57configure.args      --disable-dependency-tracking \
58                    --mandir=${prefix}/share/man  \
59                    --enable-udunits2 \
60                    --enable-dap-netcdf           \
61                    --enable-netcdf4              \
62                    --disable-openmp
63
64if [gcc_variant_isset] {
65    configure.args-delete   --disable-openmp
66    configure.args-append   --enable-openmp
67}
68
69#if {![variant_isset openmpi]&&![variant_isset mpich]} {
70#    post-configure {
71#        foreach d {nco nco++ nco_c++} {
72#            reinplace "s|= -I${prefix}/include|= |" ${worksrcpath}/src/${d}/Makefile
73#        }
74#        reinplace "s|nco \${GSL_INC_ARG}|nco|" ${worksrcpath}/src/nco++/Makefile
75#    }
76#}
77
78post-destroot {
79    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
80    foreach f {ANNOUNCE ChangeLog LICENSE NEWS README TODO VERSION *.txt *.pdf} {
81        eval xinstall -m 644 [glob ${worksrcpath}/doc/${f}] \
82            ${destroot}${prefix}/share/doc/${name}
83    }
84}
85
86variant mpich description {enable MPI with mpich (currently MPI is not supported)} {
87#    depends_lib-append      path:bin/mpicc-mp:mpich-default
88#    configure.args-append   --enable-mpi
89#    post-extract {
90#        reinplace -E "s|( ?MPICC := ).*|\\1${prefix}/mpicc-mp|" bld/Makefile
91#        reinplace -E "s|( ?MPICXX := ).*|\\1${prefix}/mpicxx-mp|" bld/Makefile
92#    }
93}
94
95variant openmpi description {enable MPI with openmpi (currently MPI is not supported)} {
96#    depends_lib-append      port:openmpi
97#    configure.args-append   --enable-mpi
98}
Note: See TracBrowser for help on using the repository browser.