aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/plplot.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/plplot.rb')
-rw-r--r--Library/Formula/plplot.rb2
1 files changed, 2 insertions, 0 deletions
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"