diff options
| author | Samuel John | 2013-03-18 18:11:59 +0100 |
|---|---|---|
| committer | Samuel John | 2013-03-18 19:03:14 +0100 |
| commit | a34b749aa3fa39fa4539c8de77e7a0a0f78e8c48 (patch) | |
| tree | 79d52e5bb37ff9eaf9cd4cfce9f3b0877e7e849b /Library/Formula | |
| parent | 6f6c889a24b078624900e717883100b1caa0c8aa (diff) | |
| download | homebrew-a34b749aa3fa39fa4539c8de77e7a0a0f78e8c48.tar.bz2 | |
qt5: Build on Xcode-only Macs
Qt5 needs a -sdk flag and the -I to find some CFNumber.h.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/qt5.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Formula/qt5.rb b/Library/Formula/qt5.rb index f282e0f0c..790e59308 100644 --- a/Library/Formula/qt5.rb +++ b/Library/Formula/qt5.rb @@ -20,6 +20,7 @@ class Qt5 < Formula depends_on "d-bus" if build.include? 'with-qtdbus' depends_on "mysql" if build.include? 'with-mysql' + depends_on "jpeg" def patches # http://qt.gitorious.org/qt/qtbase/commit/655ba5?format=patch @@ -32,6 +33,13 @@ class Qt5 < Formula "-system-libpng", "-system-zlib", "-confirm-license", "-opensource"] + unless MacOS::CLT.installed? + # Qt hard-codes paths (and uses -I flags) and linking fails on Xcode-only + args += ["-sdk", MacOS.sdk_path] + # Even with sdk given, Qt5 is too stupid to find CFNumber.h, so we give a hint: + ENV.append 'CXXFLAGS', "-I#{MacOS.sdk_path}/System/Library/Frameworks/CoreFoundation.framework/Headers" + end + args << "-L#{MacOS::X11.prefix}/lib" << "-I#{MacOS::X11.prefix}/include" if MacOS::X11.installed? args << "-plugin-sql-mysql" if build.include? 'with-mysql' |
