Qt: Link Framework header folders into include

So programs that rely on `pkg-config <some Qt module> --cflags` will work.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Charlie Sharpsteen authored and Adam Vandenberg committed 2011-07-26 07:30:04 -07:00
1 parent ee2f510e18
commit 3bdf652d24
1 file changed
+8
+8
View File
@@ -96,6 +96,14 @@ class Qt < Formula
cd prefix do
ln_s lib, "Frameworks"
end
# The pkg-config files installed suggest that geaders can be found in the
# `include` directory. Make this so by creating symlinks from `include` to
# the Frameworks' Headers folders.
Pathname.glob(lib + '*.framework/Headers').each do |path|
framework_name = File.basename(File.dirname(path), '.framework')
ln_s path.realpath, include+framework_name
end
end
def caveats