# $Id$ PortSystem 1.0 name ncview version 1.93g revision 1 maintainers nomaintainer platforms darwin categories science 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 md5 09615ad95fe1f1cc684c24e67bb78a78 \ sha1 193b1e51d6ad7257bc4050493b708d5c12c16419 \ rmd160 036f2b6851085243dedadb6d47292b0467ce1426 patchfiles patch-Makefile.in.diff patch-configure.diff depends_lib port:netcdf port:udunits port:netpbm \ port:xorg-libXaw port:xorg-libXt port:xorg-libice configure.args --with-netcdf_incdir=${prefix}/include \ --with-netcdf_libdir=${prefix}/lib \ --with-bindir=${prefix}/bin \ --with-udunits_incdir=${prefix}/include \ --with-udunits_libdir=${prefix}/lib \ --with-ppm_incdir=${prefix}/include/netpbm \ --with-ppm_libdir=${prefix}/lib \ --x-includes=${prefix} \ --x-libraries=${prefix} # Makefile does not respect CPPFLAGS configure.cflags-append -I${prefix}/include/netpbm use_parallel_build yes destroot.destdir-append MANDIR=${prefix}/share/man/man1 post-destroot { xinstall -m 755 -d ${destroot}${prefix}/lib/ncview foreach file { 3gauss.ncmap 3saw.ncmap default.ncmap detail.ncmap hotres.ncmap nc_overlay.earth.lat-lon.p8deg nc_overlay.lat-lon-grid.20x60 nc_overlay.lat-lon-grid.10x30 } { xinstall -m 755 ${worksrcpath}/${file} ${destroot}${prefix}/lib/ncview } xinstall -m 755 -d ${destroot}${prefix}/share/doc/ncview xinstall -m 755 ${worksrcpath}/README ${destroot}${prefix}/share/doc/ncview } post-activate { ui_msg "\n The MacPorts X11 app-defaults directory is located at: ${prefix}/lib/X11/app-defaults Therefore, you must set the XFILESEARCHPATH environment variable to your ~/.profile for your X11 environment to find the MacPorts app-defaults directory: export XFILESEARCHPATH=/usr/X11R6/lib/X11/app-defaults/%N:${prefix}/lib/X11/app-defaults/%N \n" } livecheck.type regex livecheck.url ${homepage} livecheck.regex {New version \(([0-9]+\.[0-9]+[a-z])}