diff options
Diffstat (limited to 'graphics/GMT/patches/patch-af')
-rw-r--r-- | graphics/GMT/patches/patch-af | 30 |
1 files changed, 10 insertions, 20 deletions
diff --git a/graphics/GMT/patches/patch-af b/graphics/GMT/patches/patch-af index 4494b3fd0cb..b9968216777 100644 --- a/graphics/GMT/patches/patch-af +++ b/graphics/GMT/patches/patch-af @@ -1,25 +1,15 @@ -$NetBSD: patch-af,v 1.2 2001/04/19 20:51:31 jtb Exp $ +$NetBSD: patch-af,v 1.3 2006/11/14 13:16:00 wennmach Exp $ ---- src/grd2cpt.c.orig Thu Apr 19 18:02:09 2001 -+++ src/grd2cpt.c -@@ -64,7 +64,7 @@ - - /* Get list of available color tables in GMT /share */ +Adapt to pkgsrc directory infrastructure. + +--- src/grd2cpt.c.orig 2006-11-10 11:23:01.000000000 +0100 ++++ src/grd2cpt.c 2006-11-10 11:23:32.000000000 +0100 +@@ -115,7 +115,7 @@ -- sprintf (CPT_lis, "%s%cshare%cGMT_CPT.lis\0", GMTHOME, DIR_DELIM, DIR_DELIM); -+ sprintf (CPT_lis, "%s%cshare%cgmt%cGMT_CPT.lis\0", GMTHOME, DIR_DELIM, DIR_DELIM, DIR_DELIM); + /* Get list of available color tables in $GMTHOME/share */ +- GMT_getsharepath (CNULL, "GMT_CPT", ".lis", CPT_lis); ++ GMT_getsharepath ("gmt", "GMT_CPT", ".lis", CPT_lis); if ((fpc = fopen (CPT_lis, "r")) == NULL) { fprintf (stderr, "%s: ERROR: Cannot open file %s\n", GMT_program, CPT_lis); -@@ -180,9 +180,9 @@ - - if (!ok) { /* No table in current dir, try /share */ - if (table) -- sprintf (CPT_file, "%s%cshare%cGMT_%s.cpt\0", GMTHOME, DIR_DELIM, DIR_DELIM, table); -+ sprintf (CPT_file, "%s%cshare%cgmt%cGMT_%s.cpt\0", GMTHOME, DIR_DELIM, DIR_DELIM, DIR_DELIM, table); - else /* Default to rainbow colors */ -- sprintf (CPT_file, "%s%cshare%cGMT_rainbow.cpt\0", GMTHOME, DIR_DELIM, DIR_DELIM); -+ sprintf (CPT_file, "%s%cshare%cgmt%cGMT_rainbow.cpt\0", GMTHOME, DIR_DELIM, DIR_DELIM, DIR_DELIM); - - if (access (CPT_file, R_OK)) { - fprintf (stderr, "%s: ERROR: Cannot find colortable %s\n", GMT_program, CPT_file); + exit (EXIT_FAILURE); |