summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/bmi/package.py
blob: a41619182a658997c3a98d0ea4642837dfa17c64 (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
# Copyright 2013-2019 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 Bmi(AutotoolsPackage):
    """a communications framework and network abstraction layer"""

    homepage = 'https://xgitlab.cels.anl.gov/sds/bmi'
    git = 'https://xgitlab.cels.anl.gov/sds/bmi.git'

    version('develop', branch='master')

    depends_on('autoconf', type='build')

    # need to override 'autoreconf' so we can run BMI's 'prepare' script
    def autoreconf(self, spec, prefix):
        Executable('./prepare')()

    def configure_args(self):
        args = ["--enable-shared", "--enable-bmi-only"]
        return args