gstreamer1.0-vaapi_1.26.1.bb 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. SUMMARY = "VA-API support to GStreamer"
  2. HOMEPAGE = "https://gstreamer.freedesktop.org/"
  3. DESCRIPTION = "gstreamer-vaapi consists of a collection of VA-API \
  4. based plugins for GStreamer and helper libraries: `vaapidecode', \
  5. `vaapiconvert', and `vaapisink'."
  6. REALPN = "gstreamer-vaapi"
  7. LICENSE = "LGPL-2.1-or-later"
  8. LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=4fbd65380cdd255951079008b364516c"
  9. SRC_URI = "https://gstreamer.freedesktop.org/src/${REALPN}/${REALPN}-${PV}.tar.xz"
  10. SRC_URI[sha256sum] = "1fc779690cd8d6c5ef3cd84e5a552f864815ea8d9c269370c8d21e0b6d5337c9"
  11. S = "${WORKDIR}/${REALPN}-${PV}"
  12. DEPENDS = "libva gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-bad"
  13. inherit meson pkgconfig features_check upstream-version-is-even
  14. REQUIRED_DISTRO_FEATURES ?= "opengl"
  15. EXTRA_OEMESON += " \
  16. -Ddoc=disabled \
  17. -Dexamples=disabled \
  18. -Dtests=enabled \
  19. "
  20. PACKAGES =+ "${PN}-tests"
  21. # OpenGL packageconfig factored out to make it easy for distros
  22. # and BSP layers to pick either glx, egl, or no GL. By default,
  23. # try detecting X11 first, and if found (with OpenGL), use GLX,
  24. # otherwise try to check if EGL can be used.
  25. PACKAGECONFIG_GL ?= "${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'glx', \
  26. bb.utils.contains('DISTRO_FEATURES', 'opengl', 'egl', \
  27. '', d), d)}"
  28. PACKAGECONFIG ??= "drm encoders \
  29. ${PACKAGECONFIG_GL} \
  30. ${@bb.utils.filter('DISTRO_FEATURES', 'wayland x11', d)}"
  31. PACKAGECONFIG[drm] = "-Ddrm=enabled,-Ddrm=disabled,udev libdrm"
  32. PACKAGECONFIG[egl] = "-Degl=enabled,-Degl=disabled,virtual/egl"
  33. PACKAGECONFIG[encoders] = "-Dencoders=enabled,-Dencoders=disabled"
  34. PACKAGECONFIG[glx] = "-Dglx=enabled,-Dglx=disabled,virtual/libgl"
  35. PACKAGECONFIG[wayland] = "-Dwayland=enabled,-Dwayland=disabled,wayland-native wayland wayland-protocols"
  36. PACKAGECONFIG[x11] = "-Dx11=enabled,-Dx11=disabled,virtual/libx11 libxrandr libxrender"
  37. FILES:${PN} += "${libdir}/gstreamer-*/*.so"
  38. FILES:${PN}-dbg += "${libdir}/gstreamer-*/.debug"
  39. FILES:${PN}-dev += "${libdir}/gstreamer-*/*.a"
  40. FILES:${PN}-tests = "${bindir}/*"