source: trunk/dports/science/nco/Portfile

Last change on this file was 150360, checked in by takeshi@…, 12 months ago

nco: update to 4.6.0

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