196e3d2b33
https://git.buildroot.net/buildroot/commit/package/mesa3d?id=5cb821d5635626b7327d5d704555c412e5ed5a1f added a new option to enable GLX support. This patch adjusts libva to use the new logic. Fixes: http://autobuild.buildroot.net/results/797/79776104e681402c24160be15789fe67bb69f833/ Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Reviewed-by: Giulio Benetti <giulio.benetti@benettiengineering.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
40 lines
1.1 KiB
Makefile
40 lines
1.1 KiB
Makefile
################################################################################
|
|
#
|
|
# libva
|
|
#
|
|
################################################################################
|
|
|
|
LIBVA_VERSION = 2.5.0
|
|
LIBVA_SOURCE = libva-$(LIBVA_VERSION).tar.bz2
|
|
LIBVA_SITE = https://github.com/intel/libva/releases/download/$(LIBVA_VERSION)
|
|
LIBVA_LICENSE = MIT
|
|
LIBVA_LICENSE_FILES = COPYING
|
|
LIBVA_INSTALL_STAGING = YES
|
|
LIBVA_DEPENDENCIES = host-pkgconf libdrm
|
|
|
|
# libdrm is a hard-dependency
|
|
LIBVA_CONF_OPTS = \
|
|
--enable-drm \
|
|
--with-drivers-path="/usr/lib/va"
|
|
|
|
ifeq ($(BR2_PACKAGE_XORG7),y)
|
|
LIBVA_DEPENDENCIES += xlib_libX11 xlib_libXext xlib_libXfixes
|
|
LIBVA_CONF_OPTS += --enable-x11
|
|
ifeq ($(BR2_PACKAGE_MESA3D_OPENGL_GLX),y)
|
|
LIBVA_DEPENDENCIES += mesa3d
|
|
LIBVA_CONF_OPTS += --enable-glx
|
|
endif
|
|
else
|
|
LIBVA_CONF_OPTS += --disable-glx --disable-x11
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_WAYLAND),y)
|
|
LIBVA_DEPENDENCIES += wayland
|
|
LIBVA_CONF_ENV += ac_cv_path_WAYLAND_SCANNER=$(HOST_DIR)/usr/bin/wayland-scanner
|
|
LIBVA_CONF_OPTS += --enable-wayland
|
|
else
|
|
LIBVA_CONF_OPTS += --disable-wayland
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|