From 3b9b5019af39b4e8e7b3322aa795bc0ce99f5176 Mon Sep 17 00:00:00 2001 From: yanansong Date: Wed, 18 Oct 2023 03:20:41 +0000 Subject: [PATCH] limit fangtian in x86_64 aarch64 arch Signed-off-by: yanansong --- mesa.spec | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/mesa.spec b/mesa.spec index dc0775f..be0dad0 100644 --- a/mesa.spec +++ b/mesa.spec @@ -30,6 +30,10 @@ %define with_etnaviv 1 %endif +%ifarch x86_64 aarch64 +%define with_ft 1 +%endif + %global dri_drivers %{?platform_drivers} %if 0%{?with_vulkan_hw} @@ -116,7 +120,9 @@ BuildRequires: llvm-toolset-7-runtime %enable_llvmtoolset7 %endif +%if 0%{?with_ft} BuildRequires: ft_surface_wrapper-devel +%endif %description %{summary}. @@ -297,6 +303,10 @@ Summary: Mesa Vulkan development files Requires: %{name}-vulkan-drivers%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} Requires: vulkan-devel +%if 0%{?with_ft} +Requires: ft_surface_wrappe +%endif + %description vulkan-devel Headers for development with the Vulkan API. %endif @@ -311,7 +321,7 @@ sed -i -e 's/cpp_std=gnu++11/cpp_std=gnu++14/g' meson.build export ASFLAGS="--generate-missing-build-notes=yes" %meson -Dcpp_std=gnu++14 \ -Db_ndebug=true \ - -Dplatforms=x11,wayland,ohos \ + -Dplatforms=x11,wayland%{?with_ft:,ohos} \ -Ddri3=enabled \ -Ddri-drivers=%{?dri_drivers} \ -Dosmesa=true \