aboutsummaryrefslogtreecommitdiff
path: root/cad/pcb-rnd/files/patch-scconfig_src_sul_find__freetype2.c
diff options
context:
space:
mode:
Diffstat (limited to 'cad/pcb-rnd/files/patch-scconfig_src_sul_find__freetype2.c')
-rw-r--r--cad/pcb-rnd/files/patch-scconfig_src_sul_find__freetype2.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/cad/pcb-rnd/files/patch-scconfig_src_sul_find__freetype2.c b/cad/pcb-rnd/files/patch-scconfig_src_sul_find__freetype2.c
new file mode 100644
index 000000000000..353415d85b5d
--- /dev/null
+++ b/cad/pcb-rnd/files/patch-scconfig_src_sul_find__freetype2.c
@@ -0,0 +1,11 @@
+--- scconfig/src/sul/find_freetype2.c.orig 2022-05-27 13:11:01 UTC
++++ scconfig/src/sul/find_freetype2.c
+@@ -57,7 +57,7 @@ int find_sul_freetype2(const char *name, int logdepth,
+ if (try_icl(logdepth, node, test_c, NULL, NULL, "-lfreetype"))
+ return 0;
+
+- if (try_icl(logdepth, node, test_c, NULL, "-I/usr/include/freetype2 -I/usr/include/freetype2/freetype", "-lfreetype"))
++ if (try_icl(logdepth, node, test_c, NULL, "-I%%LOCALBASE%%/include/freetype2 -I%%LOCALBASE%%/include/freetype2/freetype -L%%LOCALBASE%%/lib", "-lfreetype"))
+ return 0;
+
+ if (try_icl(logdepth, node, test_c, NULL, "-I/usr/include/freetype2", "-lfreetype"))