baresip: avoid 10.11 SDK if on Yosemite
Closes #2134. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
parent
1ceac6dd5f
commit
6e35a01d65
1 changed files with 6 additions and 0 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue