36 lines
1.3 KiB
Ruby
36 lines
1.3 KiB
Ruby
class Sdl2Mixer < Formula
|
|
desc "Sample multi-channel audio mixer library"
|
|
homepage "https://www.libsdl.org/projects/SDL_mixer/"
|
|
url "https://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-2.0.0.tar.gz"
|
|
sha256 "a8ce0e161793791adeff258ca6214267fdd41b3c073d2581cd5265c8646f725b"
|
|
head "https://hg.libsdl.org/SDL_mixer", :using => :hg
|
|
|
|
bottle do
|
|
cellar :any
|
|
revision 1
|
|
sha256 "f32a78d1b3c6d95368124407b099215d6d778fa11f0acff68d4cf1f76f7574a0" => :el_capitan
|
|
sha256 "c4ee54f586e9f88bf29393274ec3811426068484f03d0e48500a07217b5d69c8" => :yosemite
|
|
sha256 "7b127a9c1aec81587871db9c288e3d17219b76f8bebc486bce91a6c2a845c4c5" => :mavericks
|
|
end
|
|
|
|
option :universal
|
|
|
|
depends_on "pkg-config" => :build
|
|
depends_on "sdl2"
|
|
depends_on "flac" => :optional
|
|
depends_on "fluid-synth" => :optional
|
|
depends_on "smpeg2" => :optional
|
|
depends_on "libmikmod" => :optional
|
|
depends_on "libvorbis" => :optional
|
|
|
|
def install
|
|
ENV.universal_binary if build.universal?
|
|
inreplace "SDL2_mixer.pc.in", "@prefix@", HOMEBREW_PREFIX
|
|
|
|
ENV["SMPEG_CONFIG"] = "#{Formula["smpeg2"].bin}/smpeg2-config" if build.with? "smpeg2"
|
|
|
|
system "./configure", "--prefix=#{prefix}",
|
|
"--disable-dependency-tracking"
|
|
system "make", "install"
|
|
end
|
|
end
|