mplayer: add optional libcaca dep
This commit is contained in:
parent
12d7e7875a
commit
723af83f46
1 changed files with 2 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue