#!/bin/bash set -e if [ "$#" -ne 1 ]; then echo "Syntax: $0 " exit 1 fi export MACOSX_DEPLOYMENT_TARGET=11.0 INSTALLDIR="$1" NPROCS="$(getconf _NPROCESSORS_ONLN)" SDL=SDL2-2.30.1 XZ=5.4.5 ZSTD=1.5.5 LZ4=b8fd2d15309dd4e605070bd4486e26b6ef814e29 PNG=1.6.37 WEBP=1.3.2 FFMPEG=6.0 QT=6.6.2 if [ "${INSTALLDIR:0:1}" != "/" ]; then INSTALLDIR="$PWD/$INSTALLDIR" fi 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" ) cat > SHASUMS <