Merge pull request #19 from psaravan/develop
Added netcdf package support.
This commit is contained in:
commit
27e9bfb5aa
1 changed files with 28 additions and 0 deletions
28
var/spack/packages/netcdf/package.py
Normal file
28
var/spack/packages/netcdf/package.py
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
from spack import *
|
||||||
|
|
||||||
|
class Netcdf(Package):
|
||||||
|
"""NetCDF is a set of software libraries and self-describing, machine-independent
|
||||||
|
data formats that support the creation, access, and sharing of array-oriented
|
||||||
|
scientific data."""
|
||||||
|
|
||||||
|
homepage = "http://www.unidata.ucar.edu/software/netcdf/"
|
||||||
|
url = "ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-4.3.3.tar.gz"
|
||||||
|
|
||||||
|
version('4.3.3', '5fbd0e108a54bd82cb5702a73f56d2ae')
|
||||||
|
|
||||||
|
# Dependencies:
|
||||||
|
# >HDF5
|
||||||
|
depends_on("hdf5")
|
||||||
|
|
||||||
|
def install(self, spec, prefix):
|
||||||
|
configure(
|
||||||
|
"--prefix=%s" % prefix,
|
||||||
|
"--disable-dap", # Disable DAP.
|
||||||
|
"--disable-shared", # Don't build shared libraries (use static libs).
|
||||||
|
"CPPFLAGS=-I%s/include" % spec['hdf5'].prefix, # Link HDF5's include dir.
|
||||||
|
"LDFLAGS=-L%s/lib" % spec['hdf5'].prefix) # Link HDF5's lib dir.
|
||||||
|
|
||||||
|
make("install")
|
||||||
|
|
||||||
|
# Check the newly installed netcdf package. Currently disabled.
|
||||||
|
# make("check")
|
Loading…
Reference in a new issue