From 531423dba1202713e11442c6faee5aadc9f9ed99 Mon Sep 17 00:00:00 2001 From: Juan Zhao Date: Thu, 28 Nov 2013 09:54:36 +0800 Subject: [PATCH] add without x segment In IVI platform, some applications still requires cairo_xlib API, though the decent fix is to fix them in those applications. To avoid the influcing those build failure, use without_x segment to disable x build. Change-Id: I75960e639042b10b0ad498bdeddddbd3c0772c21 --- packaging/cairo.spec | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packaging/cairo.spec b/packaging/cairo.spec index 6f28908..adbfce2 100644 --- a/packaging/cairo.spec +++ b/packaging/cairo.spec @@ -1,6 +1,7 @@ %bcond_without cairo_xcb_backend %bcond_without cairo_gl_backend %bcond_with wayland +%bcond_without x Name: cairo @@ -29,7 +30,7 @@ BuildRequires: pkgconfig(glesv2) BuildRequires: pkgconfig(wayland-egl) %endif %endif -%if %{with wayland} +%if %{without x} %else BuildRequires: pkgconfig(xext) BuildRequires: pkgconfig(x11) @@ -142,7 +143,7 @@ NOCONFIGURE=1 ./autogen.sh --enable-script \ --enable-svg \ --enable-tee \ -%if %{with wayland} +%if %{without x} --disable-xlib \ --disable-xcb \ %else -- 2.7.4