aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/atari++.rb
blob: 905b6dfffc776ac2abaab88e8cb26e7fb6a1a244 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
require 'formula'

class Atarixx < Formula
  homepage 'http://www.xl-project.com'
  url 'http://www.xl-project.com/download/atari++_1.72.tar.gz'
  sha1 '64e31389032292cd4a82a972e83bb2b3ee723068'

  option 'with-curses'

  depends_on :x11
  depends_on 'sdl' => :recommended

  def install
    args = ["--prefix=#{prefix}"]
    args << "--disable-CURSES" if build.without? "curses"
    args << "--disable-SDL" if build.without? "sdl"

    system "./configure", *args
    system "make"
    system "make install"
  end
end