From 12b1c67d9238cdb62e1cb0d2df3b71a91291b299 Mon Sep 17 00:00:00 2001 From: Stefan Date: Mon, 20 Jan 2014 02:54:27 +0100 Subject: plplot: disable xcairo if X11 is not installed. Closes #26041. Signed-off-by: Mike McQuaid --- Library/Formula/plplot.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Library/Formula/plplot.rb') diff --git a/Library/Formula/plplot.rb b/Library/Formula/plplot.rb index db1e6adc1..4ecdda062 100644 --- a/Library/Formula/plplot.rb +++ b/Library/Formula/plplot.rb @@ -8,6 +8,7 @@ class Plplot < Formula depends_on 'cmake' => :build depends_on 'pkg-config' => :build depends_on 'pango' + depends_on :x11 => :optional option 'with-java' @@ -15,6 +16,7 @@ class Plplot < Formula args = std_cmake_args args << '-DPLD_wxwidgets=OFF' << '-DENABLE_wxwidgets=OFF' args << '-DENABLE_java=OFF' unless build.with? 'java' + args << '-DPLD_xcairo=OFF' unless MacOS::X11.installed? mkdir "plplot-build" do system "cmake", "..", *args system "make" -- cgit v1.2.3