6477937193
Closes Homebrew/homebrew#23461. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
25 lines
681 B
Ruby
25 lines
681 B
Ruby
require 'formula'
|
|
|
|
class SdlMixer < Formula
|
|
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'
|
|
|
|
option :universal
|
|
|
|
depends_on 'pkg-config' => :build
|
|
depends_on 'sdl'
|
|
depends_on 'flac' => :optional
|
|
depends_on 'libmikmod' => :optional
|
|
depends_on 'libvorbis' => :optional
|
|
|
|
def install
|
|
inreplace 'SDL_mixer.pc.in', '@prefix@', HOMEBREW_PREFIX
|
|
|
|
ENV.universal_binary if build.universal?
|
|
|
|
system "./configure", "--prefix=#{prefix}",
|
|
"--disable-dependency-tracking"
|
|
system "make install"
|
|
end
|
|
end
|