%bcond_without cairo_xcb_backend
+%bcond_without cairo_gl_backend
%bcond_with wayland
%bcond_with x
%bcond_with desktop
BuildRequires: pkgconfig(libpng)
BuildRequires: pkgconfig(pixman-1)
BuildRequires: which
+%if %{with cairo_gl_backend}
%if %{with x} && %{with desktop}
BuildRequires: pkgconfig(gl)
%endif
%if %{with wayland}
BuildRequires: pkgconfig(wayland-egl)
%endif
+%endif
%if %{with x}
BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(x11)
--with-pic \
--enable-fc \
--enable-ft \
+%if %{with cairo_gl_backend}
--enable-egl \
--enable-glesv2=yes \
+%endif
--enable-ps \
--enable-pdf \
--enable-script \