2022-02-05 14:23:32 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
|
|
|
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
|
2022-07-05 21:04:55 +00:00
|
|
|
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_NAME="libva"
|
2022-12-09 13:54:53 +00:00
|
|
|
PKG_VERSION="2.16.0"
|
|
|
|
PKG_SHA256="766edf51fd86efe9e836a4467d4ec7c3af690a3c601b3c717237cee856302279"
|
2023-03-04 18:56:14 +00:00
|
|
|
PKG_ARCH="x86_64 i686"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_LICENSE="GPL"
|
|
|
|
PKG_SITE="https://01.org/linuxmedia"
|
2022-07-05 21:04:55 +00:00
|
|
|
PKG_URL="https://github.com/intel/libva/archive/${PKG_VERSION}.tar.gz"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_LONGDESC="Libva is an implementation for VA-API (VIdeo Acceleration API)."
|
|
|
|
|
2022-07-05 21:04:55 +00:00
|
|
|
if [ "${DISPLAYSERVER}" = "x11" ]; then
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_DEPENDS_TARGET="toolchain libX11 libXext libXfixes libdrm"
|
2022-07-05 21:04:55 +00:00
|
|
|
DISPLAYSERVER_LIBVA="-Dwith_x11=yes -Dwith_glx=no -Dwith_wayland=no"
|
|
|
|
elif [ "${DISPLAYSERVER}" = "wl" ]; then
|
|
|
|
DISPLAYSERVER_LIBVA="-Dwith_x11=no -Dwith_glx=no -Dwith_wayland=yes"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_DEPENDS_TARGET="toolchain libdrm wayland"
|
|
|
|
else
|
|
|
|
PKG_DEPENDS_TARGET="toolchain libdrm"
|
2022-07-05 21:04:55 +00:00
|
|
|
DISPLAYSERVER_LIBVA="-Dwith_x11=no -Dwith_glx=no -Dwith_wayland=no"
|
2022-02-05 14:23:32 +00:00
|
|
|
fi
|
|
|
|
|
2022-07-05 21:04:55 +00:00
|
|
|
PKG_MESON_OPTS_TARGET="-Ddisable_drm=false \
|
|
|
|
-Denable_docs=false \
|
|
|
|
-Denable_va_messaging=true \
|
|
|
|
${DISPLAYSERVER_LIBVA}"
|