summaryrefslogtreecommitdiffstats
path: root/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins.inc
diff options
context:
space:
mode:
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