class Mplayer < Formula desc "UNIX movie player" homepage "https://mplayerhq.hu/" url "https://mplayerhq.hu/MPlayer/releases/MPlayer-1.3.0.tar.xz" sha256 "3ad0846c92d89ab2e4e6fb83bf991ea677e7aa2ea775845814cbceb608b09843" revision 1 bottle do cellar :any rebuild 1 sha256 "734c950c5e1d7108a3df001d8de4e1eb292021688f98bdd96fbb674824ef1154" => :mojave sha256 "eeb8869d71317d372464c189cadad3a2e551b36242ad6ce7ff1f1a9e2b558e2f" => :high_sierra sha256 "12e76fed7970923d84b74bf9b8f1583186b38b7b0b2e22ed201562d69b64e88a" => :sierra end head do url "svn://svn.mplayerhq.hu/mplayer/trunk" # When building SVN, configure prompts the user to pull FFmpeg from git. # Don't do that. patch :DATA end depends_on "pkg-config" => :build depends_on "yasm" => :build depends_on "fontconfig" depends_on "freetype" depends_on "libcaca" def install # we disable cdparanoia because homebrew's version is hacked to work on macOS # and mplayer doesn't expect the hacks we apply. So it chokes. Only relevant # if you have cdparanoia installed. # Specify our compiler to stop ffmpeg from defaulting to gcc. args = %W[ --cc=#{ENV.cc} --host-cc=#{ENV.cc} --disable-cdparanoia --prefix=#{prefix} --disable-x11 --enable-caca --enable-freetype ] system "./configure", *args system "make" system "make", "install" end test do system "#{bin}/mplayer", "-ao", "null", "/System/Library/Sounds/Glass.aiff" end end __END__ diff --git a/configure b/configure index addc461..3b871aa 100755 --- a/configure +++ b/configure @@ -1517,8 +1517,6 @@ if test -e ffmpeg/mp_auto_pull ; then fi if test "$ffmpeg_a" != "no" && ! test -e ffmpeg ; then - echo "No FFmpeg checkout, press enter to download one with git or CTRL+C to abort" - read tmp if ! git clone -b $FFBRANCH --depth 1 git://source.ffmpeg.org/ffmpeg.git ffmpeg ; then rm -rf ffmpeg echo "Failed to get a FFmpeg checkout"