summaryrefslogtreecommitdiff
path: root/meta/recipes-multimedia
diff options
context:
space:
mode:
authorSaul Wold <sgw@linux.intel.com>2013-09-10 10:28:13 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-09-10 22:56:50 +0100
commit787335494dc0a3f93d9bf5a6cf1b603c8675df66 (patch)
treecfab801cdbc4283788c3fe0e499e20d8cb00978f /meta/recipes-multimedia
parent7d8b700242b1b32c6b6d0735b497701800f54fc4 (diff)
downloadopenembedded-core-787335494dc0a3f93d9bf5a6cf1b603c8675df66.tar.gz
openembedded-core-787335494dc0a3f93d9bf5a6cf1b603c8675df66.tar.bz2
openembedded-core-787335494dc0a3f93d9bf5a6cf1b603c8675df66.zip
gstreamer-plugins: Change anonymous python structure
This change ensures that the SRC_URI is set before base.bbclass code is called. This will also ensure that the xz-native depends is set correct. [YOCTO #5127] Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-multimedia')
-rw-r--r--meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins.inc10
1 files changed, 6 insertions, 4 deletions
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins.inc b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins.inc
index 6f279577be..651119e2ed 100644
--- a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins.inc
+++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins.inc
@@ -30,7 +30,9 @@ oe_runconf_prepend() {
fi
}
-python __anonymous () {
+SRC_URI = "${@get_gst_srcuri(d)}"
+
+def get_gst_srcuri(d):
# check if expected prefix is present
prefix = "gstreamer1.0-"
bpn = d.getVar("BPN", True)
@@ -43,10 +45,10 @@ python __anonymous () {
branch = d.getVar("GSTREAMER_1_0_GIT_BRANCH", True)
if pv == "git":
- d.setVar("SRC_URI", "git://anongit.freedesktop.org/gstreamer/%s;branch=%s" % (gstpkg_basename, branch))
+ s = "git://anongit.freedesktop.org/gstreamer/%s;branch=%s" % (gstpkg_basename, branch)
else:
- d.setVar("SRC_URI", "http://gstreamer.freedesktop.org/src/%s/%s-%s.tar.xz" % (gstpkg_basename, gstpkg_basename, pv))
-}
+ s = "http://gstreamer.freedesktop.org/src/%s/%s-%s.tar.xz" % (gstpkg_basename, gstpkg_basename, pv)
+ return s
delete_liblink_m4_file() {
# This m4 file contains nastiness which conflicts with libtool 2.2.2