blob: 961b93017ecfcc0384731825aebc6b70d1bad095 [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
11SRC_URI = "http://gstreamer.freedesktop.org/src/${PNREAL}/${PNREAL}-${PV}.tar.xz"
12
13S = "${WORKDIR}/${PNREAL}-${PV}"
14
15inherit autotools pkgconfig distutils3-base upstream-version-is-even gobject-introspection
16
17do_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}