From 9cbbcf9e4faf9597201369ae89881d6190d26d81 Mon Sep 17 00:00:00 2001 From: Misty De Meo Date: Sun, 12 Feb 2017 19:43:08 +1100 Subject: [PATCH] magnetix: various fixes. Closes #9881. Signed-off-by: Mike McQuaid --- Formula/magnetix.rb | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Formula/magnetix.rb b/Formula/magnetix.rb index 092a512182..7df87f9671 100644 --- a/Formula/magnetix.rb +++ b/Formula/magnetix.rb @@ -5,11 +5,20 @@ class Magnetix < Formula version "3.1" sha256 "9862c95659c4db0c5cbe604163aefb503e48462c5769692010d8851d7b31c2fb" + depends_on :macos => :lion depends_on :xcode => :build + # Port audio code from QTKit to AVFoundation + # Required since 10.12 SDK no longer includes QTKit. + # Submitted by email to the developer. + patch do + url "https://raw.githubusercontent.com/Homebrew/formula-patches/4fe0b7b6c43f75738782e047606c07446db07c4f/magnetix/avfoundation.patch" + sha256 "16caedaebcc05f03893bf0564b9c3212d1c919aebfdf1ee21126a39f8db5f441" + end + def install cd "magnetiX_src" do - xcodebuild + xcodebuild "SYMROOT=build" prefix.install "build/Default/magnetiX.app" bin.write_exec_script "#{prefix}/magnetiX.app/Contents/MacOS/magnetiX" end