aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/mplayer.rb9
1 files changed, 9 insertions, 0 deletions
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