2014-07-15 21:19:01 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# libva
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2018-10-23 17:55:27 +02:00
|
|
|
LIBVA_VERSION = 2.3.0
|
2017-04-02 10:13:25 +02:00
|
|
|
LIBVA_SOURCE = libva-$(LIBVA_VERSION).tar.bz2
|
2018-07-29 21:25:26 +02:00
|
|
|
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
|
2017-12-18 21:56:09 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_MESA3D_DRI_DRIVER),y)
|
|
|
|
LIBVA_DEPENDENCIES += mesa3d
|
|
|
|
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
|
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))
|