gstreamer1.0-python_1.14.4.bb 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. LIC_FILES_CHKSUM = "file://COPYING;md5=c34deae4e395ca07e725ab0076a5f740"
  6. SRC_URI = "http://gstreamer.freedesktop.org/src/${PNREAL}/${PNREAL}-${PV}.tar.xz"
  7. SRC_URI[md5sum] = "d4c0e3915f547feef49208ee08981e5a"
  8. SRC_URI[sha256sum] = "d0fdb24f93b6d889f309d2f526b8ea9577e0084ff0a62b4623ef1aed52e85a1b"
  9. DEPENDS = "gstreamer1.0 python3-pygobject"
  10. RDEPENDS_${PN} += "gstreamer1.0 python3-pygobject"
  11. PNREAL = "gst-python"
  12. S = "${WORKDIR}/${PNREAL}-${PV}"
  13. inherit autotools pkgconfig distutils3-base upstream-version-is-even gobject-introspection
  14. do_install_append() {
  15. # gstpythonplugin hardcodes the location of the libpython from the build
  16. # workspace and then fails at runtime. We can override it using
  17. # --with-libpython-dir=${libdir}, but it still fails because it looks for a
  18. # symlinked library ending in .so instead of the actually library with
  19. # LIBNAME.so.MAJOR.MINOR. Although we could patch the code to use the path
  20. # we want, it will break again if the library version ever changes. We need
  21. # to think about the best way of handling this and possibly consult
  22. # upstream.
  23. #
  24. # Note that this particular find line is taken from the Debian packaging for
  25. # gst-python1.0.
  26. find "${D}" \
  27. -name '*.pyc' -o \
  28. -name '*.pyo' -o \
  29. -name '*.la' -o \
  30. -name 'libgstpythonplugin*' \
  31. -delete
  32. }