From f84d9a4674e2ebefbcdd015e82e9661b4a728a88 Mon Sep 17 00:00:00 2001 From: dinkypumpkin Date: Thu, 12 Jul 2012 13:04:58 +0100 Subject: mplayer: disable openjpeg to avoid duplicate main libopenjpeg 1.5.0 defines int main() for some reason. When linked into mplayer, it hides mplayer's main() function and renders mplayer useless. This issue has been reported upstream, but the unfriendly libopenjpeg is already in Homebrew. If and when it is fixed, this restriction can be removed. Closes #13362. Signed-off-by: Misty De Meo --- Library/Formula/mplayer.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Library') diff --git a/Library/Formula/mplayer.rb b/Library/Formula/mplayer.rb index 31244a959..0c2dd3716 100644 --- a/Library/Formula/mplayer.rb +++ b/Library/Formula/mplayer.rb @@ -35,10 +35,14 @@ class Mplayer < Formula # we disable cdparanoia because homebrew's version is hacked to work on OS X # and mplayer doesn't expect the hacks we apply. So it chokes. # Specify our compiler to stop ffmpeg from defaulting to gcc. + # Disable openjpeg because it defines int main(), which hides mplayer's main(). + # This issue was reported upstream against openjpeg 1.5.0: + # http://code.google.com/p/openjpeg/issues/detail?id=152 system './configure', "--prefix=#{prefix}", "--cc=#{ENV.cc}", "--host-cc=#{ENV.cc}", - "--disable-cdparanoia" + "--disable-cdparanoia", + "--disable-libopenjpeg" system "make" system "make install" end -- cgit v1.2.3