baresip: avoid 10.11 SDK if on Yosemite

Closes #2134.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
ilovezfs 2016-06-19 01:22:16 -07:00
parent 1ceac6dd5f
commit 6e35a01d65

View file

@ -14,6 +14,12 @@ class Baresip < Formula
depends_on "libre"
def install
# baresip doesn't like the 10.11 SDK when on Yosemite
if MacOS::Xcode.installed? && MacOS::Xcode.version.to_i >= 7
ENV.delete("SDKROOT")
ENV.delete("HOMEBREW_SDKROOT") if MacOS::Xcode.without_clt?
end
libre = Formula["libre"]
system "make", "install", "PREFIX=#{prefix}",
"LIBRE_MK=#{libre.opt_share}/re/re.mk",