diff options
| author | Misty De Meo | 2014-12-08 13:40:13 -0800 |
|---|---|---|
| committer | Misty De Meo | 2014-12-08 14:05:39 -0800 |
| commit | fc6c73b224a42731040e2e6de77f6e8dda113dfe (patch) | |
| tree | 641007584eeb3aa6ab8bb0153182b947a266c7ea /Library | |
| parent | 353a3fa6db21769cb78472f510b3075e429e22a9 (diff) | |
| download | homebrew-fc6c73b224a42731040e2e6de77f6e8dda113dfe.tar.bz2 | |
ffmpeg: do not build bottle with --enable-nonfree
faac, fdk-aac, and openssl are all distributed under GPL-incompatible
licenses; if ffmpeg is built with these libraries, it cannot legally
be redistributed.
faac has been replaced in the default build with libvo-aacenc, which
is not quite as good but is GPL3-licensed.
Closes #34802.
Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/ffmpeg.rb | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/Library/Formula/ffmpeg.rb b/Library/Formula/ffmpeg.rb index 6a6e0be1e..765052f58 100644 --- a/Library/Formula/ffmpeg.rb +++ b/Library/Formula/ffmpeg.rb @@ -19,7 +19,7 @@ class Ffmpeg < Formula option "without-qtkit", "Disable deprecated QuickTime framework" option "with-rtmpdump", "Enable RTMP protocol" - option "with-libvo-aacenc", "Enable VisualOn AAC encoder" + option "without-libvo-aacenc", "Enable VisualOn AAC encoder" option "with-libass", "Enable ASS/SSA subtitle format" option "with-opencore-amr", "Enable Opencore AMR NR/WB audio format" option "with-openjpeg", "Enable JPEG 2000 image format" @@ -39,10 +39,11 @@ class Ffmpeg < Formula depends_on "yasm" => :build depends_on "x264" => :recommended - depends_on "faac" => :recommended depends_on "lame" => :recommended + depends_on "libvo-aacenc" => :recommended depends_on "xvid" => :recommended + depends_on "faac" => :optional depends_on "fontconfig" => :optional depends_on "freetype" => :optional depends_on "theora" => :optional @@ -50,7 +51,6 @@ class Ffmpeg < Formula depends_on "libvpx" => :optional depends_on "rtmpdump" => :optional depends_on "opencore-amr" => :optional - depends_on "libvo-aacenc" => :optional depends_on "libass" => :optional depends_on "openjpeg" => :optional depends_on "sdl" if build.with? "ffplay" @@ -73,7 +73,6 @@ class Ffmpeg < Formula "--enable-pthreads", "--enable-gpl", "--enable-version3", - "--enable-nonfree", "--enable-hardcoded-tables", "--enable-avresample", "--cc=#{ENV.cc}", @@ -115,6 +114,12 @@ class Ffmpeg < Formula args << "--extra-cflags=" + %x[pkg-config --cflags libopenjpeg].chomp end + # These librares are GPL-incompatible, and require ffmpeg be built with + # the "--enable-nonfree" flag, which produces unredistributable libraries + if %w[faac fdk-aac openssl].any? {|f| build.with? f} + args << "--enable-nonfree" + end + # A bug in a dispatch header on 10.10, included via CoreFoundation, # prevents GCC from building VDA support. GCC has no probles on # 10.9 and earlier. |
