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'
|
|
|
|
|
2012-10-28 19:32:22 +00:00
|
|
|
depends_on :automake => :build
|
|
|
|
depends_on :libtool => :build
|
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-09-10 21:47:23 +00:00
|
|
|
depends_on 'gtk+'
|
2010-03-14 18:10:07 +00:00
|
|
|
|
|
|
|
def install
|
2012-10-28 19:32:22 +00:00
|
|
|
sdl = Formula.factory("sdl")
|
2010-03-14 18:10:07 +00:00
|
|
|
system "./autogen.sh"
|
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
2012-10-28 19:32:22 +00:00
|
|
|
"--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
|