Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 1 | SUMMARY = "Python bindings for GStreamer 1.0" |
| 2 | HOMEPAGE = "http://cgit.freedesktop.org/gstreamer/gst-python/" |
| 3 | SECTION = "multimedia" |
| 4 | |
| 5 | LICENSE = "LGPLv2.1" |
| 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=c34deae4e395ca07e725ab0076a5f740" |
| 7 | |
| 8 | SRC_URI = "http://gstreamer.freedesktop.org/src/${PNREAL}/${PNREAL}-${PV}.tar.xz" |
Brad Bishop | a5c52ff | 2018-11-23 10:55:50 +1300 | [diff] [blame] | 9 | SRC_URI[md5sum] = "d4c0e3915f547feef49208ee08981e5a" |
| 10 | SRC_URI[sha256sum] = "d0fdb24f93b6d889f309d2f526b8ea9577e0084ff0a62b4623ef1aed52e85a1b" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 11 | |
| 12 | DEPENDS = "gstreamer1.0 python3-pygobject" |
| 13 | RDEPENDS_${PN} += "gstreamer1.0 python3-pygobject" |
| 14 | |
| 15 | PNREAL = "gst-python" |
| 16 | |
| 17 | S = "${WORKDIR}/${PNREAL}-${PV}" |
| 18 | |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame^] | 19 | # gobject-introspection is mandatory and cannot be configured |
| 20 | REQUIRED_DISTRO_FEATURES = "gobject-introspection-data" |
| 21 | UNKNOWN_CONFIGURE_WHITELIST_append = " --enable-introspection --disable-introspection" |
| 22 | |
| 23 | inherit autotools pkgconfig distutils3-base upstream-version-is-even gobject-introspection distro_features_check |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 24 | |
| 25 | do_install_append() { |
| 26 | # gstpythonplugin hardcodes the location of the libpython from the build |
| 27 | # workspace and then fails at runtime. We can override it using |
| 28 | # --with-libpython-dir=${libdir}, but it still fails because it looks for a |
| 29 | # symlinked library ending in .so instead of the actually library with |
| 30 | # LIBNAME.so.MAJOR.MINOR. Although we could patch the code to use the path |
| 31 | # we want, it will break again if the library version ever changes. We need |
| 32 | # to think about the best way of handling this and possibly consult |
| 33 | # upstream. |
| 34 | # |
| 35 | # Note that this particular find line is taken from the Debian packaging for |
| 36 | # gst-python1.0. |
| 37 | find "${D}" \ |
| 38 | -name '*.pyc' -o \ |
| 39 | -name '*.pyo' -o \ |
| 40 | -name '*.la' -o \ |
| 41 | -name 'libgstpythonplugin*' \ |
| 42 | -delete |
| 43 | } |