blob: 0d72a46fc294ff0183472401f6fbf1fd19640ee6 (
plain) (
tree)
|
|
# 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 Openlibm(MakefilePackage):
"""OpenLibm is an effort to have a high quality, portable, standalone C
mathematical library"""
homepage = "https://github.com/JuliaMath/openlibm"
url = "https://github.com/JuliaMath/openlibm/archive/refs/tags/v0.8.0.tar.gz"
maintainers = ['haampie']
version('0.8.0', sha256='03620768df4ca526a63dd675c6de95a5c9d167ff59555ce57a61c6bf49e400ee')
version('0.7.5', sha256='be983b9e1e40e696e8bbb7eb8f6376d3ca0ae675ae6d82936540385b0eeec15b')
def make(self, spec, prefix):
args = [
'prefix={0}'.format(prefix),
'USE_GCC={0}'.format('1' if self.compiler.name == 'gcc' else '0'),
'USE_CLANG={0}'.format('1' if self.compiler.name == 'clang' else '0')
]
make(*args)
def install(self, spec, prefix):
args = [
'prefix={0}'.format(prefix),
]
make('install', *args)
|