Ticket #23190: Portfile

File Portfile, 3.8 KB (added by terhorst@…, 14 years ago)

Updated portfile for 4.0.0

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 57375 2009-09-10 08:16:41Z ryandesign@macports.org $
3
4PortSystem                  1.0
5
6name                        nco
7version                     4.0.0
8platforms                   darwin
9revision                    1
10maintainers                 takeshi
11categories                  science
12description                 The netCDF Operators
13master_sites                http://${name}.sourceforge.net/src/
14checksums                   md5    e849b66166b7df2ff24eccd6c8e02f9f         \
15                            sha1   3e51a61e93f75666d02a81702c9fa74e896435bb \
16                            rmd160 de7eddf392bdb5ed82ab2f3009237064f6e00a30
17homepage                    http://nco.sourceforge.net/
18long_description \
19    Each NCO operator (e.g., ncks) takes netCDF or HDF input file(s), \
20    performs an operation (e.g., averaging, hyperslabbing, or renaming), \
21    and outputs a processed netCDF file. Although most users of netCDF \
22    and HDF data are involved in scientific research, these data formats, \
23    and thus NCO, are generic and are equally useful in fields like finance. \
24    This version is OPeNDAP/DODS enabled, so it can be given \
25    URLs to read remote datasets as if they were local netCDF files.
26
27depends_lib                 port:curl \
28                            port:gettext \
29                            port:libdap \
30                            port:libiconv \
31                            port:libxml2 \
32                            port:netcdf \
33                            port:openssl \
34                            port:udunits \
35                            port:zlib \
36                            port:antlr \
37                            port:gsl
38depends_build               port:bison \
39                            port:m4
40depends_run                 port:wget
41
42configure.env               HAVE_ANTLR=yes ANTLR_ROOT=${prefix}
43configure.cppflags-append   -I/usr/include/malloc
44configure.args              --disable-dependency-tracking \
45                            --mandir=${prefix}/share/man  \
46                            --enable-udunits --disable-udunits2 \
47                            --disable-dap-netcdf           \
48                            --enable-dap-opendap         \
49                            --disable-netcdf4
50
51post-destroot {
52    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
53    foreach f {ANNOUNCE ChangeLog LICENSE NEWS README TODO VERSION *.txt *.pdf} {
54        eval xinstall -m 644 [glob ${worksrcpath}/doc/${f}] \
55            ${destroot}${prefix}/share/doc/${name}
56    }
57}
58
59variant mpich2 description {enable MPI with mpich2} {
60    depends_lib-append      port:mpich2
61    configure.args-append   --enable-mpi
62}
63
64variant openmpi description {enable MPI with openmpi} {
65    depends_lib-append      port:openmpi
66    configure.args-append   --enable-mpi
67}
68
69variant udunits2 description {compile with udunits2} {
70    depends_lib-delete      port:udunits
71    depends_lib-append      port:udunits2
72    configure.args-delete   --enable-udunits --disable-udunits2
73    configure.args-append   --disable-udunits --enable-udunits2
74}
75
76# variant netcdf4 description {enable netcdf4} {
77#   depends_lib-append       port:hdf5-18 \
78#                            port:szip
79#   configure.env-append     NETCDF4_ROOT=${prefix}
80#   configure.cppflags-append    -DHAVE_NETCDF4_H
81#   configure.args-delete    --disable-dap-netcdf           \
82#                            --enable-dap-opendap         \
83#                            --disable-netcdf4
84#   configure.args-append    --enable-dap-netcdf           \
85#                            --disable-dap-opendap         \
86#                            --enable-netcdf4
87# }
88
89livecheck.type  regex
90livecheck.url   ${homepage}
91livecheck.regex  {Current NCO version is ([0-9]+\.[0-9]+\.[0-9]+)}