From 661bc9c00fa6ef98e43f0cd545a57676b80b633e Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Mon, 5 Aug 2013 18:17:00 -0500 Subject: qt, qt5: use X11 path helpers --- Library/Formula/qt.rb | 2 +- Library/Formula/qt5.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'Library') diff --git a/Library/Formula/qt.rb b/Library/Formula/qt.rb index e46855f11..266636fd8 100644 --- a/Library/Formula/qt.rb +++ b/Library/Formula/qt.rb @@ -42,7 +42,7 @@ class Qt < Formula # locations and with Xcode-only. args << "-no-3dnow" if superenv? - args << "-L#{MacOS::X11.prefix}/lib" << "-I#{MacOS::X11.prefix}/include" if MacOS::X11.installed? + args << "-L#{MacOS::X11.lib}" << "-I#{MacOS::X11.include}" if MacOS::X11.installed? args << "-platform" << "unsupported/macx-clang" if ENV.compiler == :clang diff --git a/Library/Formula/qt5.rb b/Library/Formula/qt5.rb index 5f951f199..9f6cbb645 100644 --- a/Library/Formula/qt5.rb +++ b/Library/Formula/qt5.rb @@ -36,7 +36,7 @@ class Qt5 < Formula 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 << "-L#{MacOS::X11.lib}" << "-I#{MacOS::X11.include}" if MacOS::X11.installed? args << "-plugin-sql-mysql" if build.with? 'mysql' -- cgit v1.2.3