From 1cf6cecfeb93091f450ec0745c63100d4496648c Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Fri, 6 Dec 2013 23:20:18 -0800 Subject: libgnomeprint: Add missing dependency on freetype Fixes compile errors like | gnome-rfont.c:31:30: fatal error: freetype/ftglyph.h: No such file or directory | #include | ^ | compilation terminated. | make[3]: *** [gnome-rfont.lo] Error 1 Fix header inclusion mechanism for freetype headers Signed-off-by: Khem Raj Signed-off-by: Martin Jansa --- .../gnome/libgnomeprint/freetype.patch | 38 ++++++++++++++++++++++ .../recipes-gnome/gnome/libgnomeprint_2.18.7.bb | 6 ++-- 2 files changed, 42 insertions(+), 2 deletions(-) create mode 100644 meta-gnome/recipes-gnome/gnome/libgnomeprint/freetype.patch (limited to 'meta-gnome/recipes-gnome/gnome') diff --git a/meta-gnome/recipes-gnome/gnome/libgnomeprint/freetype.patch b/meta-gnome/recipes-gnome/gnome/libgnomeprint/freetype.patch new file mode 100644 index 000000000..7a27ecd23 --- /dev/null +++ b/meta-gnome/recipes-gnome/gnome/libgnomeprint/freetype.patch @@ -0,0 +1,38 @@ +Use proper method to include freetype headers + +FreeType wants to use these special macros to include its APIs +so be it. + +Signed-off-by: Khem Raj +Upstream-Status: Pending + +Index: libgnomeprint-2.18.7/libgnomeprint/gnome-font-face.c +=================================================================== +--- libgnomeprint-2.18.7.orig/libgnomeprint/gnome-font-face.c ++++ libgnomeprint-2.18.7/libgnomeprint/gnome-font-face.c +@@ -36,7 +36,9 @@ + #include + #include + +-#include ++#include ++#include FT_FREETYPE_H ++ + + #include + #include +Index: libgnomeprint-2.18.7/libgnomeprint/gnome-rfont.c +=================================================================== +--- libgnomeprint-2.18.7.orig/libgnomeprint/gnome-rfont.c ++++ libgnomeprint-2.18.7/libgnomeprint/gnome-rfont.c +@@ -28,8 +28,8 @@ + + #include + #include FT_FREETYPE_H +-#include +-#include ++#include FT_GLYPH_H ++#include FT_BBOX_H + #include + #include + #include diff --git a/meta-gnome/recipes-gnome/gnome/libgnomeprint_2.18.7.bb b/meta-gnome/recipes-gnome/gnome/libgnomeprint_2.18.7.bb index 8e31f1dcd..606c752e2 100644 --- a/meta-gnome/recipes-gnome/gnome/libgnomeprint_2.18.7.bb +++ b/meta-gnome/recipes-gnome/gnome/libgnomeprint_2.18.7.bb @@ -3,13 +3,15 @@ SECTION = "x11/gnome/libs" PR = "r2" -DEPENDS = "libxml2 libgnomecups glib-2.0 pango libart-lgpl fontconfig popt gnome-common" +DEPENDS = "libxml2 libgnomecups glib-2.0 pango libart-lgpl fontconfig popt gnome-common freetype" LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" inherit pkgconfig gnome -SRC_URI += "file://fix.includes.patch" +SRC_URI += "file://fix.includes.patch \ + file://freetype.patch \ + " SRC_URI[archive.md5sum] = "d66b81ee8aa3b3a33f5efc9a47ce07e3" SRC_URI[archive.sha256sum] = "8b34f81599423ef3da9c43775495da602f83cbbee069c9e760ffeae6aa4768e6" -- cgit v1.2.3-54-g00ecf