+* Wed Jun 19 2013 Anas Nashif <anas.nashif@intel.com> accepted/tizen/20130608.044146@f7aee60
+- make gl backend support conditional
+
* Fri Jun 07 2013 Anas Nashif <anas.nashif@intel.com> accepted/tizen/20130520.095138@a4edfc8
- do not build wayland by default, use config option from project
-%define build_xcb_backend 0
-%define build_gl_backend 1
+%bcond_without cairo_xcb_backend
+%bcond_without cairo_gl_backend
%bcond_with wayland
BuildRequires: pkg-config
BuildRequires: xz
BuildRequires: pkgconfig(fontconfig)
+BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(freetype2)
BuildRequires: pkgconfig(gobject-2.0)
BuildRequires: pkgconfig(libpng)
BuildRequires: pkgconfig(pixman-1)
BuildRequires: pkgconfig(x11)
BuildRequires: which
-%if %build_xcb_backend
+%if %{with cairo_xcb_backend}
BuildRequires: pkgconfig(xcb)
BuildRequires: pkgconfig(xcb-shm)
%endif
-%if %build_gl_backend
+%if %{with cairo_gl_backend}
BuildRequires: mesa-devel
%if %{with wayland}
BuildRequires: pkgconfig(wayland-egl)
%endif
%endif
BuildRequires: pkgconfig(xrender)
-BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Cairo is a vector graphics library with cross-device output support.
--with-pic \
--enable-fc \
--enable-ft \
-%if %build_gl_backend
- --enable-gl --enable-egl \
+%if %{with cairo_gl_backend}
+ --enable-gl \
+ --enable-egl \
+%ifnarch %ix86 x86_64
+ --enable-glesv2=yes \
+%endif
%endif
--enable-ps \
--enable-pdf \
--enable-script \
--enable-svg \
--enable-tee \
-%if %build_xcb_backend
+%if %{with cairo_xcb_backend}
--enable-xcb \
%endif
--enable-xlib \
%files devel
%defattr(-, root, root)
%doc PORTING_GUIDE
-%doc %{_datadir}/gtk-doc/html/cairo
%{_includedir}/cairo/
+%doc %{_datadir}/gtk-doc/html/cairo
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc