Change-Id: I47b05a505e83f9bcf7840c95ec7bd369140a4ecf
%bcond_with wayland
+%bcond_with x
+
Name: libva-intel-driver
Version: 1.2.2
Release: 0
License: MIT
URL: http://freedesktop.org/wiki/Software/vaapi
Source0: %{name}-%{version}.tar.bz2
+%if %{with x}
BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(xfixes)
+%endif
BuildRequires: mesa-devel
BuildRequires: pkgconfig(libdrm)
BuildRequires: pkgconfig(libva)
Intel Driver for Libva is a library providing the VA API video acceleration API.
%prep
-%setup -q
+%setup -q
%build
%autogen
-%configure --enable-x11 \
+%configure \
+%if %{with x}
+--enable-x11 \
+%endif
%if %{with wayland}
--enable-wayland \
%endif
- --enable-drm
+ --enable-drm
make %{?_smp_mflags}
%install
#define I965_OUTPUT_WAYLAND_H
#include <stdbool.h>
+#include <va/va_backend.h>
bool
i965_output_wayland_init(VADriverContextP ctx);