summaryrefslogtreecommitdiffstats
path: root/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins.inc
diff options
context:
space:
mode:
authorAndre McCurdy <armccurdy@gmail.com>2016-01-18 19:53:28 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-01-24 09:40:24 +0000
commit676275fb23ceb5f2b55f6e8fa01a5a69362676ee (patch)
treeb693b2e8c23e92aab37a17a93ed309026c790708 /meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins.inc
parent852f098b07d6a4e24937f6f2ce86976e5f2e39d0 (diff)
downloadpoky-676275fb23ceb5f2b55f6e8fa01a5a69362676ee.tar.gz
gstreamer1.0-plugins.inc: don't set base SRC_URI via python
Setting the SRC_URI via python for the four gstreamer1.0-plugins-XXX packages adds complexity and breaks consistency with the other plugins packages and with gstreamer itself (which all also fetch from freedesktop.org URLs but set SRC_URI conventionally). (From OE-Core rev: 0ec2a80f3300065824d6c980101e7f3af2cbe7aa) Signed-off-by: Andre McCurdy <armccurdy@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins.inc')
-rw-r--r--meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins.inc22
1 files changed, 0 insertions, 22 deletions
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins.inc b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins.inc
index f179ce9b5b..fd0d8bd413 100644
--- a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins.inc
+++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins.inc
@@ -32,25 +32,3 @@ oe_runconf_prepend() {
32 sed -i -e "1a\\" -e 'GETTEXT_PACKAGE = @GETTEXT_PACKAGE@' ${S}/po/Makefile.in.in 32 sed -i -e "1a\\" -e 'GETTEXT_PACKAGE = @GETTEXT_PACKAGE@' ${S}/po/Makefile.in.in
33 fi 33 fi
34} 34}
35
36SRC_URI = "${@get_gst_srcuri(d)}"
37
38GSTREAMER_1_0_GIT_BRANCH ?= "master"
39
40def get_gst_srcuri(d):
41 # check if expected prefix is present
42 prefix = "gstreamer1.0-"
43 bpn = d.getVar("BPN", True)
44 if not bpn.startswith(prefix):
45 bb.fatal('Invalid GStreamer 1.0 plugin package name "%s" : must start with "%s"' % (bpn, prefix))
46
47 # replaced prefix with "gst-", which is what is used for the tarball and repository filenames
48 gstpkg_basename = "gst-" + bpn[len(prefix):]
49 pv = d.getVar("PV", True)
50 branch = d.getVar("GSTREAMER_1_0_GIT_BRANCH", True)
51
52 if pv == "git":
53 s = "git://anongit.freedesktop.org/gstreamer/%s;branch=%s" % (gstpkg_basename, branch)
54 else:
55 s = "http://gstreamer.freedesktop.org/src/%s/%s-%s.tar.xz" % (gstpkg_basename, gstpkg_basename, pv)
56 return s