Patch PIL to build with Freetype2

This commit is contained in:
John Ralls 2014-05-23 11:21:37 -07:00
parent 4751c32e02
commit 61f2de9667
2 changed files with 30 additions and 1 deletions

View File

@ -0,0 +1,27 @@
*** a/_imagingft.c Sat Oct 31 17:44:12 2009
--- b/_imagingft.c Thu May 22 12:30:02 2014
***************
*** 70,76 ****
--- 70,80 ----
const char* message;
} ft_errors[] =
+ #if defined(USE_FREETYPE_2_1)
+ #include <freetype2/fterrors.h>
+ #else
#include <freetype/fterrors.h>
+ #endif
/* -------------------------------------------------------------------- */
/* font objects */
--- a/setup.py Sun Nov 15 08:06:10 2009
+++ b/setup.py Fri May 23 11:26:20 2014
@@ -348,7 +348,7 @@
dir = os.path.join(root, "Tk.framework", "Headers")
add_directory(self.compiler.include_dirs, dir, 1)
break
- if frameworks:
+ if False:
exts.append(Extension(
"_imagingtk", ["_imagingtk.c", "Tk/tkImaging.c"],
extra_compile_args=frameworks, extra_link_args=frameworks

View File

@ -161,7 +161,9 @@ gtk-mac-bundler gtk-osx-build/projects/gramps/gramps.bundle
</autotools>
<distutils id="pil">
<branch module="Imaging-1.1.7.tar.gz" version="1.1.7" repo="pythonware"/>
<branch module="Imaging-1.1.7.tar.gz" version="1.1.7" repo="pythonware">
<patch file="Imaging-Freetype2.patch" strip="1"/>
</branch>
</distutils>
<distutils id='pyicu'>