Changes of Revision 82

kodi.spec Changed
x
 
1
@@ -28,7 +28,11 @@
2
 # kodi can be built without X support when openGL ES is used (mainly used on ARM boards used as media center)
3
 %bcond_without kodi_with_X11
4
 # Enable or disable Wayland depending on whether the stack is usable or not:
5
+%if 0%{?suse_version} >= 1550
6
+%bcond_without kodi_with_wayland
7
+%else
8
 %bcond_with kodi_with_wayland
9
+%endif
10
 
11
 %define kodi_platform none
12
 %define kodi_player none
13
@@ -247,6 +251,7 @@
14
 %if %{with kodi_with_wayland}
15
 BuildRequires:  pkgconfig(libva-wayland)
16
 BuildRequires:  pkgconfig(wayland-scanner)
17
+BuildRequires:  pkgconfig(wayland-scanner++)
18
 BuildRequires:  pkgconfig(wayland-protocols)
19
 BuildRequires:  pkgconfig(wayland-client)
20
 BuildRequires:  pkgconfig(wayland-client++)
21
@@ -389,6 +394,9 @@
22
 %if %{dev_build}
23
     -DVERBOSE=ON \
24
 %endif
25
+%if %{with kodi_with_wayland}
26
+    -DWAYLANDPP_INCLUDE_DIR="$(pkg-config --cflags-only-I wayland-client++ | sed -e 's/^-I//;s/ -I/;/g;s/ $//')" \
27
+%endif
28
     -DCMAKE_C_COMPILER=$CC \
29
     -DCMAKE_CXX_COMPILER=$CXX \
30
     -DENABLE_INTERNAL_FMT=OFF \
31