debian/0000755000000000000000000000000012302707234007166 5ustar debian/coastline.conf0000644000000000000000000000066712244675525012043 0ustar # This file has just a list of alternate directories to search for # map data files if it was not found in /usr/share/gmt/lib/coastline.conf # # This way you do not need to install all those data files on each client. # Instead you just have to put the paths to the shared files in this file. # The format is really simple - just add a directory name per line. Empty # lines and lines starting with '#' are ignored. # # /share/gmtdata debian/gmt-doc-pdf.install0000644000000000000000000000037612244675525012701 0ustar usr/share/doc/gmt/pdf/GMT_Docs.pdf usr/share/doc/gmt/pdf/GMT_Manpages.pdf usr/share/doc/gmt/pdf/GMT_Manpages_suppl.pdf usr/share/doc/gmt/pdf/GMT_RGBchart_a4.pdf usr/share/doc/gmt/pdf/GMT_RGBchart_letter.pdf usr/share/doc/gmt/pdf/GMT_RGBchart_tabloid.pdf debian/gmt-tutorial-pdf.install0000644000000000000000000000004712244675525013772 0ustar usr/share/doc/gmt/pdf/GMT_Tutorial.pdf debian/copyright0000644000000000000000000000172312244675525011140 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: GMT Upstream-Contact: Paul Wessel and Walter Smith Source: http://gmt.soest.hawaii.edu/ File: * Copyright: 1991-2011 P.Wessel & W.H.F.Smith License: GPL-2+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 or any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . On Debian GNU/Linux systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2'. If you got the source archive you will find the license in the file COPYING in the top directory. debian/gmt.install0000644000000000000000000000007012244675525011356 0ustar usr/bin usr/lib/gmt/bin usr/share/gmt usr/share/man etc debian/libgmt-dev.links0000644000000000000000000000004512244675525012275 0ustar usr/include/gmt usr/lib/gmt/include debian/gmt-doc.install0000644000000000000000000000002712244675525012123 0ustar usr/share/doc/gmt/html debian/gmt.links0000644000000000000000000000010012244675525011022 0ustar usr/share/man usr/lib/gmt/man usr/share/gmt usr/lib/gmt/share debian/gmt-doc.links0000644000000000000000000000005312244675525011574 0ustar usr/share/doc/gmt/html usr/lib/gmt/www/gmt debian/changelog0000644000000000000000000003433612302707234011051 0ustar gmt (4.5.11-1build1) trusty; urgency=medium * Rebuild for octave 3.8. -- Matthias Klose Mon, 24 Feb 2014 18:25:32 +0000 gmt (4.5.11-1) unstable; urgency=low * New upstream release for the 4.x series. * Added patch gmt_io.c, mgd77header.c and gmt_proj.c to avoid nested comments use while -pedantic mode is enabled. * Added patch c++comments to remove C++ style comments in pure C code. This is currently deprecated and should be avoided when strict option like -pedantic are used. * -- Francesco Paolo Lovergine Mon, 25 Nov 2013 15:57:54 +0100 gmt (4.5.9-1) unstable; urgency=low * Added Octave support and an ad-hoc new package for that. * Added octave-gmt package for supporting grid files in GNU octave. * Revised build-deps. * Debhelper level set to 9. * Lintian-based cleanups: - Fixed debian/changelog for a couple of silly warnings. - Added ${misc:Depends} to all pkgs. * Revised for Suggestions. * Fixed previous changelog for layout and contents. * ACK of previous NMUi by Sebastian Ramacher: * debian/patches/eglibc-2.17.patch: Add missing include to fix FTBFS with eglibc 2.17. (closes: #701431) * New upstream release. (closes: #705022) * Patch kfreebsd refreshed to include hurd case instead. (closes: #676147) -- Francesco Paolo Lovergine Fri, 16 Mar 2012 14:53:42 +0100 gmt (4.5.7-2) unstable; urgency=low * A link moved from gmt to gmt-doc, so conflicting current gmt-doc with old gmt. -- Francesco Paolo Lovergine Fri, 16 Mar 2012 14:14:25 +0100 gmt (4.5.7-1) unstable; urgency=low * New upstream version with a new compact distribution. (closes: #663099) * Policy bumped to 3.9.3, no changes required. * Now use in embedded mode quilt and all tar/unpack/patch target have been dropped. * Get-orig-source and all other special target dropped due to simplification of the distribution. * Added a build-dep on autotools-dev and provided usual snippets to override config.{sub,guess} files before configuring. * Moved to copyright format version 1.0. Note that in 4.5.6 GMT team added compatibility with any later version for GPL-2. * Split links helper in different files for each package to avoid unresolved links. * This package is compatible with GSHHS >= 2.2, as provided by a new separate package. Note that upstream no more distributes old datasets, so any previous package cannot use anymore high/full resolutions. * Fixed some symlinks. (closes: #343383) * Added a patch kfreebsd to allow working with GNU/kFreeBSD. (closes: #619960) * Fixed bashism in psbbox.sh with patch bashism. (closes: #581103) -- Francesco Paolo Lovergine Tue, 13 Mar 2012 16:40:33 +0100 gmt (4.5.6-1) unstable; urgency=low * New upstream release. -- Francesco Paolo Lovergine Mon, 28 Mar 2011 12:50:08 +0200 gmt (4.5.5-1) unstable; urgency=low * New upstream release. * Moved from svn to git repository and changed Vcs-* as due. * Policy bumped to 3.9.1. * Compatibility level set to 8. * Now using source format 3.0. Note that quilt is still required as explicit build-dep due to the peculiar unpacking method. * Fixed creat-orig-tar to create the use the correct tarball name. -- Francesco Paolo Lovergine Mon, 07 Mar 2011 15:44:04 +0100 gmt (4.5.2-1) unstable; urgency=low * New upstream release. * Policy bumped to 3.8.4. No changes. * Added a NEWS file about new coastline data format. -- Francesco Paolo Lovergine Mon, 15 Feb 2010 18:09:07 +0100 gmt (4.5.1-1) unstable; urgency=low * New upstream release. * Policy bumped to 3.8.3. No changes. * [lintian] Changed my dotted name in Uploaders to avoid annoying warnings. * [lintian] Wrapped changelog line. * Fixed creat-orig-tar rule in debian/rules for correct directory naming. * Added ${misc:Depends} item in debian/control. * GMT uses GPL-2 strictly. -- Francesco Paolo Lovergine Mon, 21 Sep 2009 22:47:01 +0200 gmt (4.4.0-1) unstable; urgency=low * New upstream release. Note that /etc/gmt/gmt_formats.conf is no more installed and all provided files are removed. (closes: #490268, #499648) * Moved to debhelper level 7. * Added a dh_prep call at building start. * Revised debian/rules to work with new upstream locations. * Updated README.Debian. -- Francesco Paolo Lovergine Thu, 26 Mar 2009 11:19:15 +0100 gmt (4.3.1-3) unstable; urgency=medium * Removed headers from gmt binary package. (closes: #488779) -- Francesco Paolo Lovergine Tue, 01 Jul 2008 17:53:56 +0200 gmt (4.3.1-2) unstable; urgency=low * First upload to unstable. * gmt-examples section set to doc. -- Francesco Paolo Lovergine Fri, 27 Jun 2008 10:01:49 +0200 gmt (4.3.1-1) experimental; urgency=low * New upstream release (closes: #480931) * Fixed download URL. * Added a README.source file to document how creating the upstream tarball. * Patch disable_unsupported.diff dropped and moved to use appropriate configure flag. * Added three new PDF documents in different formats. * Policy bumped to 3.8.0. * Now GMT is providing correct versioning and SONAMEs for shared libs, so moving to supporting development libraries by splitting libgmt4 and libgmt-dev binary packages. A long due wishlist finally managed, yeah! (closes: #210611) * Removed manpages duplicates and changing man section to *gmt in man headers [lintian]. * Removed empty man directories. * Fixed clean target to remove GMT symlink. * Fixed wrapping in debian/changelog [lintian] * Added copyright notice to debian/copyright [lintian] * Moved to libnetcdf-dev instead of old netcdfg-dev now obsolete. * Build-dep on c-shell removed, because not more required. * Long description revised. * CC_OPT is not more used in building, uses CFLAGS instead. * Added symlink to all *.conf files in /etc within /usr/share/gmt. * Fixed debian/gmt-examples.examples to install examples for true. * Now avoids compression of examples/ stuff in debian/rules. * A note has been added to README.Debian to explain how to run examples scripts. * Added debian/watch file. -- Francesco Paolo Lovergine Mon, 16 Jun 2008 14:16:11 +0200 gmt (4.2.1-1) unstable; urgency=low * New upstream release. There is no more a _man file, all manpages are in _src debian/rules changed as consequence This partially fixes #181557 but project.1 is still a bit weird. * Revised man page installation in debian/rules, due to changes in the building system. * In debian/rules: added LDFLAGS="-g" at build-time, in order to create unstripped binaries. (closes: #437047) * In debian/rules: added private libraries path to search for libs when calling dh_shlibdeps * Policy bumped to 3.7.3, without changes. * Added Vcs-* fields to debian/control. * Now installs some additional pdfs in gmt-doc-pdf. * GMT wrapper changed to modify PATH before calling a GMT command. Patch applied on fly in debian/rules. (closes: #416869) * Fixed patches and debian/rules to use quilt in top dir and support next generation source package. (closes: #485163) -- Francesco Paolo Lovergine Thu, 12 Jun 2008 14:21:53 +0200 gmt (4.2.0-1) unstable; urgency=low [ Torsten Landschoff ] * New upstream release. (closes: #403838, #157744) * Hand over to Debian GIS team for group maintenance. [ Francesco Paolo Lovergine ] * Moved to policy 3.7.2, without changes * Debhelper level moved to 5 * Added html/pdf browser suggestions. * Updated home page in copyright file. * Added home page ini debian/control descriptions. (closes: #416766) * Introduced Homepage field in debian/control. -- Francesco Paolo Lovergine Wed, 03 Oct 2007 13:19:04 +0200 gmt (4.1.2-1.1) unstable; urgency=low * Non-maintainer upload to fix Failure To Build From Source due to missing build-dependencies. Thanks to Neil Williams for the patch. (Closes: #379214) * debian/control: added libxmu-headers and libxaw7-dev as build-dependencies -- Margarita Manterola Thu, 10 Aug 2006 18:26:59 -0300 gmt (4.1.2-1) unstable; urgency=low * Correct upstream release (closes: #369216). * Include README.Debian file into gmt package (closes: #369215). * Include upstream changelog (closes: #369217). * Actually include examples in gmt-examples package (closes: #369214). -- Torsten Landschoff Sat, 3 Jun 2006 02:48:16 +0200 gmt (4.1-1) unstable; urgency=low * New upstream release. * Use gcc instead of ld for linking libraries (closes: #361043, #352227). * Fix package descriptions (closes: #209514, #209578, #209582). * Add a README file about getting coastline data. * Add build-depends for arch-independent build (closes: #189727, #189728, #189730). * debian/rules: Stop dh_compress from compressing PDF files. -- Torsten Landschoff Fri, 26 May 2006 20:31:29 +0200 gmt (4.0-2) unstable; urgency=low * debian/control: Make gmt suggest/recommend all other gmt packages (closes: #249369). * debian/control: Add build dependency on bzip2 (closes: #326842). Kudos to Andreas Jochens. -- Torsten Landschoff Tue, 6 Sep 2005 09:04:17 +0200 gmt (4.0-1) unstable; urgency=low * New upstream release. * New packaging. -- Torsten Landschoff Sun, 4 Sep 2005 20:40:54 +0200 gmt (3.4.4-1) unstable; urgency=low * New upstream release. -- Torsten Landschoff Wed, 28 Apr 2004 10:27:45 +0200 gmt (3.4.3-1) unstable; urgency=low * New upstream release (closes: #137446, #179809). * debian/conffiles: Marked /etc/gmt/{coastline,gmt}.conf as such (lintian). -- Torsten Landschoff Wed, 12 Nov 2003 02:54:23 +0100 gmt (3.4-2) unstable; urgency=low * debian/rules: Fix the condition for running dh_strip so that the binaries are stripped if "nostrip" is /NOT/ given *arg* (lintian). -- Torsten Landschoff Sun, 16 Sep 2001 23:11:39 +0200 gmt (3.4-1) unstable; urgency=low * New upstream release (closes: #98214). The link to the homepage was updated upstream as well (closes: #98204). * Applied fix for non-PIC code in libraries (closes: #108806) Kudos to LaMont Jones for the patch. * debian/copyright: Removed the "Library" before "General Public License" which crept in somehow (closes: #106145). Thanks to Rafael Labossiere for pointing this out. * src/Makefile: Make sure the .lo files are removed during the clean phase as well. -- Torsten Landschoff Fri, 14 Sep 2001 09:44:14 +0200 gmt (3.3.5-2) unstable; urgency=low * debian/control: Added missing build-dependency on debhelper (closes: #69102) * debian/rules: Obey DEB_BUILD_OPTIONS (policy). * debian/control: Upgraded Standards-Version to 3.2.0. -- Torsten Landschoff Mon, 14 Aug 2000 12:03:51 +0200 gmt (3.3.5-1) unstable; urgency=low * New upstream release (closes: #62686). * Undone the changes to the file searching code I did in the last release to fit GMT into Debian policy. Instead I am now using a link /usr/share/gmt/share, which links to ".". Therefore you can now set $GMTHOME as when compiling by hand (closes: #57485). * Included errata from the GMT homepage as of 2000/08/04. -- Torsten Landschoff Fri, 11 Aug 2000 02:34:53 +0200 gmt (3.3.3-3) unstable frozen; urgency=low * Richard: This are only bugfixes from upstream. I am quite sure it will not break anything but in case you don't want them for potato I don't see a big problem ;) * Included bugfixes from http://www.soest.hawaii.edu/gmt/gmt/gmt_bugs.html (closes: #56868). * debian/README.Debian: Added comments about the changes to the directory layout I made and that you should not set GMTHOME (not reported as a bug but I got a notice by mail). -- Torsten Landschoff Thu, 3 Feb 2000 19:05:27 +0100 gmt (3.3.3-2) unstable; urgency=high * debian/rules: Fixed compilation so that coastline data is searched in /usr/share/gmt (and installed there of course). * debian/coastline.conf: Added the path where coastline data was installed in older versions. -- Torsten Landschoff Fri, 21 Jan 2000 13:42:42 +0100 gmt (3.3.3-1) unstable; urgency=low * New upstream release. * debian/control: Moved package into the science section (closes: #51248). * debian/control: Added Build-Depends and moved to policy 3.1.0 * debian/README: Added information about current state of affairs regarding coastline data in Debian. * debian/rules: Build system has changed upstream. Adjusted rules file accordingly. * Added README.coastlines which explains how to install coastline data manually. * Added mirrors file with the list of known mirrors. * debian/rules: Removed configure generated files in clean target. * Included erratas from http://imina.soest.hawaii.edu/gmt/gmt/gmt_bugs.html. * debian/rules: Override LDFLAGS from configure which sets rpath. -- Torsten Landschoff Fri, 14 Jan 2000 19:13:26 +0100 gmt (3.3.2-4) unstable; urgency=low * Included bugfixes from the GMT homepage. -- Torsten Landschoff Thu, 4 Nov 1999 17:31:39 +0100 gmt (3.3.2-3) unstable; urgency=low * Added reasoning for splitting the manpage package (closes: #47629). -- Torsten Landschoff Mon, 1 Nov 1999 14:15:09 +0100 gmt (3.3.2-2) unstable; urgency=low * Added example coastline.conf with internal documentation (closes: #47627) * Moved gmt.conf to /etc/gmt/ where a config file belongs. * *arg* I did not notice that Source-Version expands to upstream-debian. Changed it in this version but the old one will not work with a new manpages package. -- Torsten Landschoff Mon, 18 Oct 1999 23:22:59 +0200 gmt (3.3.2-1) unstable; urgency=low * Initial release. -- Torsten Landschoff Wed, 11 Aug 1999 20:20:35 +0200 debian/libgmt-dev.install0000644000000000000000000000013012244675525012616 0ustar usr/lib/gmt/lib/*.a usr/lib usr/lib/gmt/lib/lib*.so usr/lib usr/include/gmt usr/include debian/NEWS0000644000000000000000000000062712244675525007706 0ustar gmt (4.5.2-1) unstable; urgency=low Starting from 4.5.2 a new format of coastline data is required, i.e. GSHHS 2.0.2 (or higher). It implies that current high/full coastline data version (as available on the official ftp site) is not back-compatible. You need to use 2.0.1 with any GMT version <= 4.5.1. -- Francesco Paolo Lovergine Tue, 16 Feb 2010 10:23:06 +0100 debian/libgmt4.install0000644000000000000000000000004212244675525012130 0ustar usr/lib/gmt/lib/lib*.so.4 usr/lib debian/compat0000644000000000000000000000000212244675525010400 0ustar 9 debian/gmt-examples.examples0000644000000000000000000000005012244675525013340 0ustar debian/tmp/usr/share/doc/gmt/examples/* debian/patches/0000755000000000000000000000000012244675525010631 5ustar debian/patches/kfreebsd0000644000000000000000000000112212244675525012335 0ustar Index: git/configure =================================================================== --- git.orig/configure 2013-06-26 12:15:23.000000000 +0200 +++ git/configure 2013-06-26 12:16:56.000000000 +0200 @@ -7420,7 +7420,7 @@ else # Solaris LD_OPT="-G" fi - elif test "$os" = "Linux" || test "$os" = "GNU/kFreeBSD" ; then # Need optimization when doing shared + elif test "$os" = "Linux" || test "$os" = "GNU/kFreeBSD" || test "$os" = "GNU"; then # Need optimization when doing shared LD='$(CC)' SL_VERSION=$SL.$LIB_MAJOR_VERSION LD_OPT='-shared -Wl,-soname=$*.'$SL_VERSION debian/patches/c++comments0000644000000000000000000000627612244675525012705 0ustar Index: git/src/grdfft.c =================================================================== --- git.orig/src/grdfft.c 2013-11-25 15:57:08.000000000 +0100 +++ git/src/grdfft.c 2013-11-25 16:59:54.000000000 +0100 @@ -1083,7 +1083,7 @@ sprintf (format, "%s\t%s\t%s\n", gmtdefs.d_format, gmtdefs.d_format, gmtdefs.d_format); powfactor = 4.0 / pow ((double)ndatac, 2.0); for (k = 0; k < nk; k++) { - //eps_pow = 1.0/sqrt((double)nused[k]/(double)nk); + /* eps_pow = 1.0/sqrt((double)nused[k]/(double)nk);*/ eps_pow = 1.0/sqrt((double)nused[k]); freq = (k + 1) * delta_k; if (give_wavelength) freq = 1.0/freq; Index: git/src/grdimage.c =================================================================== --- git.orig/src/grdimage.c 2013-11-25 15:57:08.000000000 +0100 +++ git/src/grdimage.c 2013-11-25 17:00:34.000000000 +0100 @@ -601,15 +601,15 @@ struct GRD_HEADER tmp_header; for (i = 0; i < n_grids; i++) { map[i] = tmp1[i]; - //r_head[i].nx = g_head[i].nx; r_head[i].ny = g_head[i].ny; - //r_head[i].x_inc = g_head[i].x_inc; r_head[i].y_inc = g_head[i].y_inc; + /*r_head[i].nx = g_head[i].nx; r_head[i].ny = g_head[i].ny; + r_head[i].x_inc = g_head[i].x_inc; r_head[i].y_inc = g_head[i].y_inc;*/ memcpy ((void *)&tmp_header, (void *)&g_head[i], sizeof (struct GRD_HEADER)); r_head[i] = g_head[i]; GMT_set_proj_limits (&r_head[i], &tmp_header, need_to_project); } if (Ctrl->I.active) { - //j_head.nx = i_head.nx; j_head.ny = i_head.ny; - //j_head.x_inc = i_head.x_inc; j_head.y_inc = i_head.y_inc; + /*j_head.nx = i_head.nx; j_head.ny = i_head.ny; + j_head.x_inc = i_head.x_inc; j_head.y_inc = i_head.y_inc;*/ intensity = tmp2; memcpy ((void *)&tmp_header, (void *)&i_head, sizeof (struct GRD_HEADER)); j_head = i_head; Index: git/src/project.c =================================================================== --- git.orig/src/project.c 2013-11-25 15:57:08.000000000 +0100 +++ git/src/project.c 2013-11-25 17:01:17.000000000 +0100 @@ -818,7 +818,7 @@ double s[3]; /* s points to the south pole */ double x[3]; /* tmp vector */ double cp; - // double sin_lat_to_pole; + /* double sin_lat_to_pole;*/ s[0] = s[1] = 0.0; s[2] = -1.0; @@ -835,8 +835,8 @@ cp = GMT_dot3v (p, c); if (!generate) memcpy ((void *)c, (void *)x, 3*sizeof(double)); if (!c_given) GMT_cart_to_geo(clat, clon, c, TRUE); /* return the possibly adjusted center */ - //sin_lat_to_pole = d_sqrt (1.0 - cp * cp); - //return (sin_lat_to_pole); + /*sin_lat_to_pole = d_sqrt (1.0 - cp * cp);*/ + /*return (sin_lat_to_pole);*/ } #if 0 Index: git/src/psmask.c =================================================================== --- git.orig/src/psmask.c 2013-11-25 15:57:08.000000000 +0100 +++ git/src/psmask.c 2013-11-25 17:01:29.000000000 +0100 @@ -701,7 +701,7 @@ for (j = j0; go_on && j < h->ny; j++) { ij = GMT_IJ (j, i0, h->nx); for (i = i0; go_on && i < h->nx-1; i++, ij++) { - // edge_word = (GMT_LONG)(ij / 32 + info->offset); + /* edge_word = (GMT_LONG)(ij / 32 + info->offset);*/ edge_word = (GMT_LONG)(ij / 32); edge_bit = (GMT_LONG)(ij % 32); if (!(edge[edge_word] & info->bit[edge_bit]) && ((grd[ij]+grd[ij+1]) == 1)) { /* Start tracing contour */ debian/patches/gmt_io.c0000644000000000000000000000137612244675525012262 0ustar Index: git/src/gmt_io.c =================================================================== --- git.orig/src/gmt_io.c 2013-11-25 15:57:08.000000000 +0100 +++ git/src/gmt_io.c 2013-11-25 16:37:51.000000000 +0100 @@ -2772,8 +2772,9 @@ callen = strlen (s); if (callen < 2) return (GMT_IS_NAN); /* Maybe should be more than 2 */ - - //if ((p = strchr ( s, (int)('T'))) == NULL) { /* This was too naive, being tricked by data like 12-OCT-20 (no trailing T, so OCT was it) */ +#if 0 + if ((p = strchr ( s, (int)('T'))) == NULL) { /* This was too naive, being tricked by data like 12-OCT-20 (no trailing T, so OCT was it) */ +#endif if (s[0] == 'T') { /* Got T presumably */ clocklen = callen - 1; strncpy (clockstring, &s[1], (size_t)callen); debian/patches/bashism0000644000000000000000000000101512244675525012177 0ustar Index: git/src/psbbox.sh =================================================================== --- git.orig/src/psbbox.sh 2012-03-07 10:02:54.000000000 +0100 +++ git/src/psbbox.sh 2012-03-13 14:22:45.000000000 +0100 @@ -25,7 +25,7 @@ for file in $* do bbox=`gs -q -dNOPAUSE -dBATCH -r720 -sDEVICE=bbox $file 2>&1 | grep '%%BoundingBox'` - if [ $? == 0 ] ; then + if [ $? -eq 0 ] ; then tmpfile=`mktemp /tmp/psbbox.XXXXXX` cp -f $file $tmpfile sed 's/%%BoundingBox: .*$/'"$bbox/" $tmpfile > $file debian/patches/gmt_proj.c0000644000000000000000000000121512244675525012615 0ustar Index: git/src/gmt_proj.c =================================================================== --- git.orig/src/gmt_proj.c 2013-11-25 15:57:08.000000000 +0100 +++ git/src/gmt_proj.c 2013-11-25 16:45:37.000000000 +0100 @@ -1645,7 +1645,9 @@ project_info.g_outside = FALSE; angle = M_PI - dlon; - // if (cosc < project_info.g_P_inverse) { /* over the horizon, but this was susceptible to minor roundoff. */ +#if 0 + if (cosc < project_info.g_P_inverse) { /* over the horizon, but this was susceptible to minor roundoff. */ +#endif if ((project_info.g_P_inverse - cosc) > GMT_CONV_LIMIT) { /* over the horizon */ project_info.g_outside = TRUE; debian/patches/series0000644000000000000000000000014612244675525012047 0ustar # no current patches gmt_io.c gmt_proj.c kfreebsd bashism eglibc-2.17.patch c++comments mgd77header.c debian/patches/mgd77header.c0000644000000000000000000000150612244675525013075 0ustar Index: git/src/mgd77/mgd77header.c =================================================================== --- git.orig/src/mgd77/mgd77header.c 2013-11-25 15:57:08.000000000 +0100 +++ git/src/mgd77/mgd77header.c 2013-11-25 17:19:37.000000000 +0100 @@ -759,7 +759,9 @@ not_used = fgets (line, BUFSIZ, F->fp); /* Skip the column header */ MGD77_header = (char *)GMT_memory (VNULL, (size_t)MGD77T_HEADER_LENGTH, sizeof (char), GMT_program); - // not_used = fgets (MGD77_header, BUFSIZ, F->fp); /* Read the entire header record */ +#if 0 + not_used = fgets (MGD77_header, BUFSIZ, F->fp); /* Read the entire header record */ +#endif for (i = 0; i < 2; i++) H->mgd77[i] = (struct MGD77_HEADER_PARAMS *) GMT_memory (VNULL, (size_t)1, sizeof (struct MGD77_HEADER_PARAMS), GMT_program); /* Allocate parameter header */ debian/patches/eglibc-2.17.patch0000644000000000000000000000104412244675525013463 0ustar Description: Add missing include to fix FBTFS with eglibc 2.17 Author: Sebastian Ramacher Bug-Debian: http://bugs.debian.org/701431 Last-Update: 2013-06-24 Index: git/src/gmt.h =================================================================== --- git.orig/src/gmt.h 2013-06-26 12:18:55.000000000 +0200 +++ git/src/gmt.h 2013-06-26 12:18:55.000000000 +0200 @@ -88,6 +88,7 @@ #include "gmt_notunix.h" /* Stuff for Windows, OS/2 etc */ #ifndef WIN32 #include +#include #include #endif debian/README.Debian0000644000000000000000000000127612244675525011251 0ustar Generic Mapping Tools for Debian -------------------------------- Note that all resolutions coastline data are available in the Debian archive at this time, as separate packages named gmt-gshhs-{low,high,full}. That basic (low) GSHHS coastline is required to have GMT up and running, but you could be interested in using higher/full resolution coastline data files, which are also available. NOTE: By default, the gmt utilities are not included in $PATH, so you either need to add /usr/lib/gmt/bin to your PATH or use the GMT wrapper, see GMT(1gmt). Therefore, you also need to run do_examples.sh as ./do_examples.sh /usr/lib/gmt/bin if you would use gmt-examples to recreate GMT examples. debian/control0000644000000000000000000001424012244675525010606 0ustar Source: gmt Section: science Priority: extra Maintainer: Debian GIS Project Uploaders: Torsten Landschoff , Francesco Paolo Lovergine Build-Depends: libnetcdf-dev, debhelper (>= 8), bzip2, libxmu-headers, libxaw7-dev, autotools-dev, octave-pkg-dev (>= 1.0.0) Build-Depends-Indep: debhelper (>= 9) Standards-Version: 3.9.3 Homepage: http://gmt.soest.hawaii.edu/ Vcs-Browser: http://git.debian.org/?p=pkg-grass/gmt.git Vcs-Git: git://git.debian.org/git/pkg-grass/gmt.git Package: gmt Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Replaces: gmt-manpages Conflicts: gmt-manpages Recommends: gmt-gshhs-data | gmt-gshhs-low (>= 2.2.0), gmt-doc Suggests: gmt-tutorial-pdf, gmt-doc-pdf, gmt-examples Description: Generic Mapping Tools GMT is a collection of tools that allow users to manipulate (x,y) and (x,y,z) data sets (including filtering, trend fitting, gridding, projecting, etc.) and produce Encapsulated PostScript File (EPS) illustrations ranging from simple x-y plots through contour maps to artificially illuminated surfaces and 3-D perspective views in black and white, gray tone, hachure patterns, and 24-bit color. . GMT supports many common map projections plus linear, log, and power scaling, and comes with support data such as coastlines, rivers, and political boundaries. Package: libgmt4 Architecture: any Section: libs Depends: ${shlibs:Depends}, ${misc:Depends} Suggests: gmt Description: Generic Mapping Tools Library GMT libraries allow manipulating geographic and Cartesian data sets (including filtering, trend fitting, gridding, projecting, etc.) and producing Encapsulated PostScript File (EPS) illustrations ranging from simple x-y plots via contour maps to artificially illuminated surfaces and 3-D perspective views. Package: libgmt-dev Architecture: any Section: libdevel Depends: ${shlibs:Depends}, libgmt4 (=${binary:Version}), libnetcdf-dev, ${misc:Depends} Suggests: gmt Description: Generic Mapping Tools Library These set of libraries allow manipulating geographic and Cartesian data sets (including filtering, trend fitting, gridding, projecting, etc.) and producing Encapsulated PostScript File (EPS) illustrations ranging from simple x-y plots via contour maps to artificially illuminated surfaces and 3-D perspective views. . This package contains the files used for development of programs that use the GMT libraries (headers, static objects). Package: gmt-doc-pdf Architecture: all Section: doc Suggests: pdf-viewer Depends: ${misc:Depends} Description: PDF docs for GMT, the Generic Mapping Tools GMT is a collection of tools that allow users to manipulate (x,y) and (x,y,z) data sets (including filtering, trend fitting, gridding, projecting, etc.) and produce Encapsulated PostScript File (EPS) illustrations ranging from simple x-y plots through contour maps to artificially illuminated surfaces and 3-D perspective views in black and white, gray tone, hachure patterns, and 24-bit color. . GMT supports many common map projections plus linear, log, and power scaling, and comes with support data such as coastlines, rivers, and political boundaries. Package: gmt-tutorial-pdf Architecture: all Section: doc Suggests: pdf-viewer Depends: ${misc:Depends} Description: Tutorial for GMT, the Generic Mapping Tools (PDF) GMT is a collection of tools that allow users to manipulate (x,y) and (x,y,z) data sets (including filtering, trend fitting, gridding, projecting, etc.) and produce Encapsulated PostScript File (EPS) illustrations ranging from simple x-y plots through contour maps to artificially illuminated surfaces and 3-D perspective views in black and white, gray tone, hachure patterns, and 24-bit color. . GMT supports many common map projections plus linear, log, and power scaling, and comes with support data such as coastlines, rivers, and political boundaries. Package: gmt-doc Architecture: all Section: doc Suggests: www-browser Depends: ${misc:Depends} Conflicts: gmt (<< 4.5.7-1~) Description: HTML documentation for GMT, the Generic Mapping Tools GMT is a collection of UNIX tools that allow users to manipulate (x,y) and (x,y,z) data sets (including filtering, trend fitting, gridding, projecting, etc.) and produce Encapsulated PostScript File (EPS) illustrations ranging from simple x-y plots through contour maps to artificially illuminated surfaces and 3-D perspective views in black and white, gray tone, hachure patterns, and 24-bit color. . GMT supports many common map projections plus linear, log, and power scaling, and comes with support data such as coastlines, rivers, and political boundaries. . This package contains the HTML documentation for GMT, consisting of - the tutorial - the cookbook and technical reference - the manpages converted to HTML. Package: gmt-examples Architecture: all Section: doc Suggests: gmt Depends: ${misc:Depends} Description: Example scripts illustrating the use of GMT GMT is a collection of tools that allow users to manipulate (x,y) and (x,y,z) data sets (including filtering, trend fitting, gridding, projecting, etc.) and produce Encapsulated PostScript File (EPS) illustrations ranging from simple x-y plots through contour maps to artificially illuminated surfaces and 3-D perspective views in black and white, gray tone, hachure patterns, and 24-bit color. . GMT supports many common map projections plus linear, log, and power scaling, and comes with support data such as coastlines, rivers, and political boundaries. Package: octave-gmt Architecture: any Section: math Depends: ${shlibs:Depends}, ${misc:Depends}, ${octave:Depends} Suggests: gmt Description: Support of GMT grid files for Octave GMT is a collection of tools that allow users to manipulate (x,y) and (x,y,z) data sets (including filtering, trend fitting, gridding, projecting, etc.) and produce Encapsulated PostScript File (EPS) illustrations ranging from simple x-y plots through contour maps to artificially illuminated surfaces and 3-D perspective views in black and white, gray tone, hachure patterns, and 24-bit color. . This package provides an interface for GNU Octave to query and read/write GMT grid files. debian/octave-gmt.install0000644000000000000000000000004612244675525012640 0ustar usr/share/octave/* usr/lib/*/octave/* debian/rules0000755000000000000000000001156212244675525010267 0ustar #! /usr/bin/make -f CFLAGS := -fPIC -ansi -pedantic # Some special build options ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) CFLAGS += -g -O0 LDFLAGS += -g else CFLAGS += -O2 endif ifneq (,$(findstring verbose,$(DEB_BUILD_OPTIONS))) DH_VERBOSE=1 export DH_VERBOSE endif build: build-stamp install: install-stamp binary: binary-arch binary-indep PATHCONFIG := --prefix=/usr/lib/gmt DESTDIR := $(CURDIR)/debian/tmp PATHVARS := prefix=$(DESTDIR)/usr/lib/gmt build-stamp: dh_testdir dh_prep # Use current autotools helpers -test -r /usr/share/misc/config.sub && \ mv config.sub config.sub.original && \ cp -f /usr/share/misc/config.sub config.sub -test -r /usr/share/misc/config.guess && \ mv config.guess config.guess.original && \ cp -f /usr/share/misc/config.guess config.guess $(CURDIR)/configure \ --enable-shared $(PATHCONFIG) --disable-mex --enable-netcdf=/usr \ --enable-octave \ --enable-mex-mdir=$(shell octave-config --m-site-dir) \ --enable-mex-xdir=$(shell octave-config --oct-site-dir) $(MAKE) CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" all suppl touch $@ install-stamp: build-stamp dh_testdir dh_testroot # Very tricky: GMT does not conform to FHS. As it proved to be very # time consuming to bend this beast I'll create a fake GMT tree # which links to the Debian accepted locations and install into # that tree. mkdir -p $(DESTDIR)/usr/lib/gmt $(DESTDIR)/usr/share/gmt \ $(DESTDIR)/usr/share/man $(DESTDIR)/usr/include/gmt \ $(DESTDIR)/usr/share/doc $(DESTDIR)/etc/gmt $(DESTDIR)/usr/bin ln -fs ../../share/man $(DESTDIR)/usr/lib/gmt/man ln -fs ../../include/gmt $(DESTDIR)/usr/lib/gmt/include ln -fs ../../share/gmt $(DESTDIR)/usr/lib/gmt/share $(MAKE) $(PATHVARS) install-all $(MAKE) -C src/mex DESTDIR=$(DESTDIR) install -find $(DESTDIR)/usr/lib/octave -name "*.mex" -exec rename 's/\.mex/.oct/' {} \; # Okay, we still have to move the documentation (the trick above does # not work because the Makefile would try to overwrite the link with # a directory). So move the docs and link them to where GMT will look # for them. mv $(DESTDIR)/usr/lib/gmt/share/doc/gmt $(DESTDIR)/usr/share/doc/ ln -fs ../../../share/doc/gmt $(DESTDIR)/usr/lib/gmt/share/doc/gmt # Configuration files are still at the wrong place, let's fix this mv $(DESTDIR)/usr/share/gmt/conf/*.conf $(DESTDIR)/etc/gmt/ install -m644 debian/coastline.conf $(DESTDIR)/etc/gmt/ for file in $(DESTDIR)/etc/gmt/*.conf; do \ ln -fs /etc/gmt/`basename $$file` $(DESTDIR)/usr/share/gmt/`basename $$file`; \ done # GMT wrapper does not help in /usr/lib/gmt/bin (not in path by default) # So: Move it to /usr/bin and patch it a bit locally to alter the PATH var. # Also use 'pager' instead of more as default pager in the script. sed -e 's/^exec /PATH=\$$PATH:\$${exec_prefix}\/bin exec /' \ -e 's/:-more/:-pager/' \ $(DESTDIR)/usr/lib/gmt/bin/GMT >$(DESTDIR)/usr/bin/GMT rm -f $(DESTDIR)/usr/lib/gmt/bin/GMT # Move the manpages directory into the right place... for section in 1 3 5; do \ mkdir -p $(DESTDIR)/usr/share/man/man$${section}; \ for manpage in $(DESTDIR)/usr/lib/gmt/share/man/man$${section}/*.$${section}; do \ sed -e "s/^\.TH \(.*\) $${section}/\.TH \1 $${section}gmt/" $${manpage}|gzip \ >$(DESTDIR)/usr/share/man/man$${section}/`basename $${manpage}`gmt.gz; \ rm -f $${manpage}; \ done; \ done rm -rf $(DESTDIR)/usr/share/gmt/man touch $@ binary-arch: install-stamp dh_testdir -a dh_testroot -a dh_install --list-missing dh_installchangelogs -a dh_installchangelogs -pgmt ChangeLog dh_installdocs -a dh_installexamples -a dh_installmenu -a dh_installman -a dh_strip -a dh_link -a dh_compress -a -X.pdf dh_fixperms -a dh_makeshlibs -a dh_shlibdeps -a -l$(DESTDIR)/usr/lib/gmt/lib dh_installdeb -a dh_gencontrol -a dh_md5sums -a dh_builddeb -a binary-indep: install-stamp dh_testdir -i dh_testroot -i dh_install --list-missing dh_installchangelogs -i dh_installdocs -i dh_installexamples -i dh_installmenu -i dh_installman -i dh_strip -i dh_link -i dh_compress -i -X.pdf # Uncompress examples stuff find $(CURDIR)/debian/gmt-examples/usr/share/doc/gmt-examples/examples -name "*.gz" -exec gunzip {} \; # Remove +x find $(CURDIR)/debian/gmt-examples/usr/share/doc/gmt-examples/examples -name "*.bat" -exec chmod -x {} \; dh_fixperms -i dh_installdeb -i dh_gencontrol -i dh_md5sums -i dh_builddeb -i clean: dh_testdir dh_testroot rm -f install-stamp build-stamp # Reset upstream autotools helpers [ ! -f config.sub.original ] || mv -f config.sub.original config.sub [ ! -f config.guess.original ] || mv -f config.guess.original config.guess [ ! -f Makefile ] || $(MAKE) distclean || true # Remove a few files still around after upstream cleaning rm -f src/mgg/libgmt_mgg.a \ share/conf/gmt.conf \ share/conf/gmtdefaults_SI \ share/conf/gmtdefaults_US src/isogmt dh_clean debian/source/0000755000000000000000000000000012244675525010502 5ustar debian/source/format0000644000000000000000000000001412244675525011710 0ustar 3.0 (quilt) debian/README.source0000644000000000000000000000056312244675525011365 0ustar GMT for Debian -------------- This package drops the optional non-free well-known triangle.* source for triangularization in both the orig tarball and Debian source. Just remember to do the same at every new upstream release, at least until Paul and others still will distribute it. -- Francesco Paolo Lovergine Tue, 13 Mar 2012 13:47:12 +0100 debian/watch0000644000000000000000000000011012244675525010223 0ustar version=3 ftp://ibis.grdl.noaa.gov/pub/gmt/GMT([0-9.]+)\_src\.tar\.bz2