2021-03-05 12:08:38 +00:00
|
|
|
#!/bin/sh -ex
|
2014-10-04 11:23:23 +00:00
|
|
|
|
2021-07-16 18:01:12 +00:00
|
|
|
export HOMEBREW_NO_EMOJI=1
|
2023-02-20 10:26:12 +00:00
|
|
|
|
|
|
|
brew uninstall --ignore-dependencies python@3.8 || true
|
|
|
|
brew uninstall --ignore-dependencies python@3.9 || true
|
2023-08-06 16:06:28 +00:00
|
|
|
brew uninstall --ignore-dependencies qt@6 || true
|
2023-02-20 10:26:12 +00:00
|
|
|
brew uninstall --ignore-dependencies jpeg || true
|
|
|
|
|
2023-01-31 08:54:44 +00:00
|
|
|
brew tap --repair
|
2021-07-16 18:01:12 +00:00
|
|
|
brew update --quiet
|
|
|
|
|
2020-10-09 13:56:21 +00:00
|
|
|
# Some of these tools can come from places other than brew, so check before installing
|
2023-05-27 13:34:31 +00:00
|
|
|
brew reinstall xquartz fontconfig freetype harfbuzz brotli
|
|
|
|
|
|
|
|
# Fix: can't open file: @loader_path/libbrotlicommon.1.dylib (No such file or directory)
|
|
|
|
BREW_LIB_PATH="$(brew --prefix)/lib"
|
|
|
|
install_name_tool -change "@loader_path/libbrotlicommon.1.dylib" "${BREW_LIB_PATH}/libbrotlicommon.1.dylib" ${BREW_LIB_PATH}/libbrotlidec.1.dylib
|
|
|
|
install_name_tool -change "@loader_path/libbrotlicommon.1.dylib" "${BREW_LIB_PATH}/libbrotlicommon.1.dylib" ${BREW_LIB_PATH}/libbrotlienc.1.dylib
|
2023-02-20 10:26:12 +00:00
|
|
|
|
2020-10-09 13:56:21 +00:00
|
|
|
command -v ccache >/dev/null 2>&1 || brew install ccache
|
|
|
|
command -v cmake >/dev/null 2>&1 || brew install cmake
|
2023-08-06 16:06:28 +00:00
|
|
|
command -v qmake >/dev/null 2>&1 || brew install qt@5
|
|
|
|
export PATH="/opt/homebrew/opt/qt@5/bin:$PATH"
|
|
|
|
|
2023-02-20 10:26:12 +00:00
|
|
|
|
|
|
|
# Install deps
|
2022-10-10 14:11:46 +00:00
|
|
|
brew install icu4c yaml-cpp sqlite
|
2020-10-20 21:22:37 +00:00
|
|
|
|
2021-03-05 12:25:46 +00:00
|
|
|
ccache --version
|
|
|
|
cmake --version
|
2021-03-05 12:10:22 +00:00
|
|
|
qmake --version
|
|
|
|
|
2023-05-27 13:34:31 +00:00
|
|
|
if [[ "${MACOS_AMD64}" ]]; then
|
|
|
|
curl -fSL -R -J https://gitlab.com/OpenMW/openmw-deps/-/raw/main/macos/openmw-deps-20221113.zip -o ~/openmw-deps.zip
|
|
|
|
else
|
2023-10-22 09:25:39 +00:00
|
|
|
curl -fSL -R -J https://gitlab.com/OpenMW/openmw-deps/-/raw/main/macos/openmw-deps-20231022_arm64.zip -o ~/openmw-deps.zip
|
2023-05-27 13:34:31 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
unzip -o ~/openmw-deps.zip -d /tmp > /dev/null
|
2021-05-05 09:46:59 +00:00
|
|
|
|