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

class Smpeg < Formula
  head 'svn://svn.icculus.org/smpeg/trunk'
  homepage 'http://icculus.org/smpeg/'

  depends_on 'pkg-config' => :build
  depends_on 'sdl'

  if MacOS.xcode_version >= "4.3"
    depends_on "automake" => :build
    depends_on "libtool" => :build
  end

  def install
    system "./autogen.sh"
    system "./configure", "--disable-debug", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--disable-gtktest",
                          "--disable-sdltest"
    system "make"
    lib.install Dir[".libs/*.dylib"]
    bin.install ".libs/plaympeg"
    bin.install "./smpeg-config"
    include.install Dir["*.h"]
  end
end