homebrew-core/Formula/smpeg.rb

28 lines
779 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
homepage 'http://icculus.org/smpeg/'
2012-07-07 18:08:22 +00:00
head 'svn://svn.icculus.org/smpeg/trunk'
depends_on :automake => :build
depends_on :libtool => :build
2011-03-13 02:14:21 +00:00
depends_on 'pkg-config' => :build
2010-03-14 18:10:07 +00:00
depends_on 'sdl'
depends_on 'gtk+'
2010-03-14 18:10:07 +00:00
def install
sdl = Formula.factory("sdl")
2010-03-14 18:10:07 +00:00
system "./autogen.sh"
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--disable-sdltest",
# For non-/usr/local installs
"--with-sdl-prefix=#{sdl.opt_prefix}"
2010-03-14 18:10:07 +00:00
system "make"
2012-04-19 03:40:13 +00:00
# Install script is not +x by default for some reason
system "chmod +x ./install-sh"
system "make install"
2010-03-14 18:10:07 +00:00
end
end