pkgsrc/graphics/GMT/patches/patch-ay
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

24 lines
887 B
Text

$NetBSD: patch-ay,v 1.6 2006/11/14 13:16:00 wennmach Exp $
Change method to determine endianness and adapt to pkgsrc directory structure.
--- src/dbase/grdraster.c.orig 2006-11-13 15:56:13.000000000 +0100
+++ src/dbase/grdraster.c 2006-11-13 15:59:44.000000000 +0100
@@ -50,7 +50,7 @@
{
BOOLEAN xyz_out = FALSE;
-#if WORDS_BIGENDIAN == 0
+#if BYTE_ORDER == LITTLE_ENDIAN
char my_endian = 'L'; /* This machine is Little endian */
#else
char my_endian = 'B'; /* This machine is Big endian */
@@ -646,7 +646,7 @@
/* Find and open the file grdraster.info */
- if (!(GMT_getdatapath("grdraster.info", dir) || GMT_getsharepath("dbase", "grdraster", ".info", dir))) {
+ if (!(GMT_getdatapath("grdraster.info", dir) || GMT_getsharepath("gmt/dbase", "grdraster", ".info", dir))) {
fprintf(stderr, "%s: ERROR cannot find file grdraster.info", GMT_program);
return (0);
}