]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
gstreamer: Ensure correct orcc version is used
authorGary Thomas <gary@mlbassoc.com>
Wed, 29 Sep 2010 15:22:40 +0000 (16:22 +0100)
committerRichard Purdie <rpurdie@linux.intel.com>
Wed, 29 Sep 2010 15:22:40 +0000 (16:22 +0100)
Taken from a patch from the OE list posted by Michael Smith, submitted
to Poky by Gary Thomas.

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
meta/recipes-multimedia/gstreamer/gst-plugins.inc

index f7f0a2d7c5d8f935cb5187650ee74a793329f6d5..cd3e0a0a9598e36f47fb40c1a37d679f57924663 100644 (file)
@@ -20,6 +20,14 @@ FILES_${PN}-dbg += "${libdir}/gstreamer-${LIBV}/.debug"
 
 PACKAGES_DYNAMIC = "${PN}-*"
 
+# orc.m4 calls pkg-config ----variable=orcc orc-0.4 to get the path to orcc,
+# resulting in /usr/bin/orcc. Force it to use the staged orcc.
+do_configure_append() {
+       for i in $(find ${S} -name "Makefile") ; do
+               sed -i -e s:${bindir}/orcc:${STAGING_BINDIR_NATIVE}/orcc:g $i
+       done
+}
+
 python populate_packages_prepend () {
        gst_libdir = bb.data.expand('${libdir}/gstreamer-${LIBV}', d)
        postinst = bb.data.getVar('plugin_postinst', d, 1)