homebrew-core/Formula/sdl_mixer.rb

26 lines
681 B
Ruby
Raw Normal View History

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/'
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
option :universal
2012-07-26 02:51:20 +00:00
depends_on 'pkg-config' => :build
2009-09-25 23:53:05 +00:00
depends_on 'sdl'
depends_on 'flac' => :optional
depends_on 'libmikmod' => :optional
depends_on 'libvorbis' => :optional
2009-09-25 23:53:05 +00:00
def install
inreplace 'SDL_mixer.pc.in', '@prefix@', HOMEBREW_PREFIX
ENV.universal_binary if build.universal?
2009-09-25 23:53:05 +00:00
system "./configure", "--prefix=#{prefix}",
"--disable-dependency-tracking"
2009-09-25 23:53:05 +00:00
system "make install"
end
end