2011-11-17 13:26:05 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Xplanet < Formula
|
|
|
|
homepage 'http://xplanet.sourceforge.net/'
|
|
|
|
url 'http://sourceforge.net/projects/xplanet/files/xplanet/1.2.2/xplanet-1.2.2.tar.gz'
|
|
|
|
md5 'b38c3b4cfdd772643f876a9bb15f288b'
|
|
|
|
|
|
|
|
depends_on 'pkg-config' => :build
|
|
|
|
depends_on 'jpeg'
|
|
|
|
depends_on 'giflib'
|
|
|
|
depends_on 'libtiff'
|
2012-06-07 01:35:12 +00:00
|
|
|
depends_on :x11
|
2011-11-17 13:26:05 +00:00
|
|
|
|
2012-03-12 05:19:43 +00:00
|
|
|
def options
|
|
|
|
[['--with-x', "Build for X11 instead of Aqua."]]
|
|
|
|
end
|
|
|
|
|
2011-11-17 13:26:05 +00:00
|
|
|
def install
|
2012-03-12 05:19:43 +00:00
|
|
|
args = ["--disable-dependency-tracking", "--prefix=#{prefix}"]
|
|
|
|
if ARGV.include? "--with-x"
|
|
|
|
args << "--with-x"
|
|
|
|
else
|
|
|
|
args << "--with-aqua" << "--without-x"
|
|
|
|
end
|
|
|
|
|
|
|
|
system "./configure", *args
|
2011-11-17 13:26:05 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|