From 70d3ae20a27c1708c15cc8f992b3af7310b26013 Mon Sep 17 00:00:00 2001 From: Anuj Mittal Date: Wed, 7 Oct 2020 15:57:12 +0800 Subject: libva-intel-utils: add recipe We need a later version of libva than what is available in oe-core for the media components. Create our own copy of the recipe and include it only when someone has included one of meta-intel MACHINEs. Signed-off-by: Anuj Mittal --- conf/layer.conf | 4 +++ conf/machine/include/meta-intel.inc | 4 +++ recipes-graphics/libva/libva-intel-utils_2.9.0.bb | 32 +++++++++++++++++++++++ 3 files changed, 40 insertions(+) create mode 100644 recipes-graphics/libva/libva-intel-utils_2.9.0.bb diff --git a/conf/layer.conf b/conf/layer.conf index 6e9d86e8..6b379a6c 100644 --- a/conf/layer.conf +++ b/conf/layer.conf @@ -40,3 +40,7 @@ PREFERRED_PROVIDER_nativesdk-zlib ?= "nativesdk-zlib" PREFERRED_PROVIDER_libva ?= "libva" PREFERRED_PROVIDER_libva-native ?= "libva-native" PREFERRED_PROVIDER_nativesdk-libva ?= "nativesdk-libva" + +PREFERRED_PROVIDER_libva-utils ?= "libva-utils" +PREFERRED_PROVIDER_libva-native ?= "libva-utils-native" +PREFERRED_PROVIDER_nativesdk-libva-utils ?= "nativesdk-libva-utils" diff --git a/conf/machine/include/meta-intel.inc b/conf/machine/include/meta-intel.inc index 86c94878..460e3eee 100644 --- a/conf/machine/include/meta-intel.inc +++ b/conf/machine/include/meta-intel.inc @@ -22,6 +22,10 @@ PREFERRED_PROVIDER_libva = "libva-intel" PREFERRED_PROVIDER_libva-native = "libva-intel-native" PREFERRED_PROVIDER_nativesdk-libva = "nativesdk-libva-intel" +PREFERRED_PROVIDER_libva-utils = "libva-utils-intel" +PREFERRED_PROVIDER_libva-native = "libva-utils-intel-native" +PREFERRED_PROVIDER_nativesdk-libva-utils = "nativesdk-libva-utils-intel" + XSERVER_X86_ASPEED_AST = "xf86-video-ast \ " diff --git a/recipes-graphics/libva/libva-intel-utils_2.9.0.bb b/recipes-graphics/libva/libva-intel-utils_2.9.0.bb new file mode 100644 index 00000000..2ee9ee88 --- /dev/null +++ b/recipes-graphics/libva/libva-intel-utils_2.9.0.bb @@ -0,0 +1,32 @@ +SUMMARY = "libva-utils is a collection of utilities from libva project" + +DESCRIPTION = "libva-utils is a collection of utilities \ +and examples to exercise VA-API in accordance with the libva \ +project.VA-API is an open-source library and API specification, \ +which provides access to graphics hardware acceleration capabilities \ +for video processing. It consists of a main library and driver-specific \ +acceleration backends for each supported hardware vendor" + +HOMEPAGE = "https://01.org/linuxmedia/vaapi" +BUGTRACKER = "https://github.com/intel/libva-utils/issues" + +SECTION = "x11" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://COPYING;md5=b148fc8adf19dc9aec17cf9cd29a9a5e" + +SRC_URI = "git://github.com/intel/libva-utils.git;branch=v2.9-branch" +SRCREV = "ee781a3f5d70a7ff801940136b1d45d002b83091" +S = "${WORKDIR}/git" + +UPSTREAM_CHECK_GITTAGREGEX = "(?P(\d+(\.\d+)+))" + +DEPENDS = "libva" + +inherit meson pkgconfig features_check + +# depends on libva which requires opengl +REQUIRED_DISTRO_FEATURES = "opengl" + +PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'wayland x11', d)}" +PACKAGECONFIG[x11] = "-Dx11=true, -Dx11=false,virtual/libx11 libxext libxfixes" +PACKAGECONFIG[wayland] = "-Dwayland=true, -Dwayland=false,wayland-native wayland" -- cgit v1.2.3-54-g00ecf