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

class Sdl <Formula
  @url='http://www.libsdl.org/release/SDL-1.2.13.tar.gz'
  @homepage='http://www.libsdl.org/index.php'
  @md5='c6660feea2a6834de10bc71b2f8e4d88'

  def patches
    { :p0 => "http://methylblue.com/junk/libsdl-1.2.13-10.6.patch" }
  end

  def install
    ENV.gcc_4_2
    system "./configure", "--prefix=#{prefix}", "--disable-debug",
                          "--disable-dependency-tracking",
                          "--disable-video-x11",
                          "--disable-nasm"
    system "make install"
    
    # Copy source files needed for Ojective-C support.
    libexec.install Dir["src/main/macosx/*"]
  end
end