From 9e8f3e97844dea189f01ce2185430c831efc8583 Mon Sep 17 00:00:00 2001 From: Camillo Lugaresi Date: Sat, 17 Nov 2012 05:21:16 -0600 Subject: mplayer: enable OSD by default Closes #16122. Signed-off-by: Adam Vandenberg --- Library/Formula/mplayer.rb | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Library/Formula') diff --git a/Library/Formula/mplayer.rb b/Library/Formula/mplayer.rb index d5e63d054..c4907f013 100644 --- a/Library/Formula/mplayer.rb +++ b/Library/Formula/mplayer.rb @@ -8,11 +8,19 @@ class Mplayer < Formula head 'svn://svn.mplayerhq.hu/mplayer/trunk', :using => StrictSubversionDownloadStrategy option 'with-x', 'Build with X11 support' + option 'without-osd', 'Build without OSD' depends_on 'yasm' => :build depends_on 'xz' => :build depends_on :x11 if build.include? 'with-x' + unless build.include? 'without-osd' or build.include? 'with-x' + # These are required for the OSD. We can get them from X11, or we can + # build our own. + depends_on :fontconfig + depends_on :freetype + end + fails_with :clang do build 211 cause 'Inline asm errors during compile on 32bit Snow Leopard.' @@ -48,6 +56,7 @@ class Mplayer < Formula --disable-libopenjpeg ] + args << "--enable-menu" unless build.include? 'without-osd' args << "--disable-x11" unless build.include? 'with-x' system "./configure", *args -- cgit v1.2.3