# -*- 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
PortGroup conflicts_build 1.0
maintainers gmail.com:thiagoveloso openmaintainer
description X windows point'n'click NetCDF viewer.
long_description Ncview is a visual browser for NetCDF format \
files. Typically you would use ncview to get \
a quick and easy, push-button look at your \
NetCDF files. You can view simple movies of \
the data, view along various dimensions, take \
a look at the actual data values, change color \
maps, invert the data, etc.
homepage http://meteora.ucsd.edu/~pierce/ncview_home_page.html
master_sites ftp://cirrus.ucsd.edu/pub/ncview/
checksums rmd160 3862bad211f468d121c02a99e72b34bf81bb9cb7 \
sha256 a14c2dddac0fc78dad9e4e7e35e2119562589738f4ded55ff6e0eca04d682c82
patchfiles patch-configure.diff
set nc4 [exec ${prefix}/bin/nc-config --has-nc4]
ui_error "Install netcdf +netcdf4 first. Run:"
ui_error " port install netcdf +netcdf4"
return -code error "netcdf +netcdf4 not installed"
configure.args --with-netcdf_incdir=${prefix}/include \
--with-netcdf_libdir=${prefix}/lib \
--with-nc-config=${prefix}/bin/nc-config \
--with-udunits2_incdir=${prefix}/include/udunits2 \
--with-udunits2_libdir=${prefix}/lib \
--with-png_incdir=${prefix}/include \
--with-png_libdir=${prefix}/lib \
--x-libraries=${prefix}/lib \
--x-includes=${prefix}/include
xinstall -m 755 -d ${destroot}${prefix}/lib/${name}
xinstall -m 755 -W ${worksrcpath} 3gauss.ncmap 3saw.ncmap bw.ncmap default.ncmap detail.ncmap hotres.ncmap ${destroot}${prefix}/lib/${name}