Patchwork harfbuzz: Add PACKAGECONFIG for icu

login
register
mail settings
Submitter Richard Purdie
Date Nov. 26, 2013, 2:31 p.m.
Message ID <1385476316.11246.3.camel@ted>
Download mbox | patch
Permalink /patch/62405/
State Accepted
Commit bbbd6fc1d1342936b583289c6dcaf7b4ea60eb5c
Headers show

Comments

Richard Purdie - Nov. 26, 2013, 2:31 p.m.
harfbuzz can be built without icu. We don't need harfbuzz-icu for any
default OE-Core configuration so default to icu being disabled for
performance improvements.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---

Patch

diff --git a/meta/recipes-graphics/harfbuzz/harfbuzz_0.9.22.bb b/meta/recipes-graphics/harfbuzz/harfbuzz_0.9.22.bb
index e315f78..26f3f38 100644
--- a/meta/recipes-graphics/harfbuzz/harfbuzz_0.9.22.bb
+++ b/meta/recipes-graphics/harfbuzz/harfbuzz_0.9.22.bb
@@ -18,11 +18,14 @@  SRC_URI[sha256sum] = "989680807e76197418338e44f226e02f155f33031efd9aff14dbc4dc14
 
 inherit autotools pkgconfig
 
-DEPENDS = "icu glib-2.0 cairo freetype"
+DEPENDS = "glib-2.0 cairo freetype"
 
 BBCLASSEXTEND = "native"
 
-EXTRA_OECONF = "--with-glib --with-freetype --with-cairo --with-icu --without-graphite2"
+EXTRA_OECONF = "--with-glib --with-freetype --with-cairo --without-graphite2"
+
+PACKAGECONFIG = ""
+PACKAGECONFIG[icu] = "--with-icu,--without-icu,icu"
 
 PACKAGES =+ "${PN}-icu ${PN}-icu-dbg ${PN}-icu-dev"