diff options
| author | Samuel John | 2013-07-15 14:08:20 +0200 |
|---|---|---|
| committer | Samuel John | 2013-07-15 17:30:27 +0200 |
| commit | f828eb831ffd71194d8becb3fc76265eb9ed2ac8 (patch) | |
| tree | 8aea445e6167efcc90ef0939f4a7717898d842f4 /Library/Formula | |
| parent | e6a2bc2846c3f79f5e1dbe5ebb2c77e0ce8780a8 (diff) | |
| download | homebrew-f828eb831ffd71194d8becb3fc76265eb9ed2ac8.tar.bz2 | |
qt5: -sdk no longer needed.
* Qt5's can detect this itself, now. This is good.
* HEAD no longer has the `-nomake demos`.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/qt5.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Library/Formula/qt5.rb b/Library/Formula/qt5.rb index 68fd99eb3..06ffdb1b2 100644 --- a/Library/Formula/qt5.rb +++ b/Library/Formula/qt5.rb @@ -28,12 +28,11 @@ class Qt5 < Formula "-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: + # ... 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#{Formula.factory('jpeg').opt_prefix}/lib" << "-I#{Formula.factory('jpeg').opt_prefix}/include" args << "-L#{MacOS::X11.prefix}/lib" << "-I#{MacOS::X11.prefix}/include" if MacOS::X11.installed? args << "-plugin-sql-mysql" if build.with? 'mysql' @@ -43,9 +42,10 @@ class Qt5 < Formula args << "-I#{Formula.factory('d-bus').include}/dbus-1.0" end - unless build.include? 'with-demos-examples' or build.head? + unless build.include? 'with-demos-examples' + args << "-nomake" << "examples" # In latest head `-nomake demos` is no longer recognized - args << "-nomake" << "demos" << "-nomake" << "examples" + args << "-nomake" << "demos" unless build.head? end if MacOS.prefer_64_bit? or build.universal? |
