mplayer: add optional libcaca dep

This commit is contained in:
Misty De Meo 2013-04-04 18:04:43 -05:00
parent 12d7e7875a
commit 723af83f46

View file

@ -12,6 +12,7 @@ class Mplayer < Formula
depends_on 'yasm' => :build
depends_on 'xz' => :build
depends_on 'libcaca' => :optional
depends_on :x11 if build.include? 'with-x'
unless build.include? 'without-osd' or build.include? 'with-x'
@ -58,6 +59,7 @@ class Mplayer < Formula
args << "--enable-menu" unless build.include? 'without-osd'
args << "--disable-x11" unless build.include? 'with-x'
args << "--enable-caca" if build.with? 'libcaca'
system "./configure", *args
system "make"