diff options
author | spz <spz> | 2014-03-22 15:57:07 +0000 |
---|---|---|
committer | spz <spz> | 2014-03-22 15:57:07 +0000 |
commit | 64ac5ed5cfe27218b004d86fad70117cb9e7b7d1 (patch) | |
tree | c96420926599d737976cbab20cdcc5f6710c9db5 /graphics/py-sk1libs/patches | |
parent | b36de656ef0d35712610b476c6e61564c9d82385 (diff) | |
download | pkgsrc-64ac5ed5cfe27218b004d86fad70117cb9e7b7d1.tar.gz |
build fix following the freetype2 update
Diffstat (limited to 'graphics/py-sk1libs/patches')
-rw-r--r-- | graphics/py-sk1libs/patches/patch-src_imaging_libimagingft___imagingft.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/graphics/py-sk1libs/patches/patch-src_imaging_libimagingft___imagingft.c b/graphics/py-sk1libs/patches/patch-src_imaging_libimagingft___imagingft.c new file mode 100644 index 00000000000..de9e158e6fb --- /dev/null +++ b/graphics/py-sk1libs/patches/patch-src_imaging_libimagingft___imagingft.c @@ -0,0 +1,21 @@ +$NetBSD: patch-src_imaging_libimagingft___imagingft.c,v 1.1 2014/03/22 15:57:07 spz Exp $ + +make it deal gracefully with both freetype 2.4.* and 2.5.* + +--- src/imaging/libimagingft/_imagingft.c.orig 2009-11-01 00:44:12.000000000 +0000 ++++ src/imaging/libimagingft/_imagingft.c +@@ -70,7 +70,14 @@ struct { + const char* message; + } ft_errors[] = + ++#if defined(USE_FREETYPE_2_1) ++/* freetype 2.1 and newer */ ++#include <ft2build.h> ++#include FT_ERRORS_H ++#else ++/* freetype 2.0 */ + #include <freetype/fterrors.h> ++#endif + + /* -------------------------------------------------------------------- */ + /* font objects */ |