2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-10-23 18:02:02 +00:00
|
|
|
require Formula.path('sdl')
|
2009-09-25 23:53:05 +00:00
|
|
|
|
|
|
|
class SdlMixer <Formula
|
2009-12-02 11:06:31 +00:00
|
|
|
url 'http://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-1.2.11.tar.gz'
|
2009-09-25 23:53:05 +00:00
|
|
|
homepage 'http://www.libsdl.org/projects/SDL_mixer/'
|
2009-12-02 11:06:31 +00:00
|
|
|
md5 '65ada3d997fe85109191a5fb083f248c'
|
2009-09-25 23:53:05 +00:00
|
|
|
|
|
|
|
depends_on 'sdl'
|
2009-10-21 03:11:35 +00:00
|
|
|
depends_on 'flac' => :optional
|
|
|
|
depends_on 'libmikmod' => :optional
|
2010-05-29 16:30:55 +00:00
|
|
|
depends_on 'libvorbis' => :optional
|
2010-04-07 05:58:35 +00:00
|
|
|
|
2009-09-25 23:53:05 +00:00
|
|
|
def install
|
2009-10-23 18:02:02 +00:00
|
|
|
Sdl.use_homebrew_prefix 'SDL_mixer.pc.in'
|
|
|
|
|
2009-09-25 23:53:05 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}",
|
2009-10-21 03:11:35 +00:00
|
|
|
"--disable-dependency-tracking"
|
2009-09-25 23:53:05 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|