2014-07-15 21:19:01 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# libva
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2015-09-19 12:34:37 +02:00
|
|
|
LIBVA_VERSION = 1.6.1
|
2014-07-15 21:19:01 +02:00
|
|
|
LIBVA_SOURCE = libva-$(LIBVA_VERSION).tar.bz2
|
|
|
|
LIBVA_SITE = http://www.freedesktop.org/software/vaapi/releases/libva
|
|
|
|
LIBVA_LICENSE = MIT
|
|
|
|
LIBVA_LICENSE_FILES = COPYING
|
|
|
|
LIBVA_AUTORECONF = YES
|
|
|
|
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
|
|
|
|
|
|
|
|
# Autoreconf requires an m4 directory to exist
|
|
|
|
define LIBVA_PATCH_M4
|
|
|
|
mkdir -p $(@D)/m4
|
|
|
|
endef
|
|
|
|
LIBVA_POST_PATCH_HOOKS += LIBVA_PATCH_M4
|
|
|
|
|
|
|
|
$(eval $(autotools-package))
|