Skip to content

Commit

Permalink
ffmpeg: add option to build without GPL (#18909)
Browse files Browse the repository at this point in the history
  • Loading branch information
techdragon authored and ilovezfs committed Oct 4, 2017
1 parent 8124cff commit 53c199e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Formula/ffmpeg.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ class Ffmpeg < Formula
option "without-securetransport", "Disable use of SecureTransport"
option "without-x264", "Disable H.264 encoder"
option "without-xvid", "Disable Xvid MPEG-4 video encoder"
option "without-gpl", "Disable building GPL licensed parts of FFmpeg"

deprecated_option "with-ffplay" => "with-sdl2"
deprecated_option "with-sdl" => "with-sdl2"
Expand Down Expand Up @@ -111,7 +112,6 @@ def install
--prefix=#{prefix}
--enable-shared
--enable-pthreads
--enable-gpl
--enable-version3
--enable-hardcoded-tables
--enable-avresample
Expand All @@ -120,6 +120,7 @@ def install
--host-ldflags=#{ENV.ldflags}
]

args << "--enable-gpl" if build.with? "gpl"
args << "--disable-indev=qtkit" if build.without? "qtkit"
args << "--disable-securetransport" if build.without? "securetransport"
args << "--enable-chromaprint" if build.with? "chromaprint"
Expand Down

0 comments on commit 53c199e

Please sign in to comment.