Files
UltraGrid/.github/scripts/macOS/prepare.sh
Martin Pulec 5a0772b400 added .github/scripts/macOS/install_others.sh
separated from prepare.sh (in a similar way as it already is for Linux)

Useful for standalone installation, eg. on development machines.
2024-02-06 16:38:45 +01:00

57 lines
1.6 KiB
Bash
Executable File

#!/bin/bash -eux
srcroot=$(cd "$(dirname "$0")/../../.."; pwd)
readonly srcroot
# shellcheck source=/dev/null
. "$srcroot/.github/scripts/json-common.sh"
TEMP_INST=/tmp/install
if [ -z "${GITHUB_ENV-}" ]; then
GITHUB_ENV=/dev/null
GITHUB_PATH=/dev/null
fi
export CPATH=/usr/local/include
export DYLIBBUNDLER_FLAGS="${DYLIBBUNDLER_FLAGS:+$DYLIBBUNDLER_FLAGS }-s /usr/local/lib"
export LIBRARY_PATH=/usr/local/lib
# shellcheck disable=SC2140
printf "%b" \
"CPATH=$CPATH\n"\
"LIBRARY_PATH=$LIBRARY_PATH\n" >> "$GITHUB_ENV"
echo "PKG_CONFIG_PATH=/usr/local/lib/pkgconfig" >> "$GITHUB_ENV"
echo "/usr/local/opt/qt/bin" >> "$GITHUB_PATH"
echo "DYLIBBUNDLER_FLAGS=$DYLIBBUNDLER_FLAGS" >> "$GITHUB_ENV"
brew install autoconf automake libtool pkg-config \
asciidoctor
brew install libsoxr speexdsp
brew install ffmpeg portaudio sdl2 sdl2_mixer sdl2_ttf
brew install molten-vk vulkan-headers
brew install imagemagick libcaca libnatpmp jack opencv wolfssl
brew install ossp-uuid # for cineform
brew install qt
brew install glm
# TOREMOVE - missing header in Vulkan v1.3.264
if [ "$(brew info vulkan-headers | awk 'NR==1{print $4}')" = 1.3.264 ]; then
sudo curl -L https://raw.githubusercontent.com/KhronosGroup/Vulkan-Headers/main/\
include/vulkan/vulkan_hpp_macros.hpp -o /usr/local/include/vulkan/\
vulkan_hpp_macros.hpp
fi
mkdir $TEMP_INST
cd $TEMP_INST
"$srcroot/.github/scripts/macOS/install_dylibbundler_v2.sh"
# Install cross-platform deps
"$srcroot/.github/scripts/install-common-deps.sh"
"$srcroot/.github/scripts/macOS/install_others.sh"
# Remove installation files
cd
rm -rf $TEMP_INST