summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2020-12-29 04:18:34 -0600
committerGitHub <noreply@github.com>2020-12-29 11:18:34 +0100
commit03844b581a6ceedcbaf7cbb86babf10615caf2b7 (patch)
tree0849f5c3a9ed570ee748417ee8eabfebce0844e2
parent50e95011247acf9633e638b3e5cb4100b3f620e3 (diff)
downloadspack-03844b581a6ceedcbaf7cbb86babf10615caf2b7.tar.gz
spack-03844b581a6ceedcbaf7cbb86babf10615caf2b7.tar.bz2
spack-03844b581a6ceedcbaf7cbb86babf10615caf2b7.tar.xz
spack-03844b581a6ceedcbaf7cbb86babf10615caf2b7.zip
OpenVSLAM: add new package (#20389)
-rw-r--r--var/spack/repos/builtin/packages/openvslam/package.py33
1 files changed, 33 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/openvslam/package.py b/var/spack/repos/builtin/packages/openvslam/package.py
new file mode 100644
index 0000000000..7eaba18939
--- /dev/null
+++ b/var/spack/repos/builtin/packages/openvslam/package.py
@@ -0,0 +1,33 @@
+# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+
+class Openvslam(CMakePackage):
+ """OpenVSLAM is a monocular, stereo, and RGBD visual SLAM system."""
+
+ homepage = "https://openvslam.readthedocs.io/"
+ git = "https://github.com/xdspacelab/openvslam.git"
+
+ version('master', branch='master')
+
+ # https://openvslam.readthedocs.io/en/master/installation.html
+ depends_on('cmake@3.1:', type='build')
+ depends_on('eigen@3.3.0:')
+ depends_on('g2o')
+ depends_on('dbow2@shinsumicco')
+ depends_on('yaml-cpp@0.6.0:')
+ depends_on('opencv@3.3.1:+core+imgcodecs+videoio+features2d+calib3d+highgui')
+ depends_on('pangolin')
+
+ patch('https://github.com/xdspacelab/openvslam/commit/eeb58880443700fd79688d9646fd633c42fa60eb.patch',
+ sha256='131159b0042300614d039ceb3538defe4d302b59dc748b02287fc8ff895e6bbd')
+
+ @run_after('install')
+ def post_install(self):
+ # https://github.com/xdspacelab/openvslam/issues/501
+ mkdir(self.prefix.bin)
+ with working_dir(self.build_directory):
+ install('run_*', self.prefix.bin)
+ install(join_path('lib*', 'libpangolin_viewer.*'), self.prefix.lib)