[DebianGIS-dev] r771 - in packages/gmt: . trunk trunk/debian
trunk/debian/patches
Torsten Landschoff
torsten at alioth.debian.org
Mon Apr 16 20:47:27 UTC 2007
Author: torsten
Date: 2007-04-16 20:47:26 +0000 (Mon, 16 Apr 2007)
New Revision: 771
Added:
packages/gmt/README
packages/gmt/branches/
packages/gmt/tags/
packages/gmt/trunk/
packages/gmt/trunk/debian/
packages/gmt/trunk/debian/README.Debian
packages/gmt/trunk/debian/changelog
packages/gmt/trunk/debian/coastline.conf
packages/gmt/trunk/debian/compat
packages/gmt/trunk/debian/control
packages/gmt/trunk/debian/copyright
packages/gmt/trunk/debian/gmt-doc-pdf.install
packages/gmt/trunk/debian/gmt-doc.install
packages/gmt/trunk/debian/gmt-examples.examples
packages/gmt/trunk/debian/gmt-tutorial-pdf.install
packages/gmt/trunk/debian/gmt.install
packages/gmt/trunk/debian/links
packages/gmt/trunk/debian/patches/
packages/gmt/trunk/debian/patches/disable_unsupported.diff
packages/gmt/trunk/debian/patches/link_gcc.diff
packages/gmt/trunk/debian/patches/series
packages/gmt/trunk/debian/rules
Log:
Initial commit to pkg-grass repository. History is available at
svn://svn.debian.org/pkg-gmt although I am not particulary proud of it :-)
Added: packages/gmt/README
===================================================================
--- packages/gmt/README 2007-04-16 20:25:54 UTC (rev 770)
+++ packages/gmt/README 2007-04-16 20:47:26 UTC (rev 771)
@@ -0,0 +1,16 @@
+Debian GMT (Generic Mapping Tools) packages repository
+------------------------------------------------------
+
+Currently, you'll find anything interesting in trunk. Checking out
+the trunk folder will give you a working copy with just the
+debian directory. Running
+
+ debian/rules download-upstream
+
+should download the upstream packages for you. After that, building a
+local package works as expected. To build an official package, first
+create an orig.tar.gz file from just the upstream folder using
+
+ debian/rules create-orig-tar
+
+ -- Torsten Landschoff <torsten at debian.org> Mon, 16 Apr 2007 23:39:27 +0200
Added: packages/gmt/trunk/debian/README.Debian
===================================================================
--- packages/gmt/trunk/debian/README.Debian 2007-04-16 20:25:54 UTC (rev 770)
+++ packages/gmt/trunk/debian/README.Debian 2007-04-16 20:47:26 UTC (rev 771)
@@ -0,0 +1,21 @@
+Generic Mapping Tools for Debian
+--------------------------------
+
+Note that coastline data is not available in the Debian archive at this
+time. To get GMT up and running, you should download the coastline data
+files
+
+ GMT4.1_coast.tar.bz2
+ GMT4.1_high.tar.bz2
+ GMT4.1_full.tar.bz2
+
+and untar them at a place you like. Then you need to edit
+/etc/gmt/coastline.conf and add the path to the files ending with .cfg
+that you just extracted. Afterwards, GMT should be fully functional.
+
+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).
+
+ -- Torsten Landschoff <torsten at debian.org> Fri, 26 May 2006 22:56:49 +0200
+
Added: packages/gmt/trunk/debian/changelog
===================================================================
--- packages/gmt/trunk/debian/changelog 2007-04-16 20:25:54 UTC (rev 770)
+++ packages/gmt/trunk/debian/changelog 2007-04-16 20:47:26 UTC (rev 771)
@@ -0,0 +1,175 @@
+gmt (4.2.0-1) unstable; urgency=low
+
+ * New upstream release.
+ * Hand over to Debian GIS team for group maintenance.
+
+ -- Torsten Landschoff <torsten at debian.org> Wed, 11 Apr 2007 00:17:13 +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 <marga at debian.org> 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 <torsten at debian.org> 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 <torsten at debian.org> 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 <torsten at debian.org> Tue, 6 Sep 2005 09:04:17 +0200
+
+gmt (4.0-1) unstable; urgency=low
+
+ * New upstream release.
+ * New packaging.
+
+ -- Torsten Landschoff <torsten at debian.org> Sun, 4 Sep 2005 20:40:54 +0200
+
+gmt (3.4.4-1) unstable; urgency=low
+
+ * New upstream release.
+
+ -- Torsten Landschoff <torsten at debian.org> 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 <torsten at debian.org> 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 <torsten at debian.org> 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 <torsten at debian.org> 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 <torsten at debian.org> 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 <torsten at debian.org> 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 <torsten at debian.org> 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 <torsten at debian.org> 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 <torsten at debian.org> Fri, 14 Jan 2000 19:13:26 +0100
+
+gmt (3.3.2-4) unstable; urgency=low
+
+ * Included bugfixes from the GMT homepage.
+
+ -- Torsten Landschoff <torsten at debian.org> 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 <torsten at debian.org> 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 <torsten at debian.org> Mon, 18 Oct 1999 23:22:59 +0200
+
+gmt (3.3.2-1) unstable; urgency=low
+
+ * Initial release.
+
+ -- Torsten Landschoff <torsten at debian.org> Wed, 11 Aug 1999 20:20:35 +0200
Added: packages/gmt/trunk/debian/coastline.conf
===================================================================
--- packages/gmt/trunk/debian/coastline.conf 2007-04-16 20:25:54 UTC (rev 770)
+++ packages/gmt/trunk/debian/coastline.conf 2007-04-16 20:47:26 UTC (rev 771)
@@ -0,0 +1,10 @@
+# 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
+
Added: packages/gmt/trunk/debian/compat
===================================================================
--- packages/gmt/trunk/debian/compat 2007-04-16 20:25:54 UTC (rev 770)
+++ packages/gmt/trunk/debian/compat 2007-04-16 20:47:26 UTC (rev 771)
@@ -0,0 +1 @@
+4
Added: packages/gmt/trunk/debian/control
===================================================================
--- packages/gmt/trunk/debian/control 2007-04-16 20:25:54 UTC (rev 770)
+++ packages/gmt/trunk/debian/control 2007-04-16 20:47:26 UTC (rev 771)
@@ -0,0 +1,91 @@
+Source: gmt
+Section: science
+Priority: extra
+Maintainer: Debian GIS Project <pkg-grass-devel at lists.alioth.debian.org>
+Uploaders: Torsten Landschoff <torsten at debian.org>, Francesco P. Lovergine <frankie at debian.org>
+Build-Depends: netcdfg-dev, tcsh | csh, debhelper (>= 4.0), bzip2, quilt, libxmu-headers, libxaw7-dev
+Build-Depends-Indep: debhelper (>= 4.0), bzip2, quilt
+Standards-Version: 3.6.2.1
+
+Package: gmt
+Architecture: any
+Depends: ${shlibs:Depends}
+Replaces: gmt-manpages
+Conflicts: gmt-manpages
+Recommends: gmt-coastline-data | gmt-coast-low, gmt-doc
+Suggests: gmt-tutorial-pdf, gmt-doc-pdf, gmt-examples
+Description: Generic Mapping Tools
+ GMT is a free collection of ~60 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 25 common map projections plus linear, log, and power scaling,
+ and comes with support data such as coastlines, rivers, and political
+ boundaries.
+
+Package: gmt-doc-pdf
+Architecture: all
+Description: PDF docs for GMT, the Generic Mapping Tools
+ GMT is a free collection of ~60 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 25 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
+Description: Tutorial for GMT, the Generic Mapping Tools (PDF)
+ GMT is a free collection of ~60 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 25 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
+Description: HTML documentation for GMT, the Generic Mapping Tools
+ GMT is a free collection of ~60 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 25 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
+Suggests: gmt
+Description: Example scripts illustrating the use of GMT
+ GMT is a free collection of ~60 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 25 common map projections plus linear, log, and power scaling,
+ and comes with support data such as coastlines, rivers, and political
+ boundaries.
Added: packages/gmt/trunk/debian/copyright
===================================================================
--- packages/gmt/trunk/debian/copyright 2007-04-16 20:25:54 UTC (rev 770)
+++ packages/gmt/trunk/debian/copyright 2007-04-16 20:47:26 UTC (rev 771)
@@ -0,0 +1,23 @@
+
+This package was debianized by Torsten Landschoff <torsten at debian.org> on
+Wed, 29 Sep 1999 18:04:12 +0200
+
+The upstream source is available from
+
+ ftp://pahoehoe.soest.hawaii.edu/pub/gmt/ (main site)
+ ftp://ftp.geologi.uio.no/pub/gmt/ (the mirror I used)
+
+The main upstream authors are
+
+ Paul Wessel <wessel at soest.hawaii.edu>
+ and Walter Smith <wsmith at nodc.noaa.gov>
+
+Copyright:
+
+This software is covered by the GNU Library General Public Licence
+(version 2, or if you choose, a later version).
+
+On Debian GNU/Linux systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL'. If
+you got the source archive you will find the license in the file COPYING
+in the top directory.
Added: packages/gmt/trunk/debian/gmt-doc-pdf.install
===================================================================
--- packages/gmt/trunk/debian/gmt-doc-pdf.install 2007-04-16 20:25:54 UTC (rev 770)
+++ packages/gmt/trunk/debian/gmt-doc-pdf.install 2007-04-16 20:47:26 UTC (rev 771)
@@ -0,0 +1 @@
+usr/share/doc/gmt/pdf/GMT_Docs.pdf
Added: packages/gmt/trunk/debian/gmt-doc.install
===================================================================
--- packages/gmt/trunk/debian/gmt-doc.install 2007-04-16 20:25:54 UTC (rev 770)
+++ packages/gmt/trunk/debian/gmt-doc.install 2007-04-16 20:47:26 UTC (rev 771)
@@ -0,0 +1,3 @@
+usr/share/doc/gmt/*.html
+usr/share/doc/gmt/*.gif
+usr/share/doc/gmt/html
Added: packages/gmt/trunk/debian/gmt-examples.examples
===================================================================
--- packages/gmt/trunk/debian/gmt-examples.examples 2007-04-16 20:25:54 UTC (rev 770)
+++ packages/gmt/trunk/debian/gmt-examples.examples 2007-04-16 20:47:26 UTC (rev 771)
@@ -0,0 +1 @@
+GMT4.2.0/examples/*
Added: packages/gmt/trunk/debian/gmt-tutorial-pdf.install
===================================================================
--- packages/gmt/trunk/debian/gmt-tutorial-pdf.install 2007-04-16 20:25:54 UTC (rev 770)
+++ packages/gmt/trunk/debian/gmt-tutorial-pdf.install 2007-04-16 20:47:26 UTC (rev 771)
@@ -0,0 +1 @@
+usr/share/doc/gmt/pdf/GMT_Tutorial.pdf
Added: packages/gmt/trunk/debian/gmt.install
===================================================================
--- packages/gmt/trunk/debian/gmt.install 2007-04-16 20:25:54 UTC (rev 770)
+++ packages/gmt/trunk/debian/gmt.install 2007-04-16 20:47:26 UTC (rev 771)
@@ -0,0 +1,7 @@
+usr/bin
+usr/lib/gmt/bin
+usr/lib/gmt/lib
+usr/include
+usr/share/gmt
+usr/share/man
+etc
Added: packages/gmt/trunk/debian/links
===================================================================
--- packages/gmt/trunk/debian/links 2007-04-16 20:25:54 UTC (rev 770)
+++ packages/gmt/trunk/debian/links 2007-04-16 20:47:26 UTC (rev 771)
@@ -0,0 +1,4 @@
+usr/share/man usr/lib/gmt/man
+usr/share/doc/gmt usr/lib/gmt/www/gmt
+usr/include/gmt usr/lib/gmt/include
+usr/share/gmt usr/lib/gmt/share
Added: packages/gmt/trunk/debian/patches/disable_unsupported.diff
===================================================================
--- packages/gmt/trunk/debian/patches/disable_unsupported.diff 2007-04-16 20:25:54 UTC (rev 770)
+++ packages/gmt/trunk/debian/patches/disable_unsupported.diff 2007-04-16 20:47:26 UTC (rev 771)
@@ -0,0 +1,13 @@
+Index: GMT4.2.0/Makefile
+===================================================================
+--- GMT4.2.0.orig/Makefile 2007-04-02 22:38:49.000000000 +0200
++++ GMT4.2.0/Makefile 2007-04-16 23:02:28.632988058 +0200
+@@ -65,7 +65,7 @@
+ # !! STOP EDITING HERE, THE REST IS FIXED !!
+ #-------------------------------------------------------------------------------
+
+-SUPPL = dbase gshhs imgsrc meca mex mgd77 mgg misc segyprogs spotter x2sys x_system xgrid
++SUPPL = dbase gshhs imgsrc meca mgd77 mgg misc segyprogs spotter x2sys x_system xgrid
+ SUPPL_M = dbase imgsrc meca mgd77 mgg misc segyprogs spotter x2sys x_system
+
+ all: gmt suppl
Added: packages/gmt/trunk/debian/patches/link_gcc.diff
===================================================================
--- packages/gmt/trunk/debian/patches/link_gcc.diff 2007-04-16 20:25:54 UTC (rev 770)
+++ packages/gmt/trunk/debian/patches/link_gcc.diff 2007-04-16 20:47:26 UTC (rev 771)
@@ -0,0 +1,12 @@
+Index: GMT4.2.0/configure
+===================================================================
+--- GMT4.2.0.orig/configure 2007-04-03 05:32:45.000000000 +0200
++++ GMT4.2.0/configure 2007-04-16 23:02:18.509532455 +0200
+@@ -4673,6 +4673,7 @@
+ LDFLAGS=$OPTS'-Wl,-R,$(libdir):'$NETCDFHOME/lib
+ fi
+ elif test "$os" = "Linux" ; then # Need optimization when doing shared
++ LD=gcc
+ LD_OPT="-shared"
+ OPTGO="-O2 "
+ LDFLAGS=$OPTS'-Wl,-rpath,$(libdir):'$NETCDFHOME/lib
Added: packages/gmt/trunk/debian/patches/series
===================================================================
--- packages/gmt/trunk/debian/patches/series 2007-04-16 20:25:54 UTC (rev 770)
+++ packages/gmt/trunk/debian/patches/series 2007-04-16 20:47:26 UTC (rev 771)
@@ -0,0 +1,2 @@
+link_gcc.diff
+disable_unsupported.diff
Added: packages/gmt/trunk/debian/rules
===================================================================
--- packages/gmt/trunk/debian/rules 2007-04-16 20:25:54 UTC (rev 770)
+++ packages/gmt/trunk/debian/rules 2007-04-16 20:47:26 UTC (rev 771)
@@ -0,0 +1,155 @@
+#! /usr/bin/make -f
+
+RELEASE := 4.2.0
+PARTS := man pdf src share scripts suppl tut web
+ARCHIVES := $(PARTS:%=upstream/GMT$(RELEASE)_%.tar.bz2)
+
+unpack: stamps/unpack-stamp
+patch: stamps/patch-stamp
+build: stamps/build-stamp
+install: stamps/install-stamp
+binary: binary-arch binary-indep
+
+download-upstream: $(ARCHIVES)
+
+create-orig-tar: $(ARCHIVES)
+ dh_testdir
+ mkdir -p gmt-$(RELEASE).orig
+ ln $(ARCHIVES) gmt-$(RELEASE).orig
+ tar -cf - gmt-$(RELEASE).orig|gzip -9 > gmt-$(RELEASE).orig.tar.gz
+ mv gmt-$(RELEASE).orig.tar.gz ..
+ rm -R gmt-$(RELEASE).orig
+
+upstream/%:
+ dh_testdir
+ mkdir -p upstream
+ wget -O upstream/$*.partial ftp://ibis.grdl.noaa.gov/pub/gmt/4/$*
+ mv upstream/$*.partial upstream/$*
+
+stamps/unpack-stamp:
+ dh_testdir
+ for i in $(ARCHIVES); do \
+ tar -xjf $$i || exit 1; \
+ done
+ mkdir -p stamps
+ touch $@
+
+stamps/patch-stamp: stamps/unpack-stamp
+ dh_testdir
+ ln -sf ../debian/patches GMT$(RELEASE)/
+ cd GMT$(RELEASE) && quilt push -a --color=auto || [ $$? = 2 ]
+ touch $@
+
+unpatch:
+ dh_testdir
+ cd GMT$(RELEASE) && quilt pop -a
+
+PATHCONFIG := --prefix=/usr/lib/gmt
+DESTDIR := $(CURDIR)/debian/tmp
+PATHVARS := prefix=$(DESTDIR)/usr/lib/gmt
+
+stamps/build-stamp: stamps/patch-stamp
+ dh_testdir
+ cd GMT$(RELEASE) && ./configure \
+ --enable-mansect=1gmt --enable-shared $(PATHCONFIG)
+ make -C GMT$(RELEASE) CC_OPT="-fPIC -O2 -ansi -pedantic" all suppl
+ touch $@
+
+stamps/install-stamp: stamps/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/www $(DESTDIR)/usr/share/gmt \
+ $(DESTDIR)/usr/share/man $(DESTDIR)/usr/include/gmt \
+ $(DESTDIR)/usr/share/doc $(DESTDIR)/etc/gmt $(DESTDIR)/usr/bin
+ ln -s ../../share/man $(DESTDIR)/usr/lib/gmt/man
+ ln -s ../../include/gmt $(DESTDIR)/usr/lib/gmt/include
+ ln -s ../../share/gmt $(DESTDIR)/usr/lib/gmt/share
+
+ make -C GMT$(RELEASE) $(PATHVARS) install-all
+
+ # 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/www/gmt $(DESTDIR)/usr/share/doc/
+ ln -s ../../../share/doc/gmt $(DESTDIR)/usr/lib/gmt/www/gmt
+
+ # Move stuff from the doc directory up one level and replace the dir
+ # with a symlink to .
+ mv $(DESTDIR)/usr/share/doc/gmt/doc/* $(DESTDIR)/usr/share/doc/gmt/
+ rmdir $(DESTDIR)/usr/share/doc/gmt/doc
+ ln -s . $(DESTDIR)/usr/share/doc/gmt/doc
+
+ # Configuration files are still at the wrong place, let's fix this
+ mv $(DESTDIR)/usr/share/gmt/gmt.conf $(DESTDIR)/etc/gmt/
+ ln -s /etc/gmt/gmt.conf $(DESTDIR)/usr/share/gmt/
+ install -m644 debian/coastline.conf $(DESTDIR)/etc/gmt/
+ ln -s /etc/gmt/coastline.conf $(DESTDIR)/usr/share/gmt/
+
+ # GMT wrapper does not help in /usr/lib/gmt/bin (not in path by default)
+ # So: Move it to /usr/bin
+ mv $(DESTDIR)/usr/lib/gmt/bin/GMT $(DESTDIR)/usr/bin/
+
+ # Move the manpages directory to the right place...
+ mv $(DESTDIR)/usr/share/man/man1gmt $(DESTDIR)/usr/share/man/man1
+
+ touch $@
+
+binary-arch: stamps/install-stamp
+ dh_testdir -a
+ dh_testroot -a
+ dh_install --list-missing --sourcedir=$(DESTDIR)
+ dh_installchangelogs -a
+ dh_installchangelogs -pgmt GMT$(RELEASE)/CHANGES
+ dh_installdocs -a
+ dh_installexamples -a
+ dh_installmenu -a
+# dh_undocumented -a
+ dh_installman -a
+ dh_strip -a
+ dh_link -a
+ dh_compress -a -X.pdf
+ dh_fixperms -a
+# dh_perl -a
+# dh_python -a
+# dh_makeshlibs -a
+ dh_installdeb -a
+ dh_shlibdeps -a
+ dh_gencontrol -a
+ dh_md5sums -a
+ dh_builddeb -a
+
+
+binary-indep: stamps/install-stamp
+ dh_testdir -i
+ dh_testroot -i
+ dh_install --list-missing --sourcedir=$(DESTDIR)
+ dh_installchangelogs -i
+ dh_installdocs -i
+ dh_installexamples -i
+ dh_installmenu -i
+# dh_undocumented -i
+ dh_installman -i
+ dh_strip -i
+ dh_link -i
+ dh_compress -i -X.pdf
+ dh_fixperms -i
+# dh_perl -i
+# dh_python -i
+# dh_makeshlibs -i
+ dh_installdeb -i
+ dh_shlibdeps -i
+ dh_gencontrol -i
+ dh_md5sums -i
+ dh_builddeb -i
+
+clean:
+ dh_testdir
+ dh_testroot
+ rm -Rf stamps GMT$(RELEASE)
+ dh_clean
Property changes on: packages/gmt/trunk/debian/rules
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:mime-type
+ text/script
More information about the Pkg-grass-devel
mailing list