1 |
%bcond_with wayland |
%bcond_without wayland |
2 |
|
|
3 |
# (cg) Cheater... |
# (cg) Cheater... |
4 |
%define Werror_cflags %nil |
%define Werror_cflags %nil |
15 |
# define version, RC & release |
# define version, RC & release |
16 |
%define main_version 18.0.0 |
%define main_version 18.0.0 |
17 |
#define relc 5 |
#define relc 5 |
18 |
%define rel 2 |
%define rel 7 |
19 |
|
|
20 |
%define release %mkrel %{?relc:0.rc%{relc}.}%{rel} |
%define release %mkrel %{?relc:0.rc%{relc}.}%{rel} |
21 |
|
|
86 |
|
|
87 |
%define mesasrcdir %{_prefix}/src/Mesa/ |
%define mesasrcdir %{_prefix}/src/Mesa/ |
88 |
|
|
89 |
|
%define with_vaapi 1 |
90 |
|
|
91 |
# (akien) Not adding on arm as it would break the build there |
# (akien) Not adding on arm as it would break the build there |
92 |
%define enable_vulkan 0 |
%define enable_vulkan 0 |
93 |
%ifarch %{ix86} x86_64 |
%ifarch %{ix86} x86_64 |
94 |
%define enable_vulkan 1 |
%define enable_vulkan 1 |
95 |
%endif |
%endif |
96 |
|
|
97 |
|
|
98 |
|
%ifarch %{arm} aarch64 |
99 |
|
%define with_etnaviv 1 |
100 |
|
%define with_freedreno 1 |
101 |
|
%define with_vc4 1 |
102 |
|
%endif |
103 |
|
|
104 |
%define base_drivers swrast,nouveau,radeon,r200 |
%define base_drivers swrast,nouveau,radeon,r200 |
105 |
%ifarch %{ix86} x86_64 |
%ifarch %{ix86} x86_64 |
106 |
%define platform_drivers ,i915,i965 |
%define platform_drivers ,i915,i965 |
141 |
BuildRequires: pkgconfig(libelf) |
BuildRequires: pkgconfig(libelf) |
142 |
BuildRequires: llvm-devel >= 3.9.1-5 |
BuildRequires: llvm-devel >= 3.9.1-5 |
143 |
BuildRequires: pkgconfig(libudev) |
BuildRequires: pkgconfig(libudev) |
144 |
|
%if 0%{?with_vaapi} |
145 |
BuildRequires: pkgconfig(libva) |
BuildRequires: pkgconfig(libva) |
146 |
|
%endif |
147 |
BuildRequires: pkgconfig(vdpau) |
BuildRequires: pkgconfig(vdpau) |
148 |
%if %{with wayland} |
%if %{with wayland} |
149 |
BuildRequires: pkgconfig(wayland-client) |
BuildRequires: pkgconfig(wayland-client) |
548 |
--enable-gles2 \ |
--enable-gles2 \ |
549 |
--disable-xvmc \ |
--disable-xvmc \ |
550 |
--enable-vdpau \ |
--enable-vdpau \ |
551 |
--enable-va \ |
%{?with_vaapi:--enable-va} \ |
552 |
--with-platforms=x11,drm,surfaceless%{?with_wayland:,wayland} \ |
--with-platforms=x11,drm,surfaceless%{?with_wayland:,wayland} \ |
553 |
--enable-shared-glapi \ |
--enable-shared-glapi \ |
554 |
--enable-gbm \ |
--enable-gbm \ |
559 |
--enable-dri \ |
--enable-dri \ |
560 |
--enable-xa \ |
--enable-xa \ |
561 |
--enable-nine \ |
--enable-nine \ |
562 |
--with-gallium-drivers=r300,r600,radeonsi,nouveau,swrast,virgl%{?gallium_platform_drivers} \ |
--with-gallium-drivers=r300,r600,radeonsi,nouveau,swrast,%{?with_freedreno:freedreno,}%{?with_etnaviv:etnaviv,imx,}%{?with_vc4:vc4,}virgl%{?gallium_platform_drivers} \ |
563 |
%{?dri_drivers} |
%{?dri_drivers} |
564 |
# end of configure options |
# end of configure options |
565 |
|
|