summaryrefslogtreecommitdiff
path: root/graphics/GMT/patches/patch-af
blob: b9968216777fc2063d8a65821597e0ce8db10527 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD: patch-af,v 1.3 2006/11/14 13:16:00 wennmach Exp $

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 @@
 
 	/* 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);
 		exit (EXIT_FAILURE);