aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAndreas Behr2012-01-05 22:31:30 +0000
committerMike McQuaid2012-01-05 22:31:31 +0000
commit5ef24b60ff1cd10048e9437138346b3aeb73e910 (patch)
tree465e1950dc5d94eea5d9bec179041dc5fccbc0cb /Library
parentcfbdf227e752b103ed27aa40925711855fa04487 (diff)
downloadhomebrew-5ef24b60ff1cd10048e9437138346b3aeb73e910.tar.bz2
Adds option to build opencv with the qt backend
See issue 9444 Closes #9445. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/opencv.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/Library/Formula/opencv.rb b/Library/Formula/opencv.rb
index 6f779fb18..fbe0229cf 100644
--- a/Library/Formula/opencv.rb
+++ b/Library/Formula/opencv.rb
@@ -33,13 +33,19 @@ class Opencv < Formula
DATA
end
+ depends_on 'qt' if ARGV.include? '--with-qt'
+
def options
- [["--32-bit", "Build 32-bit only."]]
+ [
+ ["--32-bit", "Build 32-bit only."],
+ ["--with-qt", "Build qt backend."]
+ ]
end
def install
args = std_cmake_parameters.split
args << "-DOPENCV_EXTRA_C_FLAGS='-arch i386 -m32'" if ARGV.build_32_bit?
+ args << "-DWITH_QT=ON" if ARGV.include? "--with-qt"
# The CMake `FindPythonLibs` Module is dumber than a bag of hammers when
# more than one python installation is available---for example, it clings