%_with_mesa 1
:Macros
-%ifarch %arm armv7l aarch64
Substitute: mesa-devel pkgconfig(glesv2)
-#FIXME Substitute: pkgconfig(egl)
-%endif
+Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2)
+Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
########## coregl ##########
-%ifarch %arm aarch64
+
Prefer: coregl coregl-devel
-Prefer: libwayland-egl libwayland-egl-devel
-Substitute: mesa-libGLESv2 coregl
-Substitute: mesa-libEGL coregl
-%endif
###################### Activate KDBUS ######################
# This configuration flag enables the support of KDBUS
############################# wayland repositories #############################
-%if "%_repository" == "arm"
+%if "%_repository" == "arm" || "%_repository" == "x86_64"
-Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2)
-Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
+Prefer: libwayland-egl libwayland-egl-devel
+Substitute: mesa-libGLESv2 coregl
+Substitute: mesa-libEGL coregl
%define _with_wayland 1
%define _with_rdp 1
%if "%_repository" == "emulator"
-Substitute: mesa-devel pkgconfig(glesv2)
-
-Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2)
-Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
-
Prefer: libgbm
-Prefer: coregl coregl-devel
Prefer: emulator-yagl emulator-yagl-devel
Prefer: libwayland-egl libwayland-egl-devel
%endif
########## compilation flags ##########
-Optflags: armv7l -O2 -g2 -feliminate-unused-debug-types -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=32 -Wformat -Wformat-security -fmessage-length=0 -march=armv7-a -mtune=cortex-a8 -mlittle-endian -mfpu=neon -mfloat-abi=softfp -Wp,-D__SOFTFP__
-Optflags: aarch64 -O2 -g2 -feliminate-unused-debug-types -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector -Wformat -Wformat-security -fmessage-length=0 -march=armv8-a+fp+simd+crc+crypto -mtune=cortex-a57.cortex-a53
-Optflags: i686 -O2 -g2 -feliminate-unused-debug-types -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=32 -Wformat -Wformat-security -fmessage-length=0 -m32 -march=i686 -mtune=i686 -msse4.2 -mfpmath=sse -fasynchronous-unwind-tables -fno-omit-frame-pointer
-Optflags: x86_64 -O2 -g2 -feliminate-unused-debug-types -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=32 -Wformat -Wformat-security -fmessage-length=0 -m64 -march=corei7 -msse4.2 -mtune=corei7-avx -mfpmath=sse -fasynchronous-unwind-tables -fno-omit-frame-pointer -fipa-cp-clone
+# derived from Tizen:Base
+#######################################