2010-03-10 07:25:36 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class SdlSound < Formula
|
2010-03-10 07:25:36 +00:00
|
|
|
homepage 'http://icculus.org/SDL_sound/'
|
2012-03-03 20:54:15 +00:00
|
|
|
url 'http://icculus.org/SDL_sound/downloads/SDL_sound-1.0.3.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '1984bc20b2c756dc71107a5a0a8cebfe07e58cb1'
|
2012-08-27 05:02:39 +00:00
|
|
|
|
2013-09-22 01:47:42 +00:00
|
|
|
head do
|
|
|
|
url 'http://hg.icculus.org/icculus/SDL_sound', :using => :hg
|
2010-04-07 05:58:35 +00:00
|
|
|
|
2014-04-05 00:38:29 +00:00
|
|
|
depends_on "autoconf" => :build
|
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "libtool" => :build
|
2012-07-07 18:08:22 +00:00
|
|
|
end
|
|
|
|
|
2010-09-19 17:21:57 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2010-03-10 07:25:36 +00:00
|
|
|
depends_on 'sdl'
|
|
|
|
depends_on 'flac' => :optional
|
|
|
|
depends_on 'libmikmod' => :optional
|
|
|
|
depends_on 'libogg' => :optional
|
|
|
|
depends_on 'libvorbis' => :optional
|
2011-10-24 09:54:42 +00:00
|
|
|
depends_on 'speex' => :optional
|
|
|
|
depends_on 'physfs' => :optional
|
2010-03-10 07:25:36 +00:00
|
|
|
|
|
|
|
def install
|
2012-08-27 05:02:39 +00:00
|
|
|
if build.head?
|
2014-04-05 00:38:29 +00:00
|
|
|
inreplace "bootstrap", "/usr/bin/glibtoolize",
|
|
|
|
"#{Formula["libtool"].opt_bin}/glibtoolize"
|
|
|
|
system "./bootstrap"
|
2012-03-03 20:54:15 +00:00
|
|
|
end
|
|
|
|
|
2012-08-27 05:02:39 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
2012-02-06 21:21:52 +00:00
|
|
|
"--disable-sdltest"
|
2011-10-24 09:54:42 +00:00
|
|
|
system "make"
|
|
|
|
system "make check"
|
2010-03-10 07:25:36 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|