From aad03476d0602b66413c67682452099a6f2c151b Mon Sep 17 00:00:00 2001 From: PatTheMav Date: Mon, 5 Aug 2024 19:18:35 +0200 Subject: [PATCH] FFmpeg 7.0.2 --- Formula/ffmpeg-custom.rb | 44 ++++++++++++++++++++++++++++++++++------ 1 file changed, 38 insertions(+), 6 deletions(-) diff --git a/Formula/ffmpeg-custom.rb b/Formula/ffmpeg-custom.rb index afd3155..c4ebd6b 100644 --- a/Formula/ffmpeg-custom.rb +++ b/Formula/ffmpeg-custom.rb @@ -1,8 +1,8 @@ class FfmpegCustom < Formula desc "Play, record, convert, and stream audio and video" homepage "https://ffmpeg.org/" - url "https://ffmpeg.org/releases/ffmpeg-7.0.1.tar.xz" - sha256 "bce9eeb0f17ef8982390b1f37711a61b4290dc8c2a0c1a37b5857e85bfb0e4ff" + url "https://ffmpeg.org/releases/ffmpeg-7.0.2.tar.xz" + sha256 "8646515b638a3ad303e23af6a3587734447cb8fc0a0c064ecdb8e95c4fd8b389" license "GPL-2.0-or-later" head "https://github.com/FFmpeg/FFmpeg.git" @@ -99,6 +99,10 @@ class FfmpegCustom < Formula uses_from_macos "libxml2" uses_from_macos "zlib" + on_macos do + depends_on "libogg" + end + on_linux do depends_on "alsa-lib" depends_on "gcc" @@ -159,14 +163,12 @@ def install args << "--disable-htmlpages" args << "--enable-libaom" if build.with? "aom" args << "--enable-chromaprint" if build.with? "chromaprint" - args << "--enable-libharfbuzz" if build.with? "harfbuzz" args << "--enable-libdav1d" if build.with? "dav1d" args << "--enable-libfdk-aac" if build.with? "fdk-aac" args << "--enable-libfontconfig" if build.with? "fontconfig" args << "--enable-libfreetype" if build.with? "freetype" args << "--enable-frei0r" if build.with? "frei0r" args << "--enable-libgme" if build.with? "game-music-emu" - args << "--enable-libass" if build.with? "libass" args << "--enable-libbluray" if build.with? "libbluray" args << "--enable-libbs2b" if build.with? "libbs2b" args << "--enable-libcaca" if build.with? "libcaca" @@ -180,11 +182,9 @@ def install args << "--enable-libopenh264" if build.with? "openh264" args << "--enable-openssl" if build.with? "openssl" args << "--enable-librav1e" if build.with? "rav1e" - args << "--enable-librubberband" if build.with? "rubberband" args << "--enable-libspeex" if build.with? "speex" args << "--enable-libsrt" if build.with? "srt" args << "--enable-librist" if build.with? "librist" - args << "--enable-libtesseract" if build.with? "tesseract" args << "--enable-libtwolame" if build.with? "two-lame" args << "--enable-libwavpack" if build.with? "wavpack" args << "--enable-libwebp" if build.with? "webp" @@ -215,6 +215,38 @@ def install args << ("--extra-cflags=" + `pkg-config --cflags libopenjp2`.chomp) end + if build.with? "rubberband" + args << "--enable-librubberband" + depends_on "libsamplerate" if OS.mac? + end + + if build.with? "tesseract" + args << "--enable-libtesseract" + depends_on "libarchive" if OS.mac? + end + + if build.with? "harfbuzz" + args << "--enable-libharfbuzz" + + if OS.linux? + depends_on "libx11" + depends_on "libxcb" + depends_on "libxext" + end + end + + if build.with? "libass" + args << "--enable-libass" + + depends_on "harfbuzz" + + if OS.linux? + depends_on "libx11" + depends_on "libxcb" + depends_on "libxext" + end + end + args << "--enable-libvmaf" if build.with? "libvmaf" system "./configure", *args