net-proxy/yass: add riscv and loong arches
[gentoo-zh.git] / net-proxy / yass / files / yass-loongarch64-gtk4-1.8.2.patch
blob570ec7d07ab6cee74878fac4052275ca6d18f4aa
1 From 71e2d33146dd4fd017065be1e6445d4bad8c3671 Mon Sep 17 00:00:00 2001
2 From: Keeyou <keeyou-cn@outlook.com>
3 Date: Sun, 7 Apr 2024 17:09:55 +0800
4 Subject: [PATCH] loongarch64: blacklist gtk4
6 ---
7 CMakeLists.txt | 11 ++++++++++-
8 1 file changed, 10 insertions(+), 1 deletion(-)
10 diff --git a/CMakeLists.txt b/CMakeLists.txt
11 index 68e536b0..a4e4a58e 100644
12 --- a/CMakeLists.txt
13 +++ b/CMakeLists.txt
14 @@ -2055,8 +2055,17 @@ elseif (GUI)
15 set(GUI off)
16 endif()
18 + # fix up for loongarch gtk support
19 + # see https://github.com/microcai/gentoo-zh/pull/4486
20 + if (CMAKE_SYSTEM_PROCESSOR STREQUAL "loongarch64")
21 + message(STATUS "Blacklist gtk4 for loongarch64 target")
22 + set(BLACKLIST_GTK4 ON)
23 + else()
24 + set(BLACKLIST_GTK4 OFF)
25 + endif()
27 pkg_check_modules(GTK4 gtk4)
28 - if (GTK4_FOUND)
29 + if (GTK4_FOUND AND NOT BLACKLIST_GTK4)
30 set(GUI_FLAVOUR "gtk4")
31 set(GUI_OTHER_FLAGS -Wno-deprecated-declarations)
33 --
34 2.44.0