################################################################################
#
# xdriver_xf86-video-qxl
#
################################################################################

XDRIVER_XF86_VIDEO_QXL_VERSION = 0.1.6
XDRIVER_XF86_VIDEO_QXL_SOURCE = xf86-video-qxl-$(XDRIVER_XF86_VIDEO_QXL_VERSION).tar.xz
XDRIVER_XF86_VIDEO_QXL_SITE = https://xorg.freedesktop.org/archive/individual/driver
XDRIVER_XF86_VIDEO_QXL_LICENSE = MIT
XDRIVER_XF86_VIDEO_QXL_LICENSE_FILES = COPYING

XDRIVER_XF86_VIDEO_QXL_CONF_OPTS = \
	--enable-xspice=no

XDRIVER_XF86_VIDEO_QXL_DEPENDENCIES = \
	libpciaccess \
	spice-protocol \
	xorgproto \
	xserver_xorg-server

# configure doesn't look for drm headers in the appropriate place, so help it
# libdrm is only useful with udev for KMS
ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
XDRIVER_XF86_VIDEO_QXL_CONF_ENV += REQUIRED_MODULES=libdrm
XDRIVER_XF86_VIDEO_QXL_DEPENDENCIES += libdrm
else
XDRIVER_XF86_VIDEO_QXL_CONF_OPTS += --disable-kms
endif

ifeq ($(BR2_PACKAGE_XLIB_LIBXFONT2),y)
XDRIVER_XF86_VIDEO_QXL_DEPENDENCIES += xlib_libXfont2
else
XDRIVER_XF86_VIDEO_QXL_DEPENDENCIES += xlib_libXfont
endif

$(eval $(autotools-package))
