Commit 93100cca1 for imagemagick.org

commit 93100cca186dfbab92863a440e5efaf0d7fe61a9
Author: Dirk Lemstra <dirk@lemstra.org>
Date:   Thu Jan 1 18:51:29 2026 +0100

    Switch to cmake with the freetype2 oss-fuzz build.

diff --git a/oss-fuzz/build_dependencies.sh b/oss-fuzz/build_dependencies.sh
index 7e907dc45..dd3379e14 100755
--- a/oss-fuzz/build_dependencies.sh
+++ b/oss-fuzz/build_dependencies.sh
@@ -62,11 +62,13 @@ popd

 # Build freetype2
 pushd "$SRC/freetype"
-./autogen.sh
-./configure --prefix="$WORK" --disable-shared PKG_CONFIG_PATH="$WORK/lib/pkgconfig"
+mkdir "__build"
+pushd "__build"
+cmake .. -DCMAKE_INSTALL_PREFIX=$WORK -DBUILD_SHARED_LIBS=false -DCMAKE_DISABLE_FIND_PACKAGE_BZip2=true -DFT_DISABLE_HARFBUZZ=true
 make -j$(nproc)
 make install
 popd
+popd

 # Build libde265
 pushd "$SRC/libde265"