# -*- 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 # $Id: Portfile 147230 2016-03-31 19:52:33Z cal@macports.org $ PortSystem 1.0 name gmt4 version 4.5.14 revision 2 categories science platforms darwin maintainers eprofs.de:florian \ takeshi license GPL-2 description The Generic Mapping Tools long_description GMT is an open source collection of ~65 tools \ for manipulating geographic and Cartesian data sets and \ producing PostScript illustrations ranging from simple x-y \ plots via contour maps to artificially illuminated surfaces \ and 3D perspective views. homepage http://gmt.soest.hawaii.edu/ master_sites ftp://ftp.soest.hawaii.edu/gmt \ ftp://ibis.grdl.noaa.gov/pub/gmt \ ftp://ftp.iris.washington.edu/pub/gmt \ ftp://ftp.iag.usp.br/pub/gmt \ ftp://ftp.geologi.uio.no/pub/gmt \ ftp://gd.tuwien.ac.at/pub/gmt \ ftp://ftp.scc.u-tokai.ac.jp/pub/gmt \ ftp://gmt.mirror.ac.za/pub/gmt use_bzip2 yes distname gmt-${version} set dfile_gmt_gpl ${distname}-src${extract.suffix} set dfile_gmt_nogpl ${distname}-non-gpl-src${extract.suffix} distfiles ${dfile_gmt_gpl} \ ${dfile_gmt_nogpl} checksums ${dfile_gmt_gpl} \ rmd160 cb643e00f7731d2555a064c07c8478db6d86a273 \ sha256 b34ab9bcfdc6b85036546372f1c6ef6138420d12a343052fc95fed40962adfe3 \ ${dfile_gmt_nogpl} \ rmd160 6c1de0f9b126a0d49c5a9121f6cf325894a3ddc4 \ sha256 c90a128a766bd858502637e8e8fb3da327fc9f41398869424fa2259da0248577 depends_lib port:ghostscript \ port:gshhg-gmt \ port:netcdf destroot.target install-all use_parallel_build no universal_variant no default_variants +gdal +triangle configure.pre_args --prefix=${prefix}/lib/${name} configure.args --datarootdir=${prefix}/share/${name} \ --docdir=${prefix}/share/doc/${name} \ --mandir=${prefix}/share/doc/${name}/man \ --includedir=${prefix}/share/${name}/include \ --with-gshhg-dir=${prefix}/share/gmt/gshhg \ --with-nc-config=${prefix}/bin/nc-config \ --enable-shared \ --enable-flock \ --disable-xgrid \ --disable-mex configure.ldflags-delete -L${prefix}/lib post-destroot { ln -s ../lib/${name}/bin/GMT ${destroot}${prefix}/bin/${name} ln -s ../doc/${name} ${destroot}${prefix}/share/${name}/doc ln -s ../../share/doc/${name}/man ${destroot}${prefix}/lib/${name}/man ln -s ../../share/${name}/include ${destroot}${prefix}/lib/${name}/include ln -s ../../share/${name} ${destroot}${prefix}/lib/${name}/share } variant octave description {compiles Octave interface} { depends_lib-append path:bin/octave:octave configure.args-append --enable-octave } variant gdal description {Experimental GDAL import support} { depends_lib-append port:gdal configure.args-append --enable-gdal } variant triangle description {use J. Shewchuk's fast, non-GPL triangulation routine} { license-delete GPL-2 license-append Restrictive configure.args-append --enable-triangle } variant xgrid description {enable xGridEdit} { depends_lib-append lib:libXaw:xorg-libXaw configure.args-delete --disable-xgrid configure.args-append --enable-xgrid } livecheck.type regex livecheck.url ${homepage} livecheck.regex {(?i)gmt-(4\.[0-9]+\.[0-9]+)<\/a>}