
- remove the old LGPL license headers from all files in Spack - add SPDX headers to all files - core and most packages are (Apache-2.0 OR MIT) - a very small number of remaining packages are LGPL-2.1-only
34 lines
996 B
Python
34 lines
996 B
Python
# Copyright 2013-2018 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 NetcdfCxx4(AutotoolsPackage):
|
|
"""C++ interface for NetCDF4"""
|
|
homepage = "http://www.unidata.ucar.edu/software/netcdf"
|
|
url = "https://www.github.com/unidata/netcdf-cxx4/tarball/v4.3.0"
|
|
|
|
version('4.3.0', '0dde8b9763eecdafbd69d076e687337e')
|
|
version('4.2.1', 'd019853802092cf686254aaba165fc81')
|
|
|
|
depends_on('netcdf')
|
|
|
|
depends_on('automake', type='build')
|
|
depends_on('autoconf', type='build')
|
|
depends_on('libtool', type='build')
|
|
|
|
force_autoreconf = True
|
|
|
|
def configure_args(self):
|
|
return ['CPPFLAGS=-I' + self.spec['netcdf'].prefix.include]
|
|
|
|
@property
|
|
def libs(self):
|
|
shared = True
|
|
return find_libraries(
|
|
'libnetcdf_c++4', root=self.prefix, shared=shared, recursive=True
|
|
)
|