summarylogtreecommitdiffstats
path: root/ftheaders.patch
diff options
context:
space:
mode:
authorYen Chi Hsuan2016-02-17 22:59:07 +0800
committerYen Chi Hsuan2016-02-17 22:59:07 +0800
commit445841bd08881699cebf5994ac165c3e770fc6ee (patch)
tree9a7b5903e928b9ceb9c43cb8fea13e7463cb2f55 /ftheaders.patch
parent5732ce342a928288323bc6c19a6ae7ccf8db726c (diff)
downloadaur-python2-imaging.tar.gz
Fix freetype header path
Ref: https://trac.macports.org/ticket/41593
Diffstat (limited to 'ftheaders.patch')
-rw-r--r--ftheaders.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/ftheaders.patch b/ftheaders.patch
new file mode 100644
index 00000000000..adc050a4670
--- /dev/null
+++ b/ftheaders.patch
@@ -0,0 +1,16 @@
+--- Imaging-1.1.7/_imagingft.c.orig 2016-02-17 22:51:22.173689472 +0800
++++ Imaging-1.1.7/_imagingft.c 2016-02-17 22:53:45.743683886 +0800
+@@ -70,7 +70,13 @@
+ const char* message;
+ } ft_errors[] =
+
++#if defined(USE_FREETYPE_2_1)
++/* freetype 2.1 and newer */
++#include FT_ERRORS_H
++#else
++/* freetype 2.0 */
+ #include <freetype/fterrors.h>
++#endif
+
+ /* -------------------------------------------------------------------- */
+ /* font objects */