2010-03-14 18:10:07 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Smpeg < Formula
|
2010-03-14 18:10:07 +00:00
|
|
|
head 'svn://svn.icculus.org/smpeg/trunk'
|
|
|
|
homepage 'http://icculus.org/smpeg/'
|
2010-04-07 05:58:35 +00:00
|
|
|
|
2011-03-13 02:14:21 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2010-03-14 18:10:07 +00:00
|
|
|
depends_on 'sdl'
|
|
|
|
|
2012-02-28 15:39:22 +00:00
|
|
|
if MacOS.xcode_version >= "4.3"
|
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "libtool" => :build
|
|
|
|
end
|
|
|
|
|
2010-03-14 18:10:07 +00:00
|
|
|
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"
|
2011-08-07 06:34:44 +00:00
|
|
|
bin.install "./smpeg-config"
|
2011-04-06 06:27:00 +00:00
|
|
|
include.install Dir["*.h"]
|
2010-03-14 18:10:07 +00:00
|
|
|
end
|
|
|
|
end
|