From 662b62449a43032fd362c5acd15f2da9b56b892b Mon Sep 17 00:00:00 2001 From: zhangpan Date: Wed, 6 Mar 2024 08:45:51 +0000 Subject: [PATCH] add macros to control if need ft_surface --- mesa.spec | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/mesa.spec b/mesa.spec index 6edc09b..78a82f9 100644 --- a/mesa.spec +++ b/mesa.spec @@ -31,7 +31,11 @@ %endif %ifarch x86_64 aarch64 +%if %{?openEuler:1}0 %define with_ft 1 +%else +%define with_ft 0 +%endif %endif %global dri_drivers %{?platform_drivers} @@ -51,7 +55,7 @@ Name: mesa Summary: Mesa graphics libraries Version: 21.3.1 -Release: 5 +Release: 6 License: MIT URL: http://www.mesa3d.org @@ -325,7 +329,11 @@ 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 \ +%if 0%{?with_ft} -Dplatforms=x11,wayland%{?with_ft:,ohos} \ +%else + -Dplatforms=x11,wayland \ +%endif -Ddri3=enabled \ -Ddri-drivers=%{?dri_drivers} \ -Dosmesa=true \ @@ -581,6 +589,9 @@ done %endif %changelog +* Wed Mar 6 2024 zhangpan - 21.3.1-6 +- add macros to control if need ft_surface + * Tue Oct 17 2023 yanansong - 21.3.1-5 - Add fangtian -- Gitee