blob: 062ee4e7b2b34b6b7d4aadeed32e790c1918d416 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
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'
depends_on :x11
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
system "./configure", *args
system "make install"
end
end
|