opencv : Add optional jdk dependency
This commit is contained in:
parent
da2b695f93
commit
d3b97227a1
1 changed files with 6 additions and 1 deletions
|
@ -58,6 +58,8 @@ class Opencv(Package):
|
|||
variant('qt', default=False, description='Activates support for QT')
|
||||
variant('python', default=False,
|
||||
description='Enables the build of Python extensions')
|
||||
variant('java', default=False,
|
||||
description='Activates support for Java')
|
||||
|
||||
depends_on('zlib')
|
||||
depends_on('libpng')
|
||||
|
@ -69,6 +71,7 @@ class Opencv(Package):
|
|||
depends_on('gtkplus', when='+gtk')
|
||||
depends_on('vtk', when='+vtk')
|
||||
depends_on('qt', when='+qt')
|
||||
depends_on('jdk', when='+java')
|
||||
|
||||
depends_on('py-numpy', when='+python')
|
||||
|
||||
|
@ -91,7 +94,9 @@ def install(self, spec, prefix):
|
|||
'-DWITH_QT:BOOL={0}'.format((
|
||||
'ON' if '+qt' in spec else 'OFF')),
|
||||
'-DWITH_VTK:BOOL={0}'.format((
|
||||
'ON' if '+vtk' in spec else 'OFF'))
|
||||
'ON' if '+vtk' in spec else 'OFF')),
|
||||
'-DBUILD_opencv_java:BOOL={0}'.format((
|
||||
'ON' if '+java' in spec else 'OFF')),
|
||||
])
|
||||
|
||||
if '+gtk' not in spec:
|
||||
|
|
Loading…
Reference in a new issue