summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/sbp/package.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/sbp/package.py b/var/spack/repos/builtin/packages/sbp/package.py
new file mode 100644
index 0000000000..cc031f7f99
--- /dev/null
+++ b/var/spack/repos/builtin/packages/sbp/package.py
@@ -0,0 +1,27 @@
+# Copyright 2013-2021 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)
+
+from spack import *
+
+
+class Sbp(CMakePackage):
+ """Library providing an API for Piksi GNSS devices."""
+
+ homepage = 'https://github.com/swift-nav/libsbp'
+ git = 'https://github.com/swift-nav/libsbp'
+
+ maintainers = ['jayvdb']
+
+ version('3.4.10', tag='v3.4.10', submodules=True)
+
+ root_cmakelists_dir = 'c'
+
+ def cmake_args(self):
+ args = [
+ self.define('BUILD_SHARED_LIBS', 'ON'),
+ self.define('libsbp_ENABLE_TESTS', 'OFF'),
+ self.define('libsbp_ENABLE_DOCS', 'OFF'),
+ ]
+ return args