From e4df2f545a037c250f723981d65d59b08a37af44 Mon Sep 17 00:00:00 2001 From: MrTatsch Date: Fri, 22 Nov 2013 14:31:47 +0100 Subject: qwt: enable build with libc++ on Mavericks Closes #24587. Signed-off-by: Adam Vandenberg --- Library/Formula/qwt.rb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'Library/Formula') diff --git a/Library/Formula/qwt.rb b/Library/Formula/qwt.rb index 8f1eab79c..e839f755c 100644 --- a/Library/Formula/qwt.rb +++ b/Library/Formula/qwt.rb @@ -13,7 +13,14 @@ class Qwt < Formula s.gsub! /^\s*QWT_INSTALL_PREFIX\s*=(.*)$/, "QWT_INSTALL_PREFIX=#{prefix}" end - system "qmake -spec macx-g++ -config release" + args = ['-config', 'release', '-spec'] + # On Mavericks we want to target libc++, this requires a unsupported/macx-clang-libc++ flag + if ENV.compiler == :clang and MacOS.version >= :mavericks + args << "unsupported/macx-clang-libc++" + else + args << "macx-g++" + end + system 'qmake', *args system "make" system "make install" end -- cgit v1.2.3