From 3f16556d18254f7b0af4e06ecbf05cda66941a6c Mon Sep 17 00:00:00 2001 From: blekot Date: Tue, 15 Nov 2011 15:58:03 +0000 Subject: [PATCH] - added gl bcond (OpenGL support in Cairo) Changed files: cairo.spec -> 1.131 --- cairo.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cairo.spec b/cairo.spec index e94aa16..7be4721 100644 --- a/cairo.spec +++ b/cairo.spec @@ -2,6 +2,7 @@ # Conditional build: %bcond_without apidocs # disable gtk-doc %bcond_without svg # disable SVG support (to boostrap librsvg) +%bcond_with gl # enable OpenGL support %if "%{pld_release}" == "ac" %bcond_with xcb # XCB backend %else @@ -190,6 +191,7 @@ Dokumentacja API Cairo. %configure \ --disable-silent-rules \ --enable-ft \ + %{?with_gl:--enable-gl=yes}\ %{?with_apidocs:--enable-gtk-doc} \ --enable-pdf \ --enable-png \ @@ -242,6 +244,8 @@ rm -rf $RPM_BUILD_ROOT %{_includedir}/cairo %exclude %{_includedir}/cairo/cairo-gobject.h %{_pkgconfigdir}/cairo.pc +%{?with_gl:%{_pkgconfigdir}/cairo-gl.pc} +%{?with_gl:%{_pkgconfigdir}/cairo-glx.pc} %{_pkgconfigdir}/cairo-fc.pc %{_pkgconfigdir}/cairo-ft.pc %{_pkgconfigdir}/cairo-pdf.pc -- 2.44.0