aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMike McQuaid2010-11-18 05:56:57 +0000
committerMike McQuaid2010-11-18 06:00:08 +0000
commitf52724113b577bc5218e8bdcbe0fad5b73f8b700 (patch)
tree0a1f9e1843631880c8d5bfff8b904ad2e7db6830 /Library/Formula
parent7d30dd833f59d8cfb5080a5cdf02e9fa2f44af0b (diff)
downloadhomebrew-f52724113b577bc5218e8bdcbe0fad5b73f8b700.tar.bz2
Add option to build Qt demos and examples.
I actually end up using these quite often so I thought I'd add them.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/qt.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/Library/Formula/qt.rb b/Library/Formula/qt.rb
index a0af9cfee..eb570a8a6 100644
--- a/Library/Formula/qt.rb
+++ b/Library/Formula/qt.rb
@@ -10,6 +10,7 @@ class Qt <Formula
[
['--with-qtdbus', "Enable QtDBus module."],
['--with-qt3support', "Enable deprecated Qt3Support module."],
+ ['--with-demos-examples', "Enable Qt demos and examples."],
]
end
@@ -24,7 +25,6 @@ class Qt <Formula
def install
args = ["-prefix", prefix,
"-system-libpng", "-system-zlib",
- "-nomake", "demos", "-nomake", "examples",
"-release", "-cocoa",
"-confirm-license", "-opensource",
"-fast"]
@@ -47,6 +47,10 @@ class Qt <Formula
args << "-no-qt3support"
end
+ unless ARGV.include? '--with-demos-examples'
+ args << "-nomake" << "demos" << "-nomake" << "examples"
+ end
+
if Qt.x11?
args << "-L/usr/X11R6/lib"
args << "-I/usr/X11R6/include"