blob: c41b6aa0d6decd4acb793603fb63e05d987630e9 (
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
homepage 'http://icculus.org/smpeg/'
head 'svn://svn.icculus.org/smpeg/trunk'
depends_on :automake => :build
depends_on :libtool => :build
depends_on 'pkg-config' => :build
depends_on 'sdl'
depends_on 'gtk+'
def install
sdl = Formula.factory("sdl")
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}"
system "make"
# Install script is not +x by default for some reason
system "chmod +x ./install-sh"
system "make install"
end
end
|