I found that the pkg-config sysroot support doesnt extend to variables
so some extra munging was needed to point this at the correct IDL files.
--- /dev/null
+Index: gthumb-2.10.11/add-include-prefix
+===================================================================
+--- gthumb-2.10.11.orig/add-include-prefix
++++ gthumb-2.10.11/add-include-prefix
+@@ -1 +1 @@
+-sed -e 's/^/ /' -e 's/ \+$//' -e 's/ / -I /g' -e 's/^ \+//'
++sed -e 's|^| |' -e 's| \+$||' -e 's| | -I HACK_STAGING_DIR_HOST|g' -e 's|^ \+||'
inherit gnome
-PR = "r1"
+SRC_URI += "file://pkg-config-hack.patch;patch=1"
+
+PR = "r2"
FILES_${PN} += "${libdir}/*.so ${datadir}/gnome* ${datadir}/application-registry/*"
FILES_${PN}-dbg += "${libdir}/gthumb/modules/.debug"
-
-
+do_configure_prepend() {
+ sed -i "s|HACK_STAGING_DIR_HOST|${STAGING_DIR_HOST}|" ${S}/add-include-prefix
+}