homebrew-core/Formula/sdl_mixer.rb
Max Howell 5ce0734c8b Fix SDL pc files and sdl-config
So many tools expect all SDL modules to be installed in the same place. So we have to change the prefix path to HOMEBREW_PREFIX. This is probably the correct thing to do in general in fact.
2009-10-23 19:22:51 +01:00

22 lines
653 B
Ruby

require 'formula'
require Formula.path('sdl')
class SdlMixer <Formula
url 'http://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-1.2.9.tar.gz'
homepage 'http://www.libsdl.org/projects/SDL_mixer/'
md5 'a9eb8750e920829ff41dbe7555850156'
depends_on 'sdl'
depends_on 'flac' => :optional
depends_on 'libmikmod' => :optional
#depends_on 'smpeg' => :optional # http://icculus.org/smpeg/
def install
Sdl.use_homebrew_prefix 'SDL_mixer.pc.in'
system "./configure", "--prefix=#{prefix}",
"--disable-debug",
"--disable-dependency-tracking"
system "make install"
end
end