Skip to content

Commit

Permalink
add fix from upstream for mac build issue
Browse files Browse the repository at this point in the history
Signed-off-by: Finn Hermansson <[email protected]>
  • Loading branch information
fhermansson committed Sep 28, 2023
1 parent d68573f commit 971370a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Formula/ffmpeg-encore.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class FfmpegEncore < Formula
desc "Play, record, convert, and stream audio and video"
homepage "https://ffmpeg.org/"
license "GPL-3.0-or-later"
revision 1
revision 2
head "https://github.com/FFmpeg/FFmpeg.git", branch: "master"

stable do
Expand Down Expand Up @@ -74,6 +74,8 @@ class FfmpegEncore < Formula
end

def install
# The new linker leads to duplicate symbol issue https://github.com/homebrew-ffmpeg/homebrew-ffmpeg/issues/140
ENV.append "LDFLAGS", "-Wl,-ld_classic" if DevelopmentTools.clang_build_version >= 1500
args = %W[
--prefix=#{prefix}
--enable-shared
Expand Down Expand Up @@ -107,7 +109,7 @@ def install

args << "--enable-libfdk-aac" if build.with? "fdk-aac"
args << "--enable-ffplay" if build.with? "ffplay"
args << "--enable-videotoolbox" if OS.mac?
args += %w[--enable-videotoolbox --enable-audiotoolbox] if OS.mac?
args << "--enable-neon" if Hardware::CPU.arm?

# GPL-incompatible libraries, requires ffmpeg to build with "--enable-nonfree" flag, (unredistributable libraries)
Expand Down

0 comments on commit 971370a

Please sign in to comment.