2014-07-15 21:19:01 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# libva
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2021-06-25 08:07:25 +02:00
|
|
|
LIBVA_VERSION = 2.12.0
|
2020-04-13 15:47:13 +02:00
|
|
|
LIBVA_SOURCE = libva-$(LIBVA_VERSION).tar.bz2
|
|
|
|
LIBVA_SITE = https://github.com/intel/libva/releases/download/$(LIBVA_VERSION)
|
2014-07-15 21:19:01 +02:00
|
|
|
LIBVA_LICENSE = MIT
|
|
|
|
LIBVA_LICENSE_FILES = COPYING
|
|
|
|
LIBVA_INSTALL_STAGING = YES
|
|
|
|
LIBVA_DEPENDENCIES = host-pkgconf libdrm
|
|
|
|
|
|
|
|
# libdrm is a hard-dependency
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBVA_CONF_OPTS = \
|
2014-07-15 21:19:01 +02:00
|
|
|
--enable-drm \
|
|
|
|
--with-drivers-path="/usr/lib/va"
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_XORG7),y)
|
|
|
|
LIBVA_DEPENDENCIES += xlib_libX11 xlib_libXext xlib_libXfixes
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBVA_CONF_OPTS += --enable-x11
|
2019-10-12 17:39:31 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_HAS_LIBGL),y)
|
|
|
|
LIBVA_DEPENDENCIES += libgl
|
2017-12-18 21:56:09 +01:00
|
|
|
LIBVA_CONF_OPTS += --enable-glx
|
|
|
|
endif
|
2014-07-15 21:19:01 +02:00
|
|
|
else
|
2017-12-18 21:56:09 +01:00
|
|
|
LIBVA_CONF_OPTS += --disable-glx --disable-x11
|
2014-07-15 21:19:01 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_WAYLAND),y)
|
|
|
|
LIBVA_DEPENDENCIES += wayland
|
2018-12-11 19:19:43 +01:00
|
|
|
LIBVA_CONF_ENV += ac_cv_path_WAYLAND_SCANNER=$(HOST_DIR)/usr/bin/wayland-scanner
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBVA_CONF_OPTS += --enable-wayland
|
2014-07-15 21:19:01 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBVA_CONF_OPTS += --disable-wayland
|
2014-07-15 21:19:01 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
$(eval $(autotools-package))
|