blob: 361f0bca41194820c633601e67cdd91662823fdf [file] [log] [blame]
Brad Bishopd7bf8c12018-02-25 22:55:05 -05001SUMMARY = "Python bindings for GStreamer 1.0"
2HOMEPAGE = "http://cgit.freedesktop.org/gstreamer/gst-python/"
3SECTION = "multimedia"
4LICENSE = "LGPLv2.1"
5
6DEPENDS = "gstreamer1.0 python3-pygobject"
7RDEPENDS_${PN} += "gstreamer1.0 python3-pygobject"
8
9PNREAL = "gst-python"
10
Brad Bishopd7bf8c12018-02-25 22:55:05 -050011S = "${WORKDIR}/${PNREAL}-${PV}"
12
13inherit autotools pkgconfig distutils3-base upstream-version-is-even gobject-introspection
14
15do_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}