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.inc57
1 files changed, 57 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins.inc b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins.inc
new file mode 100644
index 0000000000..9484b202ca
--- /dev/null
+++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins.inc
@@ -0,0 +1,57 @@
1DESCRIPTION = "Plugins for GStreamer 1.x"
2HOMEPAGE = "http://gstreamer.freedesktop.org/"
3BUGTRACKER = "https://bugzilla.gnome.org/enter_bug.cgi?product=Gstreamer"
4SECTION = "multimedia"
5DEPENDS = "gstreamer1.0"
6
7inherit autotools pkgconfig
8
9FILESPATH =. "${FILE_DIRNAME}/gst-plugins:"
10
11GSTREAMER_1_0_DEBUG ?= "--disable-debug"
12GSTREAMER_1_0_GIT_BRANCH ?= "master"
13EXTRA_OECONF = "--disable-valgrind ${GSTREAMER_1_0_DEBUG} --disable-examples "
14
15acpaths = "-I ${S}/common/m4 -I ${S}/m4"
16
17LIBV = "1.0"
18require gst-plugins-package.inc
19
20PACKAGECONFIG[orc] = "--enable-orc,--disable-orc,orc"
21
22PACKAGES_DYNAMIC = "^${PN}-.*"
23
24# apply gstreamer hack after Makefile.in.in in source is replaced by our version from
25# ${STAGING_DATADIR_NATIVE}/gettext/po/Makefile.in.in, but before configure is executed
26# http://lists.linuxtogo.org/pipermail/openembedded-core/2012-November/032233.html
27oe_runconf_prepend() {
28 if [ -e ${S}/po/Makefile.in.in ]; then
29 sed -i -e "1a\\" -e 'GETTEXT_PACKAGE = @GETTEXT_PACKAGE@' ${S}/po/Makefile.in.in
30 fi
31}
32
33python __anonymous () {
34 # check if expected prefix is present
35 prefix = "gstreamer1.0-"
36 bpn = d.getVar("BPN", True)
37 if not bpn.startswith(prefix):
38 bb.fatal('Invalid GStreamer 1.0 plugin package name "%s" : must start with "%s"' % (bpn, prefix))
39
40 # replaced prefix with "gst-", which is what is used for the tarball and repository filenames
41 gstpkg_basename = "gst-" + bpn[len(prefix):]
42 pv = d.getVar("PV", True)
43 branch = d.getVar("GSTREAMER_1_0_GIT_BRANCH", True)
44
45 if pv == "git":
46 d.setVar("SRC_URI", "git://anongit.freedesktop.org/gstreamer/%s;branch=%s;protocol=git" % (gstpkg_basename, branch))
47 else:
48 d.setVar("SRC_URI", "http://gstreamer.freedesktop.org/src/%s/%s-%s.tar.xz" % (gstpkg_basename, gstpkg_basename, pv))
49}
50
51delete_liblink_m4_file() {
52 # This m4 file contains nastiness which conflicts with libtool 2.2.2
53 rm "${S}/m4/lib-link.m4" || true
54}
55
56do_configure[prefuncs] += " delete_liblink_m4_file "
57