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

51 lines
1.8 KiB
Text

$NetBSD: patch-ai,v 1.4 2006/11/14 13:16:00 wennmach Exp $
Adapt to pkgsrc directory structure.
--- src/pslib.c.orig 2006-11-13 15:46:37.000000000 +0100
+++ src/pslib.c 2006-11-13 15:47:20.000000000 +0100
@@ -909,7 +909,7 @@
if ((image_no >= 0 && image_no < PSL_N_PATTERNS)) { /* Premade pattern yet not used */
sprintf (name, "ps_pattern_%2.2d", image_no);
- ps_getsharepath ("pattern", name, ".ras", file);
+ ps_getsharepath ("gmt/pattern", name, ".ras", file);
}
else { /* User image, check to see if already used */
@@ -926,7 +926,7 @@
if (!access (imagefile, R_OK))
strcpy (file, imagefile);
else
- ps_getsharepath (CNULL, imagefile, CNULL, file);
+ ps_getsharepath ("gmt", imagefile, CNULL, file);
}
psl_user_image[psl_n_userimages] = (char *) ps_memory (VNULL, (size_t)(strlen (imagefile)+1), sizeof (char));
strcpy (psl_user_image[psl_n_userimages], imagefile);
@@ -4261,7 +4261,7 @@
char fullname[BUFSIZ];
int i, j;
- ps_getsharepath ("pslib", fname, ".ps", fullname);
+ ps_getsharepath ("gmt/pslib", fname, ".ps", fullname);
if ((in = fopen (fullname, "r")) == NULL) {
fprintf (stderr, "PSL Fatal Error: ");
perror (fullname);
@@ -4301,7 +4301,7 @@
/* First the standard 35 PostScript fonts from Adobe */
- ps_getsharepath ("pslib", "PS_font_info", ".d", fullname);
+ ps_getsharepath ("gmt/pslib", "PS_font_info", ".d", fullname);
if ((in = fopen (fullname, "r")) == NULL) {
fprintf (stderr, "PSL Fatal Error: ");
perror (fullname);
@@ -4329,7 +4329,7 @@
/* Then any custom fonts */
- ps_getsharepath ("pslib", "CUSTOM_font_info", ".d", fullname);
+ ps_getsharepath ("gmt/pslib", "CUSTOM_font_info", ".d", fullname);
if (!access (fullname, R_OK)) { /* Decode Custom font file */
if ((in = fopen (fullname, "r")) == NULL)