aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Vandenberg2012-03-11 22:19:43 -0700
committerAdam Vandenberg2012-03-11 22:20:03 -0700
commit33fc2b22a585a110b6d04fc58f572150ec5905c2 (patch)
tree4ad91ed4421a8edc48f844b8f5be2892445ea72f /Library/Formula
parentfc6366264496fbe63042e8335e2c4e990eba57a3 (diff)
downloadhomebrew-33fc2b22a585a110b6d04fc58f572150ec5905c2.tar.bz2
xplanet: allow aqua version too
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/xplanet.rb15
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