diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/xplanet.rb | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/Library/Formula/xplanet.rb b/Library/Formula/xplanet.rb index 56164b9ea..59d90b01f 100644 --- a/Library/Formula/xplanet.rb +++ b/Library/Formula/xplanet.rb @@ -10,11 +10,20 @@ class Xplanet < Formula depends_on 'giflib' depends_on 'libtiff' + def options + [['--with-x', "Build for X11 instead of Aqua."]] + end + def install + args = ["--disable-dependency-tracking", "--prefix=#{prefix}"] + if ARGV.include? "--with-x" + args << "--with-x" + else + args << "--with-aqua" << "--without-x" + end + ENV.x11 - system "./configure", "--disable-dependency-tracking", - "--prefix=#{prefix}", - "--with-x" + system "./configure", *args system "make install" end end |
