Skip to content

Commit

Permalink
Merge pull request #12229 from lexming/20210222160535_new_pr_OpenCV341
Browse files Browse the repository at this point in the history
{vis}[foss/2018a] opencv_contrib v3.4.1: rename and update to OpenCV v3.4.1 with contrib versionsuffix
  • Loading branch information
verdurin authored Feb 25, 2021
2 parents 196865e + 637a149 commit 65b0d3a
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 100 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name = 'OpenCV'
version = '3.4.1'
versionsuffix = '-Python-%(pyver)s-contrib'

homepage = 'https://opencv.org/'
description = """OpenCV (Open Source Computer Vision Library) is an open source computer vision
and machine learning software library. OpenCV was built to provide
a common infrastructure for computer vision applications and to accelerate
the use of machine perception in the commercial products.
Includes extra modules for OpenCV from the contrib repository."""

toolchain = {'name': 'foss', 'version': '2018a'}

source_urls = [
'https://github.com/Itseez/opencv/archive/',
# The Hash is version dependent! see 3rdparty/ippicv/downloader.cmake
'https://raw.githubusercontent.com/Itseez/opencv_3rdparty/dfe3162c237af211e98b8960018b564bc209261d/ippicv',
'https://github.com/opencv/',
]
sources = [
'%(version)s.zip',
{'filename': 'ippicv_2017u3_lnx_intel64_general_20170822.tgz', 'extract_cmd': "cp %s %(builddir)s"},
# Make sure eb downloads the opencv_contrib source instead of twice the OpenCV source
{'download_filename': 'opencv_contrib/archive/%(version)s.tar.gz', 'filename': SOURCE_TAR_GZ},
]
checksums = [
'24bda432eaace9e992322dcc3d30144cefa5314c2424d4aa02e5fe3fa9dd17bd', # 3.4.1.zip
# ippicv_2017u3_lnx_intel64_general_20170822.tgz
'9a4b14a24d31768c3ead0720f27d55dcf80723b5ba1cd8903bed1fd69f1b9e2e',
'298c69ee006d7675e1ff9d371ba8b0d9e7e88374bb7ba0f9d0789851d352ec6e', # opencv_contrib-3.4.1.tar.gz
]

builddependencies = [
('CMake', '3.10.2'),
]

dependencies = [
('Python', '3.6.4'),
('zlib', '1.2.11'),
('FFmpeg', '3.4.2'),
('libjpeg-turbo', '1.5.3'),
('libpng', '1.6.34'),
('LibTIFF', '4.0.9'),
('JasPer', '2.0.14'),
('Java', '1.8.0_162', '', True),
('ant', '1.10.1', '-Java-%(javaver)s', True),
('GLib', '2.54.3'),
('GTK+', '2.24.32'),
]

configopts = '-DOPENCV_EXTRA_MODULES_PATH=%(builddir)s/%(namelower)s_contrib-%(version)s/modules'

enhance_sanity_check = True

local_contrib_libs = [
'aruco', 'bgsegm', 'bioinspired', 'ccalib', 'datasets', 'dnn_objdetect', 'dpm', 'face', 'freetype', 'fuzzy', 'hfs',
'img_hash', 'line_descriptor', 'optflow', 'phase_unwrapping', 'plot', 'reg', 'rgbd', 'saliency', 'shape', 'stereo',
'structured_light', 'superres', 'surface_matching', 'text', 'tracking', 'videostab', 'xfeatures2d', 'ximgproc',
'xobjdetect', 'xphoto'
]

sanity_check_paths = {
'files': ['lib64/libopencv_%s.%s' % (l, SHLIB_EXT) for l in local_contrib_libs],
'dirs': [],
}
moduleclass = 'vis'

This file was deleted.

0 comments on commit 65b0d3a

Please sign in to comment.