# This now builds a version of JACKv1 which matches the current API # for JACKv2. JACKv2 is not buildable on a number of macOS # distributions, and the JACK team instead suggests installation of # JACKOSX, a pre-built binary form for which the source is not available. # If you require JACKv2, you should use that. Otherwise, this formula should # operate fine. # Please see https://github.com/Homebrew/homebrew/pull/22043 for more info class Jack < Formula desc "Audio Connection Kit" homepage "http://jackaudio.org" url "http://jackaudio.org/downloads/jack-audio-connection-kit-0.125.0.tar.gz" sha256 "3517b5bff82139a76b2b66fe2fd9a3b34b6e594c184f95a988524c575b11d444" revision 1 bottle do sha256 "6b002d858a3a8b70c95f8e72471ca165c48a0c260c25ac34e2fa5b3a149bc8e6" => :high_sierra sha256 "0a993d32dd74ce014e0c0aa5a04e632a7e4bca7bc6ced4afa9a7d717cc893f06" => :sierra sha256 "abb9fc993cda86b4daf45f0d2a8c775716fec08fc016facd8151787ac06e60e4" => :el_capitan sha256 "de96b9c43cb77f57d42ba02c1373b31a421ec485eafe401c11cc27c8c8c1838f" => :yosemite end depends_on "pkg-config" => :build depends_on "berkeley-db" depends_on "libsndfile" depends_on "libsamplerate" def install # Makefile hardcodes Carbon header location inreplace Dir["drivers/coreaudio/Makefile.{am,in}"], "/System/Library/Frameworks/Carbon.framework/Headers/Carbon.h", "#{MacOS.sdk_path}/System/Library/Frameworks/Carbon.framework/Headers/Carbon.h" ENV["LINKFLAGS"] = ENV.ldflags system "./configure", "--prefix=#{prefix}" system "make", "install" end plist_options :manual => "jackd -d coreaudio" def plist; <<-EOS.undent Label #{plist_name} WorkingDirectory #{prefix} ProgramArguments #{opt_bin}/jackd -d coreaudio RunAtLoad KeepAlive EOS end test do assert_match version.to_s, shell_output("#{bin}/jackd --version") end end