aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/sdl_gfx.rb
blob: e247ba0d2b1b1026e48c8d11c4f0cf8f8b16ad92 (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
require 'formula'

class SdlGfx < Formula
  url 'http://www.ferzkopp.net/Software/SDL_gfx-2.0/SDL_gfx-2.0.20.tar.gz'
  homepage 'http://www.ferzkopp.net/joomla/content/view/19/14/'
  md5 '8a787e538a8e4d80d4927535be5af083'

  depends_on 'sdl'

  def options
    [['--universal', 'Build universal binaries.']]
  end

  def install
    ENV.universal_binary if ARGV.build_universal?
    system "./configure", "--disable-debug", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--enable-static=no",
                          "--enable-shared=yes",
                          "--disable-sdltest",
                          "--disable-mmx"
    system "make install"
  end
end