aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Library/Formula/wkhtmltopdf.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/Library/Formula/wkhtmltopdf.rb b/Library/Formula/wkhtmltopdf.rb
index f677137a1..82a056d08 100644
--- a/Library/Formula/wkhtmltopdf.rb
+++ b/Library/Formula/wkhtmltopdf.rb
@@ -24,7 +24,13 @@ class Wkhtmltopdf < Formula
inreplace 'src/image/image.pro', 'x86', Hardware::CPU.arch_64_bit
end
- system 'qmake', '-spec', 'macx-g++'
+ if MacOS.version >= :mavericks && ENV.compiler == :clang
+ spec = 'unsupported/macx-clang-libc++'
+ else
+ spec = 'macx-g++'
+ end
+
+ system 'qmake', '-spec', spec
system 'make'
ENV['DYLD_LIBRARY_PATH'] = './bin'
`bin/wkhtmltopdf --manpage > wkhtmltopdf.1`