summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/sbp/package.py
blob: 5f04622bb744a180326761f90cc49ce31b4357b9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Copyright 2013-2023 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.package 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