Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2)
Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
+############################# common config ####################################
+
+Prefer: coregl coregl-devel
+Prefer: libwayland-egl libwayland-egl-devel
+
+%define _with_wayland 1
+Macros:
+%_with_wayland 1
+:Macros
+
############################# wayland repositories #############################
%if "%_repository" == "arm-wayland" || "%_repository" == "arm64-wayland" || "%_repository" == "ia32-wayland" || "%_repository" == "x86_64-wayland"
-Prefer: coregl coregl-devel
-Prefer: libwayland-egl libwayland-egl-devel
Prefer: mesa libgbm
Substitute: mesa-libGLESv2 coregl
Substitute: mesa-libEGL coregl
-%define _with_wayland 1
%define _with_rdp 1
-
Macros:
-%_with_wayland 1
%_with_rdp 1
:Macros
%if "%_repository" == "emulator32-wayland"
Prefer: libgbm
-Prefer: coregl coregl-devel
Prefer: emulator-yagl emulator-yagl-devel
-Prefer: libwayland-egl libwayland-egl-devel
-%define _with_wayland 1
%define _with_emulator 1
-
Macros:
-%_with_wayland 1
%_with_emulator 1
:Macros