sdl_mixer: make libogg, libvorbis req. dependencies

Closes #14316.

Signed-off-by: JCount <JCount42@gmail.com>
This commit is contained in:
JCount 2017-06-06 14:47:51 -04:00
parent 50df91cb44
commit 239c199fc5

View file

@ -3,7 +3,7 @@ class SdlMixer < Formula
homepage "https://www.libsdl.org/projects/SDL_mixer/" homepage "https://www.libsdl.org/projects/SDL_mixer/"
url "https://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-1.2.12.tar.gz" url "https://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-1.2.12.tar.gz"
sha256 "1644308279a975799049e4826af2cfc787cad2abb11aa14562e402521f86992a" sha256 "1644308279a975799049e4826af2cfc787cad2abb11aa14562e402521f86992a"
revision 1 revision 2
bottle do bottle do
cellar :any cellar :any
@ -13,12 +13,13 @@ class SdlMixer < Formula
end end
depends_on "pkg-config" => :build depends_on "pkg-config" => :build
depends_on "libogg"
depends_on "libvorbis"
depends_on "sdl" depends_on "sdl"
depends_on "flac" => :optional depends_on "flac" => :optional
depends_on "fluid-synth" => :optional depends_on "fluid-synth" => :optional
depends_on "smpeg" => :optional depends_on "smpeg" => :optional
depends_on "libmikmod" => :optional depends_on "libmikmod" => :optional
depends_on "libvorbis" => :optional
def install def install
inreplace "SDL_mixer.pc.in", "@prefix@", HOMEBREW_PREFIX inreplace "SDL_mixer.pc.in", "@prefix@", HOMEBREW_PREFIX
@ -26,11 +27,12 @@ class SdlMixer < Formula
args = %W[ args = %W[
--prefix=#{prefix} --prefix=#{prefix}
--disable-dependency-tracking --disable-dependency-tracking
--enable-music-ogg
--disable-music-ogg-shared
] ]
args << "--disable-music-mod-shared" if build.with? "libmikmod" args << "--disable-music-mod-shared" if build.with? "libmikmod"
args << "--disable-music-fluidsynth-shared" if build.with? "fluid-synth" args << "--disable-music-fluidsynth-shared" if build.with? "fluid-synth"
args << "--disable-music-ogg-shared" if build.with? "libvorbis"
args << "--disable-music-flac-shared" if build.with? "flac" args << "--disable-music-flac-shared" if build.with? "flac"
args << "--disable-music-mp3-shared" if build.with? "smpeg" args << "--disable-music-mp3-shared" if build.with? "smpeg"