add wayland support
authorAnas Nashif <anas.nashif@intel.com>
Tue, 18 Dec 2012 01:57:48 +0000 (17:57 -0800)
committerEduardo Lima (Etrunko) <eduardo.lima@intel.com>
Tue, 13 Aug 2013 20:49:22 +0000 (17:49 -0300)
packaging/ecore.spec

index 12af23b..ee0a049 100644 (file)
@@ -1,3 +1,7 @@
+#
+
+%bcond_with wayland
+
 Name:           ecore
 Version:        1.7.3
 Release:        1
@@ -10,10 +14,19 @@ Source0:        ecore-%{version}.tar.bz2
 BuildRequires:  curl-devel
 BuildRequires:  doxygen
 BuildRequires:  gettext
-## BuildRequires:  pkgconfig(xscrnsaver)
+BuildRequires:  libgcrypt-devel
+%if %{with wayland}
+BuildRequires:  libwayland-egl
+BuildRequires:  pkgconfig(wayland-client)
+BuildRequires:  pkgconfig(wayland-cursor)
+BuildRequires:  pkgconfig(xkbcommon)
+%endif
 BuildRequires:  pkgconfig(eet)
+BuildRequires:  pkgconfig(egl)
 BuildRequires:  pkgconfig(eina)
 BuildRequires:  pkgconfig(evas)
+BuildRequires:  pkgconfig(gl)
+BuildRequires:  pkgconfig(glesv2)
 BuildRequires:  pkgconfig(glib-2.0)
 BuildRequires:  pkgconfig(ice)
 BuildRequires:  pkgconfig(pixman-1)
@@ -23,13 +36,10 @@ BuildRequires:  pkgconfig(xcursor)
 BuildRequires:  pkgconfig(xdamage)
 BuildRequires:  pkgconfig(xext)
 BuildRequires:  pkgconfig(xi)
-#BuildRequires:  pkgconfig(xinerama)
+BuildRequires:  pkgconfig(xinerama)
 BuildRequires:  pkgconfig(xrandr)
+BuildRequires:  pkgconfig(xscrnsaver)
 BuildRequires:  pkgconfig(xt)
-BuildRequires:  pkgconfig(egl)
-BuildRequires:  pkgconfig(gl)
-BuildRequires:  pkgconfig(glesv2)
-BuildRequires:  libgcrypt-devel
 
 %description
 Ecore is the event/X abstraction layer that makes doing selections,
@@ -48,7 +58,12 @@ Development files for ecore
 %setup -q
 
 %build
-%configure --disable-static 
+%configure \
+%if %{with wayland}
+    --enable-ecore-wayland \
+    --enable-ecore-evas-wayland-egl \
+%endif
+    --disable-static
 make %{?_smp_mflags}
 
 %install
@@ -56,6 +71,7 @@ make %{?_smp_mflags}
 %find_lang ecore
 
 %post -p /sbin/ldconfig
+
 %postun -p /sbin/ldconfig