Use gl only if both "with_x" and "with_desktop" are true. 50/20550/1
authorBoram Park <boram1288.park@samsung.com>
Fri, 9 May 2014 06:10:16 +0000 (15:10 +0900)
committerBoram Park <boram1288.park@samsung.com>
Fri, 9 May 2014 06:25:28 +0000 (15:25 +0900)
GL isn't supported in mobile world.

Change-Id: Iffef4a409c7d5dea566cb48832e9cfbeee3bb515

packaging/cairo.spec

index eb11e4e..720b9c5 100644 (file)
@@ -2,6 +2,7 @@
 %bcond_without cairo_gl_backend
 %bcond_with wayland
 %bcond_with x
+%bcond_with desktop
 
 
 Name:           cairo
@@ -24,7 +25,7 @@ BuildRequires:  pkgconfig(libpng)
 BuildRequires:  pkgconfig(pixman-1)
 BuildRequires:  which
 %if %{with cairo_gl_backend}
-%if %{with x}
+%if %{with x} && %{with desktop}
 BuildRequires:  pkgconfig(gl)
 %endif
 BuildRequires:  pkgconfig(glesv2)