mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-20 23:40:18 +00:00
the build fails after switch to macos-13 on manual page generation: ``` dyld[41003]: Symbol not found: __Z11IsRGBFormat21NTV2FrameBufferFormat Referenced from: <2945C378-5453-3610-9AA4-63E2723BBA5D> /Users/runner/work/UltraGrid/UltraGrid/bin/uv Expected in: <no uuid> unknown Could not obtain data from UG/reflector output! make: *** [uv.1] Error 3 make: *** Waiting for unfinished jobs.... ``` which tries to run bin/uv with --fullhelp. (this fails only if run within the script data/make_man.sh, not when run directly)
83 lines
1.9 KiB
Bash
Executable File
83 lines
1.9 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 LDFLAGS="-Wl,-rpath,/usr/local/lib"
|
|
export LIBRARY_PATH=/usr/local/lib
|
|
if [ "$(uname -m)" = arm64 ]; then
|
|
CPATH=/usr/local/include:/opt/homebrew/include
|
|
DYLIBBUNDLER_FLAGS="$DYLIBBUNDLER_FLAGS -s /opt/homebrew/lib"
|
|
LIBRARY_PATH="$LIBRARY_PATH:/opt/homebrew/lib"
|
|
fi
|
|
printf "%b" "\
|
|
CPATH=$CPATH\n\
|
|
LDFLAGS=$LDFLAGS\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"
|
|
|
|
set -- \
|
|
asciidoctor \
|
|
autoconf \
|
|
automake \
|
|
ffmpeg \
|
|
glm \
|
|
imagemagick \
|
|
jack \
|
|
libcaca \
|
|
libnatpmp \
|
|
libsoxr \
|
|
libtool \
|
|
molten-vk \
|
|
opencv \
|
|
ossp-uuid `#for cineform` \
|
|
pkg-config \
|
|
portaudio \
|
|
qt \
|
|
sdl2 \
|
|
sdl2_mixer \
|
|
sdl2_ttf \
|
|
speexdsp \
|
|
vulkan-headers \
|
|
wolfssl \
|
|
|
|
# shellcheck disable=SC2034
|
|
for n in $(seq $#); do
|
|
# if not installed, add on the back of positional parameters
|
|
if ! brew list "$1" 2>/dev/null; then
|
|
set -- "$@" "$1"
|
|
fi
|
|
shift # remove from the front
|
|
done
|
|
|
|
brew install "$@"
|
|
|
|
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
|
|
|