diff options
| -rw-r--r-- | meta/recipes-multimedia/gstreamer/gstreamer1.0-python.inc | 35 | ||||
| -rw-r--r-- | meta/recipes-multimedia/gstreamer/gstreamer1.0-python_1.10.4.bb | 7 |
2 files changed, 42 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-python.inc b/meta/recipes-multimedia/gstreamer/gstreamer1.0-python.inc new file mode 100644 index 0000000000..961b93017e --- /dev/null +++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-python.inc | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | SUMMARY = "Python bindings for GStreamer 1.0" | ||
| 2 | HOMEPAGE = "http://cgit.freedesktop.org/gstreamer/gst-python/" | ||
| 3 | SECTION = "multimedia" | ||
| 4 | LICENSE = "LGPLv2.1" | ||
| 5 | |||
| 6 | DEPENDS = "gstreamer1.0 python3-pygobject" | ||
| 7 | RDEPENDS_${PN} += "gstreamer1.0 python3-pygobject" | ||
| 8 | |||
| 9 | PNREAL = "gst-python" | ||
| 10 | |||
| 11 | SRC_URI = "http://gstreamer.freedesktop.org/src/${PNREAL}/${PNREAL}-${PV}.tar.xz" | ||
| 12 | |||
| 13 | S = "${WORKDIR}/${PNREAL}-${PV}" | ||
| 14 | |||
| 15 | inherit autotools pkgconfig distutils3-base upstream-version-is-even gobject-introspection | ||
| 16 | |||
| 17 | do_install_append() { | ||
| 18 | # gstpythonplugin hardcodes the location of the libpython from the build | ||
| 19 | # workspace and then fails at runtime. We can override it using | ||
| 20 | # --with-libpython-dir=${libdir}, but it still fails because it looks for a | ||
| 21 | # symlinked library ending in .so instead of the actually library with | ||
| 22 | # LIBNAME.so.MAJOR.MINOR. Although we could patch the code to use the path | ||
| 23 | # we want, it will break again if the library version ever changes. We need | ||
| 24 | # to think about the best way of handling this and possibly consult | ||
| 25 | # upstream. | ||
| 26 | # | ||
| 27 | # Note that this particular find line is taken from the Debian packaging for | ||
| 28 | # gst-python1.0. | ||
| 29 | find "${D}" \ | ||
| 30 | -name '*.pyc' -o \ | ||
| 31 | -name '*.pyo' -o \ | ||
| 32 | -name '*.la' -o \ | ||
| 33 | -name 'libgstpythonplugin*' \ | ||
| 34 | -delete | ||
| 35 | } | ||
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-python_1.10.4.bb b/meta/recipes-multimedia/gstreamer/gstreamer1.0-python_1.10.4.bb new file mode 100644 index 0000000000..1365f7c6dd --- /dev/null +++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-python_1.10.4.bb | |||
| @@ -0,0 +1,7 @@ | |||
| 1 | require gstreamer1.0-python.inc | ||
| 2 | |||
| 3 | SRC_URI = "http://gstreamer.freedesktop.org/src/${PNREAL}/${PNREAL}-${PV}.tar.xz" | ||
| 4 | SRC_URI[md5sum] = "adcdb74f713e28d0b22a0a1e4f831573" | ||
| 5 | SRC_URI[sha256sum] = "59508174b8bc86c05290aa9a7c5d480ac556a6f36306ddbc1d0eacf4f7868212" | ||
| 6 | |||
| 7 | LIC_FILES_CHKSUM = "file://COPYING;md5=c34deae4e395ca07e725ab0076a5f740" | ||
