2014-07-15 21:19:01 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# libva
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2017-04-02 10:13:25 +02:00
|
|
|
LIBVA_VERSION = 1.8.0
|
|
|
|
LIBVA_SOURCE = libva-$(LIBVA_VERSION).tar.bz2
|
|
|
|
LIBVA_SITE = https://github.com/01org/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 \
|
|
|
|
--disable-dummy-driver \
|
|
|
|
--with-drivers-path="/usr/lib/va"
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_MESA3D_DRI_DRIVER),y)
|
|
|
|
LIBVA_DEPENDENCIES += mesa3d
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBVA_CONF_OPTS += --enable-glx
|
2014-07-15 21:19:01 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBVA_CONF_OPTS += --disable-glx
|
2014-07-15 21:19:01 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
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
|
2014-07-15 21:19:01 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBVA_CONF_OPTS += --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
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_HAS_LIBEGL),y)
|
|
|
|
LIBVA_DEPENDENCIES += libegl
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBVA_CONF_OPTS += --enable-egl
|
2014-07-15 21:19:01 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBVA_CONF_OPTS += --disable-egl
|
2014-07-15 21:19:01 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
$(eval $(autotools-package))
|