pkgsrc/graphics/GMT/patches/patch-ao
wennmach 11f5afe35b Update GMT to the most recent, supported, version 4.1.4.
The most significant changes in 4.0 include:

o Time-series support
o New Tools:
	- gmt2rgb
	- grdblend
	- pslegend:
o 30 new program options
o More than 23 general enhancements

The releases 4.1 and 4.1.1 to 4.1.4 include the following changes:
o numerous significant bug fixes
o many added program options
o added features and capabilities

For a complete list of changes, see
http://gmt.soest.hawaii.edu/gmt/gmt_releases.html
2006-11-14 13:16:00 +00:00

40 lines
1.2 KiB
Text

$NetBSD: patch-ao,v 1.4 2006/11/14 13:16:00 wennmach Exp $
Libtoolize.
--- src/imgsrc/makefile.orig Wed Apr 11 19:58:09 2001
+++ src/imgsrc/makefile
@@ -8,21 +8,21 @@
GMTSRCDIR = ..
include ../gmtalldeps.macros
-CDF = -L$(NETCDF)/lib -lnetcdf
-GMT = -L.. -L$(libdir) -lgmt
+CDF = -Wl,-R$(NETCDF)/lib -L$(NETCDF)/lib -lnetcdf
+GMT = ../libgmt.la ../libpsl.la
CFLAGS = $(CC_OPT) $(WIN32) -I$(srcdir) -I$(NETCDF)/include
all: img2mercgrd
install: all
- $(INSTALL) img2mercgrd$(EXE) $(bindir)
- $(INSTALL) img2grd $(bindir)
+ @$(LIBTOOL) --mode=install $(INSTALL_PROGRAM) img2mercgrd$(EXE) $(bindir)
+ @$(LIBTOOL) --mode=install $(INSTALL_SCRIPT) img2grd $(bindir)
uninstall:
\rm -f $(bindir)/img2mercgrd$(EXE) $(bindir)/img2grd
-img2mercgrd: img2mercgrd.o gmt_imgsubs.o $(GMTLIB)
- $(CC) $(CFLAGS) $(LDFLAGS) img2mercgrd.o gmt_imgsubs.o $(GMT) $(CDF) $(LIBS) -o img2mercgrd
+img2mercgrd: img2mercgrd.o gmt_imgsubs.o
+ @$(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) img2mercgrd.lo gmt_imgsubs.lo $(GMT) $(CDF) $(LIBS) -o img2mercgrd
spotless: clean
@@ -30,4 +30,4 @@
rm -f *.o img2mercgrd$(EXE)
.c.o: gmt_imgsubs.h $(GMT_H)
- $(CC) -c $(CFLAGS) $<
+ @$(LIBTOOL) --mode=compile $(CC) $(CPPFLAGS) -c $(CFLAGS) $<