#!/bin/bash set -e if [ "$#" -ne 1 ]; then echo "Syntax: $0 " exit 1 fi # The bundled ffmpeg has a lot of things disabled to reduce code size. # Users may want to use system ffmpeg for additional features : ${BUILD_FFMPEG:=1} export MACOSX_DEPLOYMENT_TARGET=11.0 NPROCS="$(getconf _NPROCESSORS_ONLN)" SCRIPTDIR=$(realpath $(dirname "${BASH_SOURCE[0]}")) INSTALLDIR="$1" if [ "${INSTALLDIR:0:1}" != "/" ]; then INSTALLDIR="$PWD/$INSTALLDIR" fi FREETYPE=2.13.3 HARFBUZZ=11.2.0 SDL=SDL3-3.2.16 ZSTD=1.5.7 LZ4=1.10.0 LIBPNG=1.6.48 LIBJPEGTURBO=3.1.0 LIBWEBP=1.5.0 FFMPEG=6.0 MOLTENVK=1.2.9 QT=6.7.3 KDDOCKWIDGETS=2.2.3 PLUTOVG=1.1.0 PLUTOSVG=0.0.7 SHADERC=2025.3 SHADERC_GLSLANG=efd24d75bcbc55620e759f6bf42c45a32abac5f8 SHADERC_SPIRVHEADERS=2a611a970fdbc41ac2e3e328802aed9985352dca SHADERC_SPIRVTOOLS=33e02568181e3312f49a3cf33df470bf96ef293a mkdir -p deps-build cd deps-build export PKG_CONFIG_PATH="$INSTALLDIR/lib/pkgconfig:$PKG_CONFIG_PATH" export LDFLAGS="-L$INSTALLDIR/lib $LDFLAGS" export CFLAGS="-I$INSTALLDIR/include $CFLAGS" export CXXFLAGS="-I$INSTALLDIR/include $CXXFLAGS" CMAKE_COMMON=( -DCMAKE_BUILD_TYPE=Release -DCMAKE_SHARED_LINKER_FLAGS="-dead_strip -dead_strip_dylibs" -DCMAKE_PREFIX_PATH="$INSTALLDIR" -DCMAKE_INSTALL_PREFIX="$INSTALLDIR" -DCMAKE_OSX_ARCHITECTURES="x86_64" -DCMAKE_INSTALL_NAME_DIR='$/lib' ) cat > SHASUMS <