-
Notifications
You must be signed in to change notification settings - Fork 113
/
smpeg.rb
30 lines (27 loc) · 1012 Bytes
/
smpeg.rb
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
28
29
30
require 'formula'
class Smpeg < Formula
homepage 'http://icculus.org/smpeg/'
# current HEAD only works with SDL 2, which has no stable release
# This is all really a mess and why we removed it from core!
# When SDL 2 comes out, move this back to HEAD
# Or, if the author tags a stable release, use that
head 'svn://svn.icculus.org/smpeg/trunk', :revision => '398'
depends_on :automake
depends_on :libtool
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