[oe] [PATCH (rebase) 3/3] freetype: enable bytecode interpreter

Enrico Scholz enrico.scholz at sigma-chemnitz.de
Thu May 27 14:57:22 UTC 2010


From: Enrico Scholz <enrico.scholz at informatik.tu-chemnitz.de>

Bytecode stuff is patent encumbered so it can be enabled for
non-enterprise distributions only.

Signed-off-by: Enrico Scholz <enrico.scholz at sigma-chemnitz.de>
---
 .../freetype-2.3.12/bytecode-interpreter.patch     |   22 ++++++++++++++++++++
 recipes/freetype/freetype_2.3.12.bb                |    1 +
 2 files changed, 23 insertions(+), 0 deletions(-)
 create mode 100644 recipes/freetype/freetype-2.3.12/bytecode-interpreter.patch

diff --git a/recipes/freetype/freetype-2.3.12/bytecode-interpreter.patch b/recipes/freetype/freetype-2.3.12/bytecode-interpreter.patch
new file mode 100644
index 0000000..599e67d
--- /dev/null
+++ b/recipes/freetype/freetype-2.3.12/bytecode-interpreter.patch
@@ -0,0 +1,22 @@
+Index: freetype-2.3.12/include/freetype/config/ftoption.h
+===================================================================
+--- freetype-2.3.12.orig/include/freetype/config/ftoption.h
++++ freetype-2.3.12/include/freetype/config/ftoption.h
+@@ -93,7 +93,7 @@ FT_BEGIN_HEADER
+   /* This is done to allow FreeType clients to run unmodified, forcing     */
+   /* them to display normal gray-level anti-aliased glyphs.                */
+   /*                                                                       */
+-/* #define FT_CONFIG_OPTION_SUBPIXEL_RENDERING */
++#define FT_CONFIG_OPTION_SUBPIXEL_RENDERING
+ 
+ 
+   /*************************************************************************/
+@@ -497,7 +497,7 @@ FT_BEGIN_HEADER
+   /*   Do not #undef this macro here, since the build system might         */
+   /*   define it for certain configurations only.                          */
+   /*                                                                       */
+-/* #define TT_CONFIG_OPTION_BYTECODE_INTERPRETER */
++#define TT_CONFIG_OPTION_BYTECODE_INTERPRETER
+ 
+ 
+   /*************************************************************************/
diff --git a/recipes/freetype/freetype_2.3.12.bb b/recipes/freetype/freetype_2.3.12.bb
index 6e0641e..04e445c 100644
--- a/recipes/freetype/freetype_2.3.12.bb
+++ b/recipes/freetype/freetype_2.3.12.bb
@@ -9,6 +9,7 @@ SRC_URI = "\
   file://no-hardcode.patch \
   file://fix-configure.patch \
   file://libtool-tag.patch \
+  ${@base_conditional('ENTERPRISE_DISTRO','1','','file://bytecode-interpreter.patch',d)} \
 "
 S = "${WORKDIR}/freetype-${PV}"
 
-- 
1.7.0.1





More information about the Openembedded-devel mailing list