gst-plugins-good: optional X11 dependency

Configure picks up X11 and tries to compile with it, but superenv
filters out the library paths during make; explicitly pass
--with/without-x to fix this.
master
Jack Nagel 2014-03-17 18:03:47 -05:00
parent d887eb12ac
commit 3bb457cbfe
1 changed files with 9 additions and 0 deletions

View File

@ -25,6 +25,8 @@ class GstPluginsGood < Formula
depends_on 'gst-plugins-base'
depends_on 'libsoup'
depends_on :x11 => :optional
# The set of optional dependencies is based on the intersection of
# gst-plugins-good-0.10.30/REQUIREMENTS and Homebrew formulae
depends_on 'orc' => :optional
@ -50,8 +52,15 @@ class GstPluginsGood < Formula
--with-default-videosink=ximagesink
--disable-debug
--disable-dependency-tracking
--disable-silent-rules
]
if build.with? "x11"
args << "--with-x"
else
args << "--without-x"
end
if build.head?
ENV.append "NOCONFIGURE", "yes"
system "./autogen.sh"