From 7fce11d4291db2283f8bdc420b2d163522d1a3c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D7=A8=D7=98=D7=95/=D7=A8=D7=A2=D7=98=D7=90=D6=B8/=D7=A8?= =?UTF-8?q?=D6=B5=D7=99=D7=98=D7=95=D6=B9=20=E2=80=A2=20Reto?= Date: Tue, 29 Aug 2023 13:55:03 +0200 Subject: [PATCH] add support for JPEG XL (#139) * add support for JPEG XL * delete trailing whitespace --- Formula/ffmpeg.rb | 6 ++++-- README.md | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Formula/ffmpeg.rb b/Formula/ffmpeg.rb index b21231a..8672ace 100644 --- a/Formula/ffmpeg.rb +++ b/Formula/ffmpeg.rb @@ -3,7 +3,7 @@ class Ffmpeg < Formula homepage "https://ffmpeg.org/" version "6.0-with-options" # to distinguish from homebrew-core's ffmpeg license "GPL-2.0-or-later" - revision 3 + revision 4 head "https://github.com/FFmpeg/FFmpeg.git", branch: "master" stable do @@ -24,6 +24,7 @@ class Ffmpeg < Formula option "with-libflite", "Enable text to speech synthesis support via Flite" option "with-game-music-emu", "Enable Game Music Emu (GME) support" option "with-jack", "Enable Jack support" + option "with-jpeg-xl", "Enable JPEG XL image format" 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" @@ -74,6 +75,7 @@ class Ffmpeg < Formula depends_on "fdk-aac" => :optional depends_on "game-music-emu" => :optional depends_on "jack" => :optional + depends_on "jpeg-xl" => :optional depends_on "libbluray" => :optional depends_on "libbs2b" => :optional depends_on "libcaca" => :optional @@ -167,6 +169,7 @@ def install args << "--enable-libflite" if build.with? "libflite" args << "--enable-libgme" if build.with? "game-music-emu" args << "--enable-libgsm" if build.with? "libgsm" + args << "--enable-libjxl" if build.with? "jpeg-xl" args << "--enable-libmodplug" if build.with? "libmodplug" args << "--enable-libopenh264" if build.with? "openh264" args << "--enable-libopenjpeg" if build.with? "openjpeg" @@ -189,7 +192,6 @@ def install args << "--enable-libxml2" if build.with? "libxml2" args << "--enable-libxvid" if build.with? "xvid" args << "--enable-libzimg" if build.with? "zimg" - args << "--enable-libzvbi" if build.with? "libzvbi" args << "--enable-libzmq" if build.with? "zeromq" args << "--enable-openssl" if build.with? "openssl" diff --git a/README.md b/README.md index 4959c37..ebfe9af 100644 --- a/README.md +++ b/README.md @@ -104,6 +104,7 @@ This formula features the following libraries optionally: | `fdk-aac` | Fraunhofer FDK AAC library | | `game-music-emu` | Enable Game Music Emu (GME) support | | `jack` | Jack audio device support | +| `jpeg-xl` | JPEG XL support | | `libaribb24` | Enable decoding ARIB/ISDB captions | | `libbluray` | libbluray support | | `libbs2b` | libbs2b support |