Skip to content

Commit

Permalink
enable decoding ARIB/ISDB captions
Browse files Browse the repository at this point in the history
  • Loading branch information
retokromer committed Dec 17, 2022
1 parent 2087d3c commit 99302d5
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Formula/ffmpeg.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@ class Ffmpeg < Formula
version "5.1.2-with-options" # to distinguish from homebrew-core's ffmpeg
sha256 "619e706d662c8420859832ddc259cd4d4096a48a2ce1eefd052db9e440eef3dc"
license "GPL-2.0-or-later"
revision 1
head "https://github.com/FFmpeg/FFmpeg.git", branch: "master"

option "with-chromaprint", "Enable the Chromaprint audio fingerprinting library"
option "with-decklink", "Enable DeckLink support"
option "with-fdk-aac", "Enable the Fraunhofer FDK AAC library"
option "with-game-music-emu", "Enable Game Music Emu (GME) support"
option "with-jack", "Enable Jack support"
option "with-libaribb24", "Enable decoding ARIB/ISDB captions"
option "with-libmodplug", "Enable module/tracker files as inputs via libmodplug"
option "with-libopenmpt", "Enable module/tracker files as inputs via libopenmpt"
option "with-librist", "Enable Reliable Internet Stream Transport (RIST) support"
Expand All @@ -36,7 +38,6 @@ class Ffmpeg < Formula
option "with-libxml2", "Enable libxml2 library"
option "with-libzvbi", "Enable decoding of DVB teletext pages and DVB teletext subtitles"

depends_on "nasm" => :build
depends_on "pkg-config" => :build

depends_on "aom"
Expand All @@ -56,6 +57,7 @@ class Ffmpeg < Formula
depends_on "x265"
depends_on "xz"

depends_on "aribb24" => :optional
depends_on "fdk-aac" => :optional
depends_on "game-music-emu" => :optional
depends_on "jack" => :optional
Expand Down Expand Up @@ -98,6 +100,12 @@ class Ffmpeg < Formula
depends_on "gcc" => :optional
end

on_intel do
depends_on "nasm" => :build
end

fails_with gcc: "5"

def install
args = %W[
--prefix=#{prefix}
Expand Down Expand Up @@ -132,6 +140,7 @@ def install

args << "--disable-htmlpages" # The same info is accessible through the man pages.
args << "--enable-chromaprint" if build.with? "chromaprint"
args << "--enable-libaribb24" if build.with? "libaribb24"
args << "--enable-libbluray" if build.with? "libbluray"
args << "--enable-libbs2b" if build.with? "libbs2b"
args << "--enable-libcaca" if build.with? "libcaca"
Expand Down

0 comments on commit 99302d5

Please sign in to comment.