Support macOS to able compile FFmpeg

This commit is contained in:
MartinEesmaa 2024-10-10 21:42:03 +11:00
parent 9322766d93
commit b91b477b66
No known key found for this signature in database
GPG Key ID: FD65711850BEEE70
1 changed files with 12 additions and 1 deletions

View File

@ -61,8 +61,19 @@ case "$(uname -s)" in
echo "Installing MSYS2 packages..." echo "Installing MSYS2 packages..."
pacman -S python git nasm vim wget xxd $MINGW_PACKAGE_PREFIX-{toolchain,cmake,autotools,meson,ninja} pacman -S python git nasm vim wget xxd $MINGW_PACKAGE_PREFIX-{toolchain,cmake,autotools,meson,ninja}
;; ;;
Darwin*)
OS="macOS"
echo "Building FFmpeg VVCEasy macOS version..."
echo "Checking for downloading brew requirement packages..."
if ! command -v brew &> /dev/null; then
echo "Homebrew is not installed. Please install Homebrew and try again."
exit 1
else
brew install ffmpeg cmake nasm opus meson autoconf automake wget ninja
fi
*) *)
echo "Only for Windows & Linux are only supported" echo "Only for Windows, macOS & Linux are only supported"
exit 1 exit 1
;; ;;
esac esac