Patch PIL to build with Freetype2
This commit is contained in:
parent
4751c32e02
commit
61f2de9667
27
mac/Imaging-Freetype2.patch
Normal file
27
mac/Imaging-Freetype2.patch
Normal 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
|
@ -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'>
|
||||
|
Loading…
Reference in New Issue
Block a user