homebrew-core/Formula/xplanet.rb

31 lines
686 B
Ruby
Raw Normal View History

require 'formula'
class Xplanet < Formula
homepage 'http://xplanet.sourceforge.net/'
url 'http://downloads.sourceforge.net/project/xplanet/xplanet/1.3.0/xplanet-1.3.0.tar.gz'
sha1 '7c5208b501b441a0184cbb334a5658d0309d7dac'
2012-08-10 04:40:59 +00:00
option "with-x", "Build for X11 instead of Aqua"
depends_on 'pkg-config' => :build
depends_on 'jpeg'
depends_on 'giflib'
depends_on 'libtiff'
depends_on :x11
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
system "make install"
end
end