Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 1 | SUMMARY = "VA-API support to GStreamer" |
| 2 | DESCRIPTION = "gstreamer-vaapi consists of a collection of VA-API \ |
| 3 | based plugins for GStreamer and helper libraries: `vaapidecode', \ |
| 4 | `vaapiconvert', and `vaapisink'." |
| 5 | |
| 6 | REALPN = "gstreamer-vaapi" |
| 7 | FILESPATH = "${@base_set_filespath(["${FILE_DIRNAME}/${REALPN}", "${FILE_DIRNAME}/${REALPN}"], d)}" |
| 8 | |
| 9 | LICENSE = "LGPLv2.1+" |
| 10 | LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=4fbd65380cdd255951079008b364516c" |
| 11 | |
| 12 | DEPENDS = "libva" |
| 13 | |
| 14 | SRC_URI = "https://gstreamer.freedesktop.org/src/${REALPN}/${REALPN}-${PV}.tar.xz \ |
| 15 | " |
| 16 | |
| 17 | S = "${WORKDIR}/${REALPN}-${PV}" |
| 18 | |
| 19 | inherit autotools pkgconfig gtk-doc distro_features_check upstream-version-is-even |
| 20 | |
| 21 | REQUIRED_DISTRO_FEATURES ?= "opengl" |
| 22 | |
| 23 | PACKAGES =+ "${PN}-tests" |
| 24 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 25 | # OpenGL packageconfig factored out to make it easy for distros |
| 26 | # and BSP layers to pick either glx, egl, or no GL. By default, |
| 27 | # try detecting X11 first, and if found (with OpenGL), use GLX, |
| 28 | # otherwise try to check if EGL can be used. |
| 29 | PACKAGECONFIG_GL ?= "${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'glx', \ |
| 30 | bb.utils.contains('DISTRO_FEATURES', 'opengl', 'egl', \ |
| 31 | '', d), d)}" |
| 32 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 33 | PACKAGECONFIG ??= "drm \ |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 34 | ${PACKAGECONFIG_GL} \ |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 35 | ${@bb.utils.filter('DISTRO_FEATURES', 'wayland x11', d)}" |
| 36 | |
| 37 | PACKAGECONFIG[drm] = "--enable-drm,--disable-drm,udev libdrm" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 38 | PACKAGECONFIG[egl] = "--enable-egl,--disable-egl,virtual/egl" |
| 39 | PACKAGECONFIG[glx] = "--enable-glx,--disable-glx,virtual/libgl" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 40 | PACKAGECONFIG[wayland] = "--enable-wayland,--disable-wayland,wayland" |
| 41 | PACKAGECONFIG[x11] = "--enable-x11,--disable-x11,virtual/libx11 libxrandr libxrender" |
| 42 | |
| 43 | FILES_${PN} += "${libdir}/gstreamer-*/*.so" |
| 44 | FILES_${PN}-dbg += "${libdir}/gstreamer-*/.debug" |
| 45 | FILES_${PN}-dev += "${libdir}/gstreamer-*/*.la ${libdir}/gstreamer-*/*.a" |
| 46 | FILES_${PN}-tests = "${bindir}/*" |