From d0bb88a4ce974ce68d7a123116ec4e8ad230b52b Mon Sep 17 00:00:00 2001 From: saskathex Date: Sat, 8 Dec 2012 07:53:57 +0100 Subject: opencv: enable experimental opencl gpu module via option Closes #16474. Signed-off-by: Adam Vandenberg --- Library/Formula/opencv.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Library') diff --git a/Library/Formula/opencv.rb b/Library/Formula/opencv.rb index 1a9bb3813..e82bbf76e 100644 --- a/Library/Formula/opencv.rb +++ b/Library/Formula/opencv.rb @@ -16,6 +16,7 @@ class Opencv < Formula option '32-bit' option 'with-qt', 'Build the Qt4 backend to HighGUI' option 'with-tbb', 'Enable parallel code in OpenCV using Intel TBB' + option 'with-opencl', 'Enable gpu code in OpenCV using OpenCL' depends_on 'cmake' => :build depends_on 'pkg-config' => :build @@ -50,6 +51,7 @@ class Opencv < Formula end args << '-DWITH_QT=ON' if build.include? 'with-qt' args << '-DWITH_TBB=ON' if build.include? 'with-tbb' + args << '-DWITH_OPENCL=ON' if build.include? 'with-opencl' # The CMake `FindPythonLibs` Module is dumber than a bag of hammers when # more than one python installation is available---for example, it clings -- cgit v1.2.3