Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 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 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 11 | S = "${WORKDIR}/${PNREAL}-${PV}" |
| 12 | |
| 13 | inherit autotools pkgconfig distutils3-base upstream-version-is-even gobject-introspection |
| 14 | |
| 15 | do_install_append() { |
| 16 | # gstpythonplugin hardcodes the location of the libpython from the build |
| 17 | # workspace and then fails at runtime. We can override it using |
| 18 | # --with-libpython-dir=${libdir}, but it still fails because it looks for a |
| 19 | # symlinked library ending in .so instead of the actually library with |
| 20 | # LIBNAME.so.MAJOR.MINOR. Although we could patch the code to use the path |
| 21 | # we want, it will break again if the library version ever changes. We need |
| 22 | # to think about the best way of handling this and possibly consult |
| 23 | # upstream. |
| 24 | # |
| 25 | # Note that this particular find line is taken from the Debian packaging for |
| 26 | # gst-python1.0. |
| 27 | find "${D}" \ |
| 28 | -name '*.pyc' -o \ |
| 29 | -name '*.pyo' -o \ |
| 30 | -name '*.la' -o \ |
| 31 | -name 'libgstpythonplugin*' \ |
| 32 | -delete |
| 33 | } |