opencv: enable experimental opencl gpu module via option

Closes Homebrew/homebrew#16474.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
saskathex 2012-12-08 07:53:57 +01:00 committed by Adam Vandenberg
parent df83da38f3
commit f9be547b88

View file

@ -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