Skip to content

Commit

Permalink
{vis}[foss/2020b] OpenCV v4.5.1 (incl. opencv-contrib)
Browse files Browse the repository at this point in the history
  • Loading branch information
boegel committed Feb 24, 2021
1 parent 4f2df64 commit 00733a7
Show file tree
Hide file tree
Showing 3 changed files with 127 additions and 0 deletions.
27 changes: 27 additions & 0 deletions easybuild/easyconfigs/a/ant/ant-1.10.9-Java-11.eb
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
easyblock = 'PackedBinary'

name = 'ant'
version = '1.10.9'
versionsuffix = '-Java-%(javaver)s'

homepage = 'https://ant.apache.org/'
description = """Apache Ant is a Java library and command-line tool whose mission is to drive processes described in
build files as targets and extension points dependent upon each other. The main known usage of Ant is the build of
Java applications."""

toolchain = SYSTEM

source_urls = ['https://archive.apache.org/dist/ant/binaries/']
sources = ['apache-%(name)s-%(version)s-bin.tar.gz']
checksums = ['5f8a85ddee6effe79163aa54c7bef6b60305e37200dedc1986437fb5c072a9f3']

dependencies = [('Java', '11')]

sanity_check_paths = {
'files': ['bin/ant', 'lib/ant.jar'],
'dirs': [],
}

modextravars = {'ANT_HOME': '%(installdir)s'}

moduleclass = 'devel'
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name = 'OpenCV'
version = '4.5.1'
versionsuffix = '-Python-%(pyver)s-contrib'

# the hash is version dependent! see 3rdparty/ippicv/ippicv.cmake
local_ippicv_hash = 'a56b6ac6f030c312b2dce17430eef13aed9af274'

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': '2020b'}

sources = [
{'source_urls': ['https://github.com/opencv/opencv/archive/'],
'download_filename': '%(version)s.zip', 'filename': SOURCELOWER_ZIP},
{'source_urls': ['https://github.com/opencv/opencv_contrib/archive/'],
'download_filename': '%(version)s.zip', 'filename': '%(namelower)s_contrib-%(version)s.zip'},
{'source_urls': ['https://raw.githubusercontent.com/opencv/opencv_3rdparty/%s/ippicv' % local_ippicv_hash],
'filename': 'ippicv_2020_lnx_intel64_20191018_general.tgz', 'extract_cmd': "cp %s %(builddir)s"},
]
checksums = [
'5fbc26ee09e148a4d494b225d04217f7c913ca1a4d46115b70cca3565d7bbe05', # opencv-4.5.1.zip
'fdbd851985fd79797a04e16bdd672aff698aee89086b944295c90265f3cfffda', # opencv_contrib-4.5.1.zip
'08627fa5660d52d59309a572dd7db5b9c8aea234cfa5aee0942a1dd903554246', # ippicv_2020_lnx_intel64_20191018_general.tgz
]

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

dependencies = [
('Python', '3.8.6'),
('SciPy-bundle', '2020.11'), # for numpy
('zlib', '1.2.11'),
('FFmpeg', '4.3.1'),
('libjpeg-turbo', '2.0.5'),
('libpng', '1.6.37'),
('LibTIFF', '4.1.0'),
('libwebp', '1.1.0'),
('OpenEXR', '2.5.5'),
('JasPer', '2.0.24'),
('Java', '11', '', True),
('ant', '1.10.9', '-Java-%(javaver)s', True),
('GLib', '2.66.1'),
('GTK+', '3.24.23'),
('HDF5', '1.10.7'), # needed by hdf from contrib
]

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', 'dnn_superres', 'dpm', 'face', 'freetype',
'fuzzy', 'hdf', 'hfs', 'img_hash', 'line_descriptor', 'optflow', 'phase_unwrapping', 'plot', 'quality', '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'
31 changes: 31 additions & 0 deletions easybuild/easyconfigs/o/OpenEXR/OpenEXR-2.5.5-GCCcore-10.2.0.eb
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
easyblock = 'CMakeMake'

name = 'OpenEXR'
version = '2.5.5'

homepage = 'https://www.openexr.com/'
description = """OpenEXR is a high dynamic-range (HDR) image file format developed by Industrial Light & Magic
for use in computer imaging applications"""

toolchain = {'name': 'GCCcore', 'version': '10.2.0'}

source_urls = ['https://github.com/openexr/openexr/archive/']
sources = ['v%(version)s.tar.gz']
checksums = ['59e98361cb31456a9634378d0f653a2b9554b8900f233450f2396ff495ea76b3']

builddependencies = [
('binutils', '2.35'),
('CMake', '3.18.4'),
]

configopts = '-DOPENEXR_BUILD_PYTHON_LIBS=OFF'

sanity_check_paths = {
'files': ['lib/lib%s-%%(version_major)s_%%(version_minor)s.%s' % (x, SHLIB_EXT) for x in
['Half', 'Iex', 'IexMath', 'IlmImf', 'IlmImfUtil', 'IlmThread', 'Imath']] +
['bin/exr%s' % x for x in
['envmap', 'header', 'makepreview', 'maketiled', 'multipart', 'multiview', 'stdattr']],
'dirs': ['include/OpenEXR', 'share'],
}

moduleclass = 'vis'

0 comments on commit 00733a7

Please sign in to comment.