xref: /OK3568_Linux_fs/buildroot/package/libva/libva.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun################################################################################
2*4882a593Smuzhiyun#
3*4882a593Smuzhiyun# libva
4*4882a593Smuzhiyun#
5*4882a593Smuzhiyun################################################################################
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunLIBVA_VERSION = 2.13.0
8*4882a593SmuzhiyunLIBVA_SOURCE = libva-$(LIBVA_VERSION).tar.bz2
9*4882a593SmuzhiyunLIBVA_SITE = https://github.com/intel/libva/releases/download/$(LIBVA_VERSION)
10*4882a593SmuzhiyunLIBVA_LICENSE = MIT
11*4882a593SmuzhiyunLIBVA_LICENSE_FILES = COPYING
12*4882a593SmuzhiyunLIBVA_INSTALL_STAGING = YES
13*4882a593SmuzhiyunLIBVA_DEPENDENCIES = host-pkgconf libdrm
14*4882a593Smuzhiyun
15*4882a593Smuzhiyun# libdrm is a hard-dependency
16*4882a593SmuzhiyunLIBVA_CONF_OPTS = \
17*4882a593Smuzhiyun	--enable-drm \
18*4882a593Smuzhiyun	--with-drivers-path="/usr/lib/va"
19*4882a593Smuzhiyun
20*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_XORG7),y)
21*4882a593SmuzhiyunLIBVA_DEPENDENCIES += xlib_libX11 xlib_libXext xlib_libXfixes
22*4882a593SmuzhiyunLIBVA_CONF_OPTS += --enable-x11
23*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_HAS_LIBGL),y)
24*4882a593SmuzhiyunLIBVA_DEPENDENCIES += libgl
25*4882a593SmuzhiyunLIBVA_CONF_OPTS += --enable-glx
26*4882a593Smuzhiyunendif
27*4882a593Smuzhiyunelse
28*4882a593SmuzhiyunLIBVA_CONF_OPTS += --disable-glx --disable-x11
29*4882a593Smuzhiyunendif
30*4882a593Smuzhiyun
31*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_WAYLAND),y)
32*4882a593SmuzhiyunLIBVA_DEPENDENCIES += wayland
33*4882a593SmuzhiyunLIBVA_CONF_ENV += ac_cv_path_WAYLAND_SCANNER=$(HOST_DIR)/usr/bin/wayland-scanner
34*4882a593SmuzhiyunLIBVA_CONF_OPTS += --enable-wayland
35*4882a593Smuzhiyunelse
36*4882a593SmuzhiyunLIBVA_CONF_OPTS += --disable-wayland
37*4882a593Smuzhiyunendif
38*4882a593Smuzhiyun
39*4882a593Smuzhiyun$(eval $(autotools-package))
40