aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/qwt.rb9
1 files changed, 8 insertions, 1 deletions
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