magnetix: various fixes.

Closes #9881.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Misty De Meo 2017-02-12 19:43:08 +11:00 committed by Mike McQuaid
parent 8bd4893e40
commit 9cbbcf9e4f

View file

@ -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