From 2c2228df59215dd0fb3cc0676b88be043ccd8b59 Mon Sep 17 00:00:00 2001 From: Phil Carns Date: Fri, 3 May 2019 02:11:31 -0500 Subject: add BMI package (#11310) - also enable optional dependency in Mercury --- var/spack/repos/builtin/packages/bmi/package.py | 25 ++++++++++++++++++++++ .../repos/builtin/packages/mercury/package.py | 2 +- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 var/spack/repos/builtin/packages/bmi/package.py (limited to 'var') diff --git a/var/spack/repos/builtin/packages/bmi/package.py b/var/spack/repos/builtin/packages/bmi/package.py new file mode 100644 index 0000000000..4d31890bc5 --- /dev/null +++ b/var/spack/repos/builtin/packages/bmi/package.py @@ -0,0 +1,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 = 'http://git.mcs.anl.gov/bmi.git/' + git = 'git://git.mcs.anl.gov/bmi' + + 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 diff --git a/var/spack/repos/builtin/packages/mercury/package.py b/var/spack/repos/builtin/packages/mercury/package.py index bfa45491c9..f25d250ec8 100644 --- a/var/spack/repos/builtin/packages/mercury/package.py +++ b/var/spack/repos/builtin/packages/mercury/package.py @@ -34,8 +34,8 @@ class Mercury(CMakePackage): description='Enable udreg on supported Cray platforms') depends_on('cmake@2.8.12.2:', type='build') - # depends_on('bmi', when='+bmi') # TODO: add BMI package # depends_on('cci', when='+cci') # TODO: add CCI package + depends_on('bmi', when='+bmi') depends_on('mpi', when='+mpi') depends_on('libfabric@1.5:', when='+ofi') depends_on('openpa@1.0.3:', when='+opa') -- cgit v1.2.3-70-g09d2