add wayland profile for cairo 70/12870/2 submit/tizen/20131126.072632 submit/tizen/20131126.223603
authorJuan Zhao <juan.j.zhao@intel.com>
Mon, 25 Nov 2013 03:36:20 +0000 (11:36 +0800)
committerJuan Zhao <juan.j.zhao@intel.com>
Mon, 25 Nov 2013 10:51:04 +0000 (18:51 +0800)
In wayland scope, cairo doesn't need to build based on Xorg.
So remove this dependency on wayland profile.

Change-Id: Id777856b4f6f6b3bf3105fbc67bd3aa9cd9446c9

packaging/cairo.spec

index c0eb034..b08782b 100644 (file)
@@ -17,25 +17,26 @@ BuildRequires:  libtool
 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 %{with cairo_xcb_backend}
-BuildRequires:  pkgconfig(xcb)
-BuildRequires:  pkgconfig(xcb-shm)
-%endif
 %if %{with cairo_gl_backend}
 BuildRequires:  pkgconfig(gl)
 BuildRequires:  pkgconfig(glesv2)
 %if %{with wayland}
 BuildRequires: pkgconfig(wayland-egl)
+%else
+BuildRequires:  pkgconfig(xext)
+BuildRequires:  pkgconfig(x11)
+BuildRequires:  pkgconfig(xrender)
+%if %{with cairo_xcb_backend}
+BuildRequires:  pkgconfig(xcb)
+BuildRequires:  pkgconfig(xcb-shm)
+%endif
 %endif
 %endif
-BuildRequires:  pkgconfig(xrender)
 
 %description
 Cairo is a vector graphics library with cross-device output support.
@@ -138,10 +139,15 @@ NOCONFIGURE=1 ./autogen.sh
     --enable-script \
     --enable-svg \
     --enable-tee \
+%if %{with wayland}
+   --disable-xlib \
+   --disable-xcb  \
+%else
+    --enable-xlib \
 %if %{with cairo_xcb_backend}
     --enable-xcb \
 %endif
-    --enable-xlib \
+%endif
     --disable-gtk-doc \
     --disable-static
 make %{?_smp_mflags} V=1