jack: fix build on 10.12 (#29065)

use CLT when it's installed instead of mixing Xcode and CLT headers
This commit is contained in:
ilovezfs 2018-06-15 00:16:22 -07:00 committed by GitHub
parent 6b803b3d88
commit 4ccaa05bc6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,10 +24,12 @@ class Jack < Formula
depends_on "libsamplerate"
def install
sdk = MacOS::CLT.installed? ? "" : MacOS.sdk_path
# 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"
"#{sdk}/System/Library/Frameworks/Carbon.framework/Headers/Carbon.h"
ENV["LINKFLAGS"] = ENV.ldflags
system "./configure", "--prefix=#{prefix}"