2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-25 23:53:05 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class SdlMixer < Formula
|
2009-09-25 23:53:05 +00:00
|
|
|
homepage 'http://www.libsdl.org/projects/SDL_mixer/'
|
2012-07-02 08:09:34 +00:00
|
|
|
url 'http://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-1.2.12.tar.gz'
|
|
|
|
sha1 'a20fa96470ad9e1052f1957b77ffa68fb090b384'
|
2009-09-25 23:53:05 +00:00
|
|
|
|
2012-07-26 02:51:20 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
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
|
2012-04-16 17:28:06 +00:00
|
|
|
inreplace 'SDL_mixer.pc.in', '@prefix@', HOMEBREW_PREFIX
|
2009-10-23 18:02:02 +00:00
|
|
|
|
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
|