homebrew-core/Formula/sdl_sound.rb

42 lines
1.2 KiB
Ruby
Raw Normal View History

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/'
url 'http://icculus.org/SDL_sound/downloads/SDL_sound-1.0.3.tar.gz'
sha1 '1984bc20b2c756dc71107a5a0a8cebfe07e58cb1'
2012-08-27 05:02:39 +00:00
head 'http://hg.icculus.org/icculus/SDL_sound', :using => :hg
2012-08-27 05:02:39 +00:00
if build.head?
2012-07-07 18:08:22 +00:00
depends_on :automake
depends_on :libtool
end
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
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?
# 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
2012-08-27 05:02:39 +00:00
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--disable-sdltest"
system "make"
system "make check"
2010-03-10 07:25:36 +00:00
system "make install"
end
end