summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorSaravan Pantham <pantham1@surface86.llnl.gov>2015-02-18 18:05:57 -0800
committerSaravan Pantham <pantham1@surface86.llnl.gov>2015-02-18 18:05:57 -0800
commit14e70ad68959097bcfa4bda38cbafe8d1e71127b (patch)
treecf3feadf999887d6a7b0507a9318cf647cc1d4bd /var
parent02e316e7724e8f39e69306f03bcbff1eaa12827c (diff)
downloadspack-14e70ad68959097bcfa4bda38cbafe8d1e71127b.tar.gz
spack-14e70ad68959097bcfa4bda38cbafe8d1e71127b.tar.bz2
spack-14e70ad68959097bcfa4bda38cbafe8d1e71127b.tar.xz
spack-14e70ad68959097bcfa4bda38cbafe8d1e71127b.zip
Added netcdf package support.
Diffstat (limited to 'var')
-rw-r--r--var/spack/packages/netcdf/package.py28
1 files changed, 28 insertions, 0 deletions
diff --git a/var/spack/packages/netcdf/package.py b/var/spack/packages/netcdf/package.py
new file mode 100644
index 0000000000..34284ea725
--- /dev/null
+++ b/var/spack/packages/netcdf/package.py
@@ -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")