diff --git a/build_release_macos.sh b/build_release_macos.sh index 618a98f04c..2000d31766 100755 --- a/build_release_macos.sh +++ b/build_release_macos.sh @@ -32,9 +32,18 @@ fi echo "Arch: $ARCH" echo "BUILD_TARGET: $BUILD_TARGET" -brew --prefix libiconv -brew --prefix zstd -export LIBRARY_PATH=$LIBRARY_PATH:$(brew --prefix zstd)/lib/ +if which -s brew; then + brew --prefix libiconv + brew --prefix zstd + export LIBRARY_PATH=$LIBRARY_PATH:$(brew --prefix zstd)/lib/ +elif which -s port; then + port install libiconv + port install zstd + export LIBRARY_PATH=$LIBRARY_PATH:/opt/local/lib +else + echo "Need either brew or macports to successfully build deps" + exit 1 +fi WD="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" cd $WD/deps