#!/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.2 HARFBUZZ=8.3.1 SDL=SDL2-2.30.2 ZSTD=1.5.5 LZ4=b8fd2d15309dd4e605070bd4486e26b6ef814e29 LIBPNG=1.6.43 LIBJPEG=9f LIBWEBP=1.3.2 FFMPEG=6.0 MOLTENVK=1.2.8 QT=6.7.0 SHADERC=2024.0 SHADERC_GLSLANG=d73712b8f6c9047b09e99614e20d456d5ada2390 SHADERC_SPIRVHEADERS=8b246ff75c6615ba4532fe4fde20f1be090c3764 SHADERC_SPIRVTOOLS=04896c462d9f3f504c99a4698605b6524af813c1 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_PREFIX_PATH="$INSTALLDIR" -DCMAKE_INSTALL_PREFIX="$INSTALLDIR" -DCMAKE_OSX_ARCHITECTURES="x86_64" -DCMAKE_INSTALL_NAME_DIR='$/lib' ) cat > SHASUMS <