Skip to content

Commit

Permalink
FFmpeg 7.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
PatTheMav committed Aug 5, 2024
1 parent 872925a commit aad0347
Showing 1 changed file with 38 additions and 6 deletions.
44 changes: 38 additions & 6 deletions Formula/ffmpeg-custom.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class FfmpegCustom < Formula

Check warning on line 1 in Formula/ffmpeg-custom.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-22.04)

`brew linkage --cached --test --strict patthemav/custom/ffmpeg-custom` failed on Linux!

Indirect dependencies with linkage: libx11 libxcb libxext
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"

Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand All @@ -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"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit aad0347

Please sign in to comment.