From 3bb457cbfe1ed5d685c508de905d3b5d11b58695 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Mon, 17 Mar 2014 18:03:47 -0500 Subject: [PATCH] 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. --- Formula/gst-plugins-good.rb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Formula/gst-plugins-good.rb b/Formula/gst-plugins-good.rb index b9cdaae5c6e..95dc9e1268a 100644 --- a/Formula/gst-plugins-good.rb +++ b/Formula/gst-plugins-good.rb @@ -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"