1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
$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)
|