aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authordinkypumpkin2012-07-12 13:04:58 +0100
committerMisty De Meo2012-07-12 14:47:48 -0500
commitf84d9a4674e2ebefbcdd015e82e9661b4a728a88 (patch)
tree960be1059438d8ebdccb710d6fb5efa74a5c0035 /Library/Formula
parenta9575289431f8a014a9cea47f48df7e7fb1308ad (diff)
downloadhomebrew-f84d9a4674e2ebefbcdd015e82e9661b4a728a88.tar.bz2
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 <mistydemeo@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/mplayer.rb6
1 files changed, 5 insertions, 1 deletions
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