Skip to content

Commit

Permalink
plplot: disable xcairo if X11 is not installed.
Browse files Browse the repository at this point in the history
Closes Homebrew#26041.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
  • Loading branch information
Stefan authored and MikeMcQuaid committed Jan 29, 2014
1 parent 7f5c86e commit 12b1c67
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Library/Formula/plplot.rb
Expand Up @@ -8,13 +8,15 @@ class Plplot < Formula
depends_on 'cmake' => :build
depends_on 'pkg-config' => :build
depends_on 'pango'
depends_on :x11 => :optional

option 'with-java'

def install
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"
Expand Down

0 comments on commit 12b1c67

Please sign in to comment.