42 lines
1.3 KiB
Ruby
42 lines
1.3 KiB
Ruby
class SdlMixer < 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/SDL_mixer-1.2.12.tar.gz"
|
|
sha256 "1644308279a975799049e4826af2cfc787cad2abb11aa14562e402521f86992a"
|
|
revision 3
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "e08902563c6265ac480323c9f22a26ee0e51f42fb1c36efb9b66b1f6b34a032d" => :high_sierra
|
|
sha256 "69e8726e5b9bb858e069d244844411fc43930d3a7d0b78c6177bf36c76bb04c2" => :sierra
|
|
sha256 "9c9a55fe416bc37a14e9a58439093b85274bf12c2bab24660a3f7c4b0fff70c3" => :el_capitan
|
|
end
|
|
|
|
depends_on "pkg-config" => :build
|
|
depends_on "libmikmod"
|
|
depends_on "libogg"
|
|
depends_on "libvorbis"
|
|
depends_on "sdl"
|
|
depends_on "flac" => :optional
|
|
depends_on "fluid-synth" => :optional
|
|
depends_on "smpeg" => :optional
|
|
|
|
def install
|
|
inreplace "SDL_mixer.pc.in", "@prefix@", HOMEBREW_PREFIX
|
|
|
|
args = %W[
|
|
--prefix=#{prefix}
|
|
--disable-dependency-tracking
|
|
--enable-music-ogg
|
|
--disable-music-ogg-shared
|
|
--disable-music-mod-shared
|
|
]
|
|
|
|
args << "--disable-music-fluidsynth-shared" if build.with? "fluid-synth"
|
|
args << "--disable-music-flac-shared" if build.with? "flac"
|
|
args << "--disable-music-mp3-shared" if build.with? "smpeg"
|
|
|
|
system "./configure", *args
|
|
system "make", "install"
|
|
end
|
|
end
|