librsvg: add sstate dependencies so that the SVG loader works at staging time

Add additional dependencies so that when the sysroot is populated the gdk-pixbuf
SVG module can be loaded.

(From OE-Core rev: 2b68b08f47baf2fc2fa896dde0cc66297441b6b3)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Ross Burton 2013-05-17 18:48:55 +01:00 committed by Richard Purdie
parent b6212cf2f1
commit fc7db057e4
1 changed files with 1 additions and 10 deletions

View File

@ -54,13 +54,4 @@ FILES_librsvg-gtk-dbg += "${libdir}/gdk-pixbuf-2.0/.debug \
PIXBUF_PACKAGES = "librsvg-gtk"
PARALLEL_MAKE = ""
# ensure that the native gdk-pixbuf loaders cache is updated when we stage
# our svg loader
SSTATEPOSTINSTFUNCS_class_native += "librsvg_sstate_postinst"
librsvg_sstate_postinst() {
if [ "${BB_CURRENTTASK}" = "populate_sysroot" -o "${BB_CURRENTTASK}" = "populate_sysroot_setscene" ]
then
GDK_PIXBUF_MODULEDIR=${STAGING_LIBDIR_NATIVE}/gdk-pixbuf-2.0/2.10.0/loaders GDK_PIXBUF_MODULE_FILE=${STAGING_LIBDIR_NATIVE}/gdk-pixbuf-2.0/2.10.0/loaders.cache gdk-pixbuf-query-loaders --update-cache
fi
}
PIXBUFCACHE_SYSROOT_DEPS_append_class-native = " harfbuzz-native:do_populate_sysroot_setscene"