Ticket #41226: Portfile-gmt4.diff
File Portfile-gmt4.diff, 4.2 KB (added by florian@…, 11 years ago) |
---|
-
Portfile
old new 4 4 PortSystem 1.0 5 5 6 6 name gmt4 7 version 4.5. 97 version 4.5.11 8 8 categories science 9 9 platforms darwin 10 10 maintainers eprofs.de:florian \ … … 13 13 description The Generic Mapping Tools 14 14 long_description GMT is an open source collection of ~65 tools \ 15 15 for manipulating geographic and Cartesian data sets and \ 16 producing Encapsulated PostScript File (EPS) illustrations\17 ranging from simple x-y plots via contour maps to\18 a rtificially illuminated surfaces and 3-D perspective views.16 producing PostScript illustrations ranging from simple x-y \ 17 plots via contour maps to artificially illuminated surfaces \ 18 and 3D perspective views. 19 19 conflicts gmt 20 20 homepage http://gmt.soest.hawaii.edu/ 21 21 master_sites ftp://ftp.soest.hawaii.edu/gmt \ … … 25 25 ftp://ftp.geologi.uio.no/pub/gmt \ 26 26 ftp://gd.tuwien.ac.at/pub/gmt \ 27 27 ftp://ftp.scc.u-tokai.ac.jp/pub/gmt \ 28 ftp://mirror.geosci.usyd.edu.au/pub/gmt \29 28 ftp://gmt.mirror.ac.za/pub/gmt 30 29 use_bzip2 yes 31 set nameprefix gmt 32 distname ${nameprefix}-${version} 33 set dfile_gmt_gpl ${distname}${extract.suffix} 34 set dfile_gmt_nogpl ${nameprefix}-${version}-non-gpl${extract.suffix} 30 distname gmt-${version} 31 set dfile_gmt_gpl ${distname}-src${extract.suffix} 32 set dfile_gmt_nogpl ${distname}-non-gpl-src${extract.suffix} 35 33 distfiles ${dfile_gmt_gpl} \ 36 34 ${dfile_gmt_nogpl} 37 35 38 36 checksums ${dfile_gmt_gpl} \ 39 md5 9f241e97774eadd1fe79f4d7022fcaed\40 sha1 711922fd99dcd47ace522f1e46fcafa5beab8c94\41 rmd160 67d36ecf68b9bcd9a38de61e4f1b3e1120c71823\37 md5 e51a8827d9b0ce3f36cfe6be01f24931 \ 38 sha1 9f226fdb498a6868da98a6014517aa9537542f03 \ 39 rmd160 1665f13e0a877282a57a93989f9ba8fbf49b2645 \ 42 40 ${dfile_gmt_nogpl} \ 43 md5 d61a34a83dc630b464d472c6f0bdfc3a\44 sha1 d03651d98a5f010090bceda2bbec09e53a543942\45 rmd160 a562f21b1e474d660cc5b9502543c127fb9fb80141 md5 fd4abdbbc5cb48087a12a4c762b87123 \ 42 sha1 67c2dd5ccde9ed661e9e9930785d305f73d3315a \ 43 rmd160 6154cc49792ded6103a907da6fe00d7b9c042541 46 44 47 worksrcdir GMT${version} 45 patchfiles patch-ps2raster.diff \ 46 patch-grdvector.diff 48 47 49 48 depends_lib port:netcdf \ 50 49 port:gshhg-gmt-nc4 … … 52 51 destroot.target install-all 53 52 use_parallel_build no 54 53 universal_variant no 55 default_variants +gdal 54 default_variants +gdal +triangle 56 55 57 56 configure.pre_args --prefix=${prefix}/lib/${name} 58 57 configure.args --datarootdir=${prefix}/share/${name} \ … … 65 64 --enable-flock \ 66 65 --disable-xgrid \ 67 66 --disable-mex 68 configure.optflags-delete -O269 67 configure.ldflags-delete -L${prefix}/lib 70 68 71 69 post-destroot { 72 70 ln -s ../lib/${name}/bin/GMT ${destroot}${prefix}/bin/${name} 73 ln -s ../lib/${name}/bin/GMT ${destroot}${prefix}/bin/${nameprefix}74 71 ln -s ../doc/${name} ${destroot}${prefix}/share/${name}/doc 75 72 ln -s ../../share/doc/${name}/man ${destroot}${prefix}/lib/${name}/man 76 73 ln -s ../../share/${name}/include ${destroot}${prefix}/lib/${name}/include … … 88 85 } 89 86 90 87 variant triangle description {use J. Shewchuk's fast, non-GPL triangulation routine} { 88 license-delete GPL-2 89 license-append Restrictive 91 90 configure.args-append --enable-triangle 92 91 } 93 92 … … 98 97 } 99 98 100 99 livecheck.type regex 101 livecheck.url ${homepage} /gmt/gmt_home.html102 livecheck.regex { Current version[^0-9]*([0-9]+\.[0-9]+\.[0-9]+)}100 livecheck.url ${homepage} 101 livecheck.regex {(?i)gmt-(4\.[0-9]+\.[0-9]+)<\/a>}