Skip to content

Commit 53c199e

Browse files
techdragonilovezfs
authored andcommitted
ffmpeg: add option to build without GPL (#18909)
1 parent 8124cff commit 53c199e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Formula/ffmpeg.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ class Ffmpeg < Formula
5757
option "without-securetransport", "Disable use of SecureTransport"
5858
option "without-x264", "Disable H.264 encoder"
5959
option "without-xvid", "Disable Xvid MPEG-4 video encoder"
60+
option "without-gpl", "Disable building GPL licensed parts of FFmpeg"
6061

6162
deprecated_option "with-ffplay" => "with-sdl2"
6263
deprecated_option "with-sdl" => "with-sdl2"
@@ -111,7 +112,6 @@ def install
111112
--prefix=#{prefix}
112113
--enable-shared
113114
--enable-pthreads
114-
--enable-gpl
115115
--enable-version3
116116
--enable-hardcoded-tables
117117
--enable-avresample
@@ -120,6 +120,7 @@ def install
120120
--host-ldflags=#{ENV.ldflags}
121121
]
122122

123+
args << "--enable-gpl" if build.with? "gpl"
123124
args << "--disable-indev=qtkit" if build.without? "qtkit"
124125
args << "--disable-securetransport" if build.without? "securetransport"
125126
args << "--enable-chromaprint" if build.with? "chromaprint"

0 commit comments

Comments
 (0)