From b91b477b66e463a7e04ce7b61664b380aefa64ed Mon Sep 17 00:00:00 2001 From: MartinEesmaa Date: Thu, 10 Oct 2024 21:42:03 +1100 Subject: [PATCH] Support macOS to able compile FFmpeg --- BuildFFmpeg.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/BuildFFmpeg.sh b/BuildFFmpeg.sh index 4f45fe9..3f24cd7 100644 --- a/BuildFFmpeg.sh +++ b/BuildFFmpeg.sh @@ -61,8 +61,19 @@ case "$(uname -s)" in echo "Installing MSYS2 packages..." 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 ;; esac