kumquat-buildroot/package/libva/libva.mk
Fabrice Fontaine d4fdd78a72 package/libva: fix build with gcc 4.8
Fix the following build failure with gcc 4.8 raised since bump to
version 2.20.0 in commit e926c83928 and
4f5a4345fc:

../va/va.c: In function 'va_new_opendriver':
../va/va.c:695:9: error: 'for' loop initial declarations are only allowed in C99 mode
         for (unsigned int i = 0; i < num_drivers; i++)
         ^
../va/va.c:695:9: note: use option -std=c99 or -std=gnu99 to compile your code

Fixes: e926c83928
 - http://autobuild.buildroot.org/results/b9dbd104fa05c59883d87f74e6522c55620a4252

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2024-03-04 22:49:10 +01:00

39 lines
980 B
Makefile

################################################################################
#
# libva
#
################################################################################
LIBVA_VERSION = 2.20.0
LIBVA_SITE = $(call github,intel,libva,$(LIBVA_VERSION))
LIBVA_LICENSE = MIT
LIBVA_LICENSE_FILES = COPYING
LIBVA_INSTALL_STAGING = YES
LIBVA_DEPENDENCIES = host-pkgconf libdrm
LIBVA_CFLAGS = $(TARGET_CFLAGS) -std=gnu99
# libdrm is a hard-dependency
LIBVA_CONF_OPTS = \
-Ddisable_drm=false \
-Ddriverdir="/usr/lib/va"
ifeq ($(BR2_PACKAGE_XORG7),y)
LIBVA_DEPENDENCIES += xlib_libX11 xlib_libXext xlib_libXfixes
LIBVA_CONF_OPTS += -Dwith_x11=yes
ifeq ($(BR2_PACKAGE_HAS_LIBGL),y)
LIBVA_DEPENDENCIES += libgl
LIBVA_CONF_OPTS += -Dwith_glx=yes
endif
else
LIBVA_CONF_OPTS += -Dwith_glx=no -Dwith_x11=no
endif
ifeq ($(BR2_PACKAGE_WAYLAND),y)
LIBVA_DEPENDENCIES += wayland
LIBVA_CONF_OPTS += -Dwith_wayland=yes
else
LIBVA_CONF_OPTS += -Dwith_wayland=no
endif
$(eval $(meson-package))