diff options
author | Carlos Rafael Giani <dv@pseudoterminal.org> | 2013-05-31 21:15:58 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-06-11 15:37:59 +0100 |
commit | c7ebd7e527a77ab40e280824f77241db9b3b710b (patch) | |
tree | 9db3c1204328adb47dd96eb618e522981921a561 /meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins.inc | |
parent | 96b144a25598090b1e58eb5e33f216b5bfef7595 (diff) | |
download | poky-c7ebd7e527a77ab40e280824f77241db9b3b710b.tar.gz |
gstreamer: added GStreamer 1.0 recipes
Originally from the https://github.com/dv1/meta-gstreamer1.0 repository,
the patches were copied with only one change:
gstreamer1.0-plugins-package.inc was removed, since gst-plugins-package.inc
is identical except for the LIBV variable.
(From OE-Core rev: e200e61529fa5a78354cde67442e90ace4b3857c)
Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
Signed-off-by: Saul Wold <sgw@linux.intel.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.inc | 57 |
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 @@ | |||
1 | DESCRIPTION = "Plugins for GStreamer 1.x" | ||
2 | HOMEPAGE = "http://gstreamer.freedesktop.org/" | ||
3 | BUGTRACKER = "https://bugzilla.gnome.org/enter_bug.cgi?product=Gstreamer" | ||
4 | SECTION = "multimedia" | ||
5 | DEPENDS = "gstreamer1.0" | ||
6 | |||
7 | inherit autotools pkgconfig | ||
8 | |||
9 | FILESPATH =. "${FILE_DIRNAME}/gst-plugins:" | ||
10 | |||
11 | GSTREAMER_1_0_DEBUG ?= "--disable-debug" | ||
12 | GSTREAMER_1_0_GIT_BRANCH ?= "master" | ||
13 | EXTRA_OECONF = "--disable-valgrind ${GSTREAMER_1_0_DEBUG} --disable-examples " | ||
14 | |||
15 | acpaths = "-I ${S}/common/m4 -I ${S}/m4" | ||
16 | |||
17 | LIBV = "1.0" | ||
18 | require gst-plugins-package.inc | ||
19 | |||
20 | PACKAGECONFIG[orc] = "--enable-orc,--disable-orc,orc" | ||
21 | |||
22 | PACKAGES_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 | ||
27 | oe_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 | |||
33 | python __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 | |||
51 | delete_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 | |||
56 | do_configure[prefuncs] += " delete_liblink_m4_file " | ||
57 | |||