aboutsummaryrefslogtreecommitdiffstats
path: root/meta-ivi-demo/recipes-qt/qt5/qtwayland/0003-Build-qtwayland-only-when-with-wayland.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-ivi-demo/recipes-qt/qt5/qtwayland/0003-Build-qtwayland-only-when-with-wayland.patch')
-rw-r--r--meta-ivi-demo/recipes-qt/qt5/qtwayland/0003-Build-qtwayland-only-when-with-wayland.patch63
1 files changed, 63 insertions, 0 deletions
diff --git a/meta-ivi-demo/recipes-qt/qt5/qtwayland/0003-Build-qtwayland-only-when-with-wayland.patch b/meta-ivi-demo/recipes-qt/qt5/qtwayland/0003-Build-qtwayland-only-when-with-wayland.patch
new file mode 100644
index 0000000..f42a94e
--- /dev/null
+++ b/meta-ivi-demo/recipes-qt/qt5/qtwayland/0003-Build-qtwayland-only-when-with-wayland.patch
@@ -0,0 +1,63 @@
+From a48937de8afe9b55815b8d0611ec0db720ef6db7 Mon Sep 17 00:00:00 2001
+From: Tomasz Olszak <olszak.tomasz@gmail.com>
+Date: Fri, 13 Dec 2013 00:15:14 +0100
+Subject: [PATCH 03/21] Build qtwayland only when %{with wayland}.
+
+---
+ packaging/qt5-qtwayland.spec | 10 +++++++---
+ 1 file changed, 7 insertions(+), 3 deletions(-)
+
+diff --git a/packaging/qt5-qtwayland.spec b/packaging/qt5-qtwayland.spec
+index 4f68dd4..ecb1525 100644
+--- a/packaging/qt5-qtwayland.spec
++++ b/packaging/qt5-qtwayland.spec
+@@ -22,6 +22,7 @@
+
+ # This file is based on qtwayland.spec from Mer project
+ # http://merproject.org
++%bcond_with wayland
+
+ Name: qt5-qtwayland
+ Summary: Qt Wayland compositor
+@@ -31,6 +32,7 @@ Group: Base/Libraries
+ License: LGPL-2.1+ or GPL-3.0
+ URL: http://qt.digia.com
+ Source0: %{name}-%{version}.tar.bz2
++%if %{with wayland}
+ BuildRequires: pkgconfig(Qt5Core)
+ BuildRequires: pkgconfig(Qt5Gui)
+ BuildRequires: pkgconfig(Qt5Widgets)
+@@ -40,19 +42,21 @@ BuildRequires: pkgconfig(Qt5Qml)
+ BuildRequires: pkgconfig(Qt5Quick)
+ BuildRequires: pkgconfig(Qt5DBus)
+ BuildRequires: pkgconfig(wayland-client)
++BuildRequires: pkgconfig(wayland-cursor)
+ BuildRequires: pkgconfig(wayland-egl)
++BuildRequires: pkgconfig(egl)
+ BuildRequires: pkgconfig(glib-2.0)
+ BuildRequires: libffi-devel
+ BuildRequires: fdupes
+ BuildRequires: pkgconfig(xkbcommon)
+-
++%endif
+ %description
+ Qt is a cross-platform application and UI framework. Using Qt, you can
+ write web-enabled applications once and deploy them across desktop,
+ mobile and embedded systems without rewriting the source code.
+ .
+ This package contains the Qt wayland compositor for wayland_egl
+-
++%if %{with wayland}
+ %package devel
+ Summary: Qt Wayland compositor - development files
+ Group: Base/Libraries
+@@ -114,5 +118,5 @@ rm -rf %{buildroot}
+ #%{_datadir}/qt5/mkspecs/modules/qt_lib_compositor_private.pri
+ %{_libdir}/qt5/bin/qtwaylandscanner
+ %{_libdir}/cmake
+-
++%endif
+ #### No changelog section, separate $pkg.changes contains the history
+--
+1.9.1
+