aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmett1 <emmett1.2miligrams@protonmail.com>2025-04-15 06:15:23 +0000
committerEmmett1 <emmett1.2miligrams@protonmail.com>2025-04-15 06:15:23 +0000
commitc1cf5ed9efd88aec35ccaa4adc4ebccecc01ae64 (patch)
treec03ecc6660069ee01126a1800cd6cab8d5e8b707
parentee1c524ab8ddf44466acecfbf03e8c738a8e8e81 (diff)
downloadalicelinux-c1cf5ed9efd88aec35ccaa4adc4ebccecc01ae64.tar.gz
alicelinux-c1cf5ed9efd88aec35ccaa4adc4ebccecc01ae64.zip
graphite2: fix build with latest cmake
-rw-r--r--repos/extra/graphite2/abuild6
1 files changed, 6 insertions, 0 deletions
diff --git a/repos/extra/graphite2/abuild b/repos/extra/graphite2/abuild
index 33596d61..ae7fc502 100644
--- a/repos/extra/graphite2/abuild
+++ b/repos/extra/graphite2/abuild
@@ -3,3 +3,9 @@ version=1.3.14
release=1
source="https://github.com/silnrsi/graphite/releases/download/$version/$name-$version.tgz
clang.patch"
+
+prebuild() {
+ sed -i '/cmake_policy(SET CMP0012 NEW)/d' CMakeLists.txt
+ sed -i 's/PythonInterp/Python3/' CMakeLists.txt
+ find . -name CMakeLists.txt | xargs sed -i 's/VERSION 2.8.0 FATAL_ERROR/VERSION 4.0.0/'
+}