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.
(From OE-Core rev:
d61230ac70158dd9a33fcfac4eea768d21ccc61d)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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"