aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/sdl_mixer.rb
blob: 0a1d31634bfe0d236543e416e00ea3538429115f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
require 'formula'
require Formula.path('sdl')

class SdlMixer <Formula
  url 'http://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-1.2.11.tar.gz'
  homepage 'http://www.libsdl.org/projects/SDL_mixer/'
  md5 '65ada3d997fe85109191a5fb083f248c'

  depends_on 'sdl'
  depends_on 'flac' => :optional
  depends_on 'libmikmod' => :optional
  depends_on 'libvorbis' => :optional

  def install
    Sdl.use_homebrew_prefix 'SDL_mixer.pc.in'

    system "./configure", "--prefix=#{prefix}",
                          "--disable-dependency-tracking"
    system "make install"
  end
end