change {without x} to {with x} 35/13735/1
authorJuan Zhao <juan.j.zhao@intel.com>
Fri, 13 Dec 2013 03:36:02 +0000 (11:36 +0800)
committerJuan Zhao <juan.j.zhao@intel.com>
Fri, 13 Dec 2013 06:37:13 +0000 (14:37 +0800)
The display server based on X or Wayland, is now a choice of different profile in Tizen 3.0.
Basically and consistently, two macros were used "with wayland" and "with x".
Below summarize the combination of the macros:

| wayland |  x  | meaning
|---------------------------
|   0     |  1  | pure X11 platform(no wayland)
|   1     |  0  | pure wayland platform (no X11)
|   1     |  1  | wayland but X compatibility
|   0     |  0  | no X and no wayland

This method unifies the meaning and usage. Deploy this method to evas package.

Change-Id: Ia5a37460e89433bfb21201671948ff2cf03db25e

packaging/evas.spec

index 3a8324b..8475afd 100644 (file)
@@ -1,4 +1,6 @@
 %bcond_with wayland
+%bcond_with x
+
 Name:           evas
 Version:        1.7.8
 Release:        1
@@ -16,16 +18,18 @@ BuildRequires:  pkgconfig(eina)
 BuildRequires:  pkgconfig(fontconfig)
 BuildRequires:  pkgconfig(freetype2)
 BuildRequires:  pkgconfig(fribidi)
-BuildRequires:  pkgconfig(gl)
 BuildRequires:  pkgconfig(glesv2)
 BuildRequires:  pkgconfig(harfbuzz)
 BuildRequires:  pkgconfig(ice)
 BuildRequires:  pkgconfig(libpng)
 BuildRequires:  pkgconfig(libtiff-4)
 BuildRequires:  pkgconfig(pixman-1)
+%if %{with x}
 BuildRequires:  pkgconfig(x11)
 BuildRequires:  pkgconfig(xext)
 BuildRequires:  pkgconfig(xrender)
+BuildRequires:  pkgconfig(gl)
+%endif
 %if %{with wayland}
 BuildRequires:  pkgconfig(egl)
 BuildRequires:  pkgconfig(wayland-client)
@@ -61,6 +65,12 @@ cp %{SOURCE1001} .
 
 %build
 %configure --enable-pthreads \
+%if !%{with x}
+           --without-x             \
+           --disable-software-xcb  \
+           --disable-software-xlib \
+           --enable-gl-flavor-gles \
+%endif
 %if %{with wayland}
             --enable-gles-variety-sgx \
             --enable-wayland-egl \