gmt stable port information

Package: gmt
Version: 4.5.7
Revision: 1
Source: ftp://ftp.soest.hawaii.edu/gmt/gmt-%v.tar.bz2
Source-MD5: fc8a4a546ff8572c225aa7bdb56bbdf8

SourceDirectory: GMT%v
BuildDepends: netcdf (>= 3.6.2-6)
Depends: netcdf-shlibs (>= 3.6.2-6), %n-shlibs (= %v-%r), gshhs (>= 2.2.0)
Recommends: %n-doc
NoSetCPPFLAGS: true
NoSetLDFLAGS: true

# Parallel build fail as of gmt 4.5.7
UseMaxBuildJobs: false

# don't build xgrid to avoid x11 dependency.
# don't build mex (won't work unless matlab or octave is installed).
ConfigureParams: --datadir='${prefix}/share/%n' --enable-netcdf=%p --enable-shared --enable-triangle --disable-xgrid --disable-mex
InstallScript: <<
#!/bin/sh -ev
make install-all prefix=%i
<<
SplitOff: <<
Package: %N-doc
BuildDependsOnly: True
Files: share/doc/gmt
DocFiles: LICENSE.TXT
<<
SplitOff2: <<
Package: %N-shlibs
Files: lib/*.4.dylib
Shlibs: <<
%p/lib/libpsl.4.dylib 4.0.0 %n (>= 4.5.7-1)
%p/lib/libgmt.4.dylib 4.0.0 %n (>= 4.5.7-1)
%p/lib/libgmtps.4.dylib 4.0.0 %n (>= 4.5.7-1)
%p/lib/libmgd77.4.dylib 4.0.0 %n (>= 4.5.7-1)
%p/lib/libgmt_mgg.4.dylib 4.0.0 %n (>= 4.5.7-1)
%p/lib/libx2sys.4.dylib 4.0.0 %n (>= 4.5.7-1)
<<
DocFiles: ChangeLog LICENSE.TXT README src/README.TRIANGLE src/TRIANGLE.HOWTO
<<
SplitOff3: <<
Package: %N-dev
BuildDependsOnly: True
Files: include lib/*.a lib/*.dylib
DocFiles: ChangeLog LICENSE.TXT README src/README.TRIANGLE src/TRIANGLE.HOWTO
<<
Description: Generic Mapping Tools
DescDetail: <<
GMT is an open source collection of ~60 tools for 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. GMT supports ~30 map projections and transformations
and comes with support data such as coastlines, rivers, and political
boundaries.
<<
DescPort: <<
Removed xgrid supplementary package so X11 is not required.
Removed mex support so that neither matlab or octave are required.
<<
License: GPL, Restrictive/Distributable
DocFiles: ChangeLog LICENSE.TXT README src/README.TRIANGLE src/TRIANGLE.HOWTO
Maintainer: Kurt Schwehr
Homepage: http://gmt.soest.hawaii.edu/

gmt stable port .patch

--- GMT4.2.0/src/makefile.orig 2007-04-01 15:59:46.000000000 -0400
+++ GMT4.2.0/src/makefile 2007-05-16 16:58:48.000000000 -0400
@@ -234,6 +234,8 @@
$(AR) cvur $@ $?
$(RANLIB) $@

+.SUFFIXES: .$(SL)
+LD_OPT=-flat_namespace -undefined suppress -install_name ${prefix}/lib/$*.4.$(SL) -compatibility_version 4.0.0 -current_version 4.0.0 -dynamiclib
libpsl.$(SL): pslib.o
$(LD) $(LD_OPT) $? -o $@

gmt _unstable_ port .patch