python-werkzeug: bump to version 0.11.15
[buildroot-gz.git] / package / libva / libva.mk
blobbce69072e4eb0f6ebdcf51dbdbe0c753badd384c
1 ################################################################################
3 # libva
5 ################################################################################
7 LIBVA_VERSION = 1.7.3
8 LIBVA_SITE = $(call github,01org,libva,libva-$(LIBVA_VERSION))
9 LIBVA_LICENSE = MIT
10 LIBVA_LICENSE_FILES = COPYING
11 LIBVA_AUTORECONF = YES
12 LIBVA_INSTALL_STAGING = YES
13 LIBVA_DEPENDENCIES = host-pkgconf libdrm
15 # libdrm is a hard-dependency
16 LIBVA_CONF_OPTS = \
17 --enable-drm \
18 --disable-dummy-driver \
19 --with-drivers-path="/usr/lib/va"
21 ifeq ($(BR2_PACKAGE_MESA3D_DRI_DRIVER),y)
22 LIBVA_DEPENDENCIES += mesa3d
23 LIBVA_CONF_OPTS += --enable-glx
24 else
25 LIBVA_CONF_OPTS += --disable-glx
26 endif
28 ifeq ($(BR2_PACKAGE_XORG7),y)
29 LIBVA_DEPENDENCIES += xlib_libX11 xlib_libXext xlib_libXfixes
30 LIBVA_CONF_OPTS += --enable-x11
31 else
32 LIBVA_CONF_OPTS += --disable-x11
33 endif
35 ifeq ($(BR2_PACKAGE_WAYLAND),y)
36 LIBVA_DEPENDENCIES += wayland
37 LIBVA_CONF_OPTS += --enable-wayland
38 else
39 LIBVA_CONF_OPTS += --disable-wayland
40 endif
42 ifeq ($(BR2_PACKAGE_HAS_LIBEGL),y)
43 LIBVA_DEPENDENCIES += libegl
44 LIBVA_CONF_OPTS += --enable-egl
45 else
46 LIBVA_CONF_OPTS += --disable-egl
47 endif
49 # Autoreconf requires an m4 directory to exist
50 define LIBVA_PATCH_M4
51 mkdir -p $(@D)/m4
52 endef
53 LIBVA_POST_PATCH_HOOKS += LIBVA_PATCH_M4
55 $(eval $(autotools-package))