mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-19 23:01:22 -06:00
Make this work with either brew or macports and emit diagnostic when (#419)
neither is found rather than just blowing up.
This commit is contained in:
parent
771ef9fd80
commit
3a670040c7
1 changed files with 12 additions and 3 deletions
|
@ -32,9 +32,18 @@ fi
|
||||||
echo "Arch: $ARCH"
|
echo "Arch: $ARCH"
|
||||||
echo "BUILD_TARGET: $BUILD_TARGET"
|
echo "BUILD_TARGET: $BUILD_TARGET"
|
||||||
|
|
||||||
|
if which -s brew; then
|
||||||
brew --prefix libiconv
|
brew --prefix libiconv
|
||||||
brew --prefix zstd
|
brew --prefix zstd
|
||||||
export LIBRARY_PATH=$LIBRARY_PATH:$(brew --prefix zstd)/lib/
|
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)"
|
WD="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||||
cd $WD/deps
|
cd $WD/deps
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue