homebrew-core/Formula/smpeg.rb

28 lines
713 B
Ruby
Raw Normal View History

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/'
2011-03-13 02:14:21 +00:00
depends_on 'pkg-config' => :build
2010-03-14 18:10:07 +00:00
depends_on 'sdl'
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"
bin.install "./smpeg-config"
include.install Dir["*.h"]
2010-03-14 18:10:07 +00:00
end
end