blob: 3703b9ced12937324ea797cc1f8fc1c36b1e00d8 (
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
require 'formula'
class SdlSound < Formula
homepage 'http://icculus.org/SDL_sound/'
url 'http://icculus.org/SDL_sound/downloads/SDL_sound-1.0.3.tar.gz'
sha1 '1984bc20b2c756dc71107a5a0a8cebfe07e58cb1'
head do
url 'http://hg.icculus.org/icculus/SDL_sound', :using => :hg
depends_on :autoconf
depends_on :automake
depends_on :libtool
end
depends_on 'pkg-config' => :build
depends_on 'sdl'
depends_on 'flac' => :optional
depends_on 'libmikmod' => :optional
depends_on 'libogg' => :optional
depends_on 'libvorbis' => :optional
depends_on 'speex' => :optional
depends_on 'physfs' => :optional
def install
if build.head?
# Set the environment and call autoreconf, because boostrap.sh
# uses /usr/bin/glibtoolize and a non-standard flag to automake.
ENV['LIBTOOLIZE'] = 'glibtoolize'
ENV['ACLOCAL'] = "aclocal -I #{HOMEBREW_PREFIX}/share/aclocal"
ENV['AUTOMAKE'] = 'automake --foreign'
system "autoreconf -ivf"
end
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--disable-sdltest"
system "make"
system "make check"
system "make install"
end
end
|