%bcond_with wayland
+%bcond_with x
+
Name: evas
Version: 1.7.8
Release: 1
BuildRequires: pkgconfig(fontconfig)
BuildRequires: pkgconfig(freetype2)
BuildRequires: pkgconfig(fribidi)
-BuildRequires: pkgconfig(gl)
BuildRequires: pkgconfig(glesv2)
BuildRequires: pkgconfig(harfbuzz)
BuildRequires: pkgconfig(ice)
BuildRequires: pkgconfig(libpng)
BuildRequires: pkgconfig(libtiff-4)
BuildRequires: pkgconfig(pixman-1)
+%if %{with x}
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(xrender)
+BuildRequires: pkgconfig(gl)
+%endif
%if %{with wayland}
BuildRequires: pkgconfig(egl)
BuildRequires: pkgconfig(wayland-client)
%build
%configure --enable-pthreads \
+%if !%{with x}
+ --without-x \
+ --disable-software-xcb \
+ --disable-software-xlib \
+ --enable-gl-flavor-gles \
+%endif
%if %{with wayland}
--enable-gles-variety-sgx \
--enable-wayland-egl \