Skip to content

Commit

Permalink
MacOS fix
Browse files Browse the repository at this point in the history
  • Loading branch information
markus-perl committed Jul 20, 2024
1 parent 03a9331 commit 21f7a4c
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions build-ffmpeg
Original file line number Diff line number Diff line change
Expand Up @@ -476,22 +476,23 @@ if command_exists "python3"; then

#check if macOs and brew is available
if [[ "$OSTYPE" == "darwin"* ]]; then
if ! command_exists "brew"; then
if command_exists "brew"; then
brew install python-setuptools meson ninja
MESON_INSTALLED=true
fi
fi

#check if meson and ninja are installed MESON_INSTALLED
if ! $MESON_INSTALLED; then
# meson and ninja can be installed via pip3
execute pip3 install pip setuptools --quiet --upgrade --no-cache-dir --disable-pip-version-check
for r in meson ninja; do
if ! command_exists ${r}; then
execute pip3 install ${r} --quiet --upgrade --no-cache-dir --disable-pip-version-check
fi
export PATH=$PATH:~/Library/Python/3.9/bin
done
else
#check if meson and ninja are installed MESON_INSTALLED AND system is not MacOS
if ! $MESON_INSTALLED; then

# meson and ninja can be installed via pip3
execute pip3 install pip setuptools --quiet --upgrade --no-cache-dir --disable-pip-version-check
for r in meson ninja; do
if ! command_exists ${r}; then
execute pip3 install ${r} --quiet --upgrade --no-cache-dir --disable-pip-version-check
fi
export PATH=$PATH:~/Library/Python/3.9/bin
done
fi
fi

fi
Expand Down

0 comments on commit 21f7a4c

Please sign in to comment.