blob: abfcc65390dc0428d396149808b3977d3c7d9064 [file] [log] [blame]
Brad Bishop6e60e8b2018-02-01 10:27:11 -05001SUMMARY = "VA-API support to GStreamer"
2DESCRIPTION = "gstreamer-vaapi consists of a collection of VA-API \
3based plugins for GStreamer and helper libraries: `vaapidecode', \
4`vaapiconvert', and `vaapisink'."
5
6REALPN = "gstreamer-vaapi"
7FILESPATH = "${@base_set_filespath(["${FILE_DIRNAME}/${REALPN}", "${FILE_DIRNAME}/${REALPN}"], d)}"
8
9LICENSE = "LGPLv2.1+"
10LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=4fbd65380cdd255951079008b364516c"
11
12DEPENDS = "libva"
13
14SRC_URI = "https://gstreamer.freedesktop.org/src/${REALPN}/${REALPN}-${PV}.tar.xz \
15 "
16
17S = "${WORKDIR}/${REALPN}-${PV}"
18
19inherit autotools pkgconfig gtk-doc distro_features_check upstream-version-is-even
20
21REQUIRED_DISTRO_FEATURES ?= "opengl"
22
23PACKAGES =+ "${PN}-tests"
24
Brad Bishopd7bf8c12018-02-25 22:55:05 -050025# 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.
29PACKAGECONFIG_GL ?= "${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'glx', \
30 bb.utils.contains('DISTRO_FEATURES', 'opengl', 'egl', \
31 '', d), d)}"
32
Brad Bishop6e60e8b2018-02-01 10:27:11 -050033PACKAGECONFIG ??= "drm \
Brad Bishopd7bf8c12018-02-25 22:55:05 -050034 ${PACKAGECONFIG_GL} \
Brad Bishop6e60e8b2018-02-01 10:27:11 -050035 ${@bb.utils.filter('DISTRO_FEATURES', 'wayland x11', d)}"
36
37PACKAGECONFIG[drm] = "--enable-drm,--disable-drm,udev libdrm"
Brad Bishopd7bf8c12018-02-25 22:55:05 -050038PACKAGECONFIG[egl] = "--enable-egl,--disable-egl,virtual/egl"
39PACKAGECONFIG[glx] = "--enable-glx,--disable-glx,virtual/libgl"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050040PACKAGECONFIG[wayland] = "--enable-wayland,--disable-wayland,wayland"
41PACKAGECONFIG[x11] = "--enable-x11,--disable-x11,virtual/libx11 libxrandr libxrender"
42
43FILES_${PN} += "${libdir}/gstreamer-*/*.so"
44FILES_${PN}-dbg += "${libdir}/gstreamer-*/.debug"
45FILES_${PN}-dev += "${libdir}/gstreamer-*/*.la ${libdir}/gstreamer-*/*.a"
46FILES_${PN}-tests = "${bindir}/*"