summaryrefslogtreecommitdiff
path: root/user/openttd/icu-77.patch
diff options
context:
space:
mode:
Diffstat (limited to 'user/openttd/icu-77.patch')
-rw-r--r--user/openttd/icu-77.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/user/openttd/icu-77.patch b/user/openttd/icu-77.patch
new file mode 100644
index 000000000..1840d6d38
--- /dev/null
+++ b/user/openttd/icu-77.patch
@@ -0,0 +1,31 @@
+From 19c547ba99395db1b922b7291743c6ace664bc39 Mon Sep 17 00:00:00 2001
+From: fundawang <fundawang@yeah.net>
+Date: Fri, 1 Nov 2024 11:40:02 +0800
+Subject: [PATCH] Fix: build with icu >= 76 where icu-i18n and icu-uc become
+ separated
+
+---
+ CMakeLists.txt | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 137eb7d0f8ce9..2f0248047506a 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -152,7 +152,7 @@ if(NOT OPTION_DEDICATED)
+ find_package(Fontconfig)
+ endif()
+ find_package(Harfbuzz)
+- find_package(ICU OPTIONAL_COMPONENTS i18n)
++ find_package(ICU OPTIONAL_COMPONENTS i18n uc)
+ endif()
+ endif()
+ endif()
+@@ -331,6 +331,7 @@ if(NOT OPTION_DEDICATED)
+ link_package(Fontconfig TARGET Fontconfig::Fontconfig)
+ link_package(Harfbuzz TARGET harfbuzz::harfbuzz)
+ link_package(ICU_i18n)
++ link_package(ICU_uc)
+
+ if(SDL2_FOUND AND OPENGL_FOUND AND UNIX)
+ # SDL2 dynamically loads OpenGL if needed, so do not link to OpenGL when