2011-11-17 13:26:05 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Xplanet < Formula
|
|
|
|
homepage 'http://xplanet.sourceforge.net/'
|
2013-06-20 23:08:35 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/xplanet/xplanet/1.3.0/xplanet-1.3.0.tar.gz'
|
2012-07-28 21:56:20 +00:00
|
|
|
sha1 '7c5208b501b441a0184cbb334a5658d0309d7dac'
|
2011-11-17 13:26:05 +00:00
|
|
|
|
2012-08-10 04:40:59 +00:00
|
|
|
option "with-x", "Build for X11 instead of Aqua"
|
|
|
|
|
2011-11-17 13:26:05 +00:00
|
|
|
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
|
|
|
|
|
|
|
def install
|
2012-08-10 04:40:59 +00:00
|
|
|
args = %W[
|
|
|
|
--disable-dependency-tracking
|
|
|
|
--prefix=#{prefix}
|
|
|
|
]
|
|
|
|
if build.include? "with-x"
|
2012-03-12 05:19:43 +00:00
|
|
|
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
|