diff --git a/Formula/mplayer.rb b/Formula/mplayer.rb index 7dfafdb4db..76cb62923b 100644 --- a/Formula/mplayer.rb +++ b/Formula/mplayer.rb @@ -12,9 +12,9 @@ class Mplayer < Formula depends_on 'yasm' => :build depends_on 'libcaca' => :optional - depends_on :x11 if build.include? 'with-x' + depends_on :x11 if build.with? 'x' - unless build.include? 'without-osd' or build.include? 'with-x' + unless build.without? 'osd' or build.with? 'x' # These are required for the OSD. We can get them from X11, or we can # build our own. depends_on :fontconfig @@ -57,8 +57,8 @@ class Mplayer < Formula --disable-libopenjpeg ] - args << "--enable-menu" unless build.include? 'without-osd' - args << "--disable-x11" unless build.include? 'with-x' + args << "--enable-menu" unless build.without? 'osd' + args << "--disable-x11" unless build.with? 'x' args << "--enable-caca" if build.with? 'libcaca' system "./configure", *args