summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Spencer <baildon.research@googlemail.com>2017-11-17 15:25:05 +0000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-11-18 12:40:32 +0700
commit40814027df5f2c48608d5e3b1cd39361e6c99ea6 (patch)
treee57a65b5e8770860060f0ce12a2de2740180b9dd
parent624af05ba78831b7f62e5992d5cbb2b64debf688 (diff)
downloadslackbuilds-40814027df5f2c48608d5e3b1cd39361e6c99ea6.tar.gz
libraries/netcdf: Updated for version 4.5.0.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
-rw-r--r--libraries/netcdf/README19
-rw-r--r--libraries/netcdf/netcdf.SlackBuild9
-rw-r--r--libraries/netcdf/netcdf.info6
3 files changed, 27 insertions, 7 deletions
diff --git a/libraries/netcdf/README b/libraries/netcdf/README
index 6f3710b87b..61374e1929 100644
--- a/libraries/netcdf/README
+++ b/libraries/netcdf/README
@@ -8,8 +8,21 @@ the creation, access, and sharing of scientific data.
Optional HDF4 support
---------------------
-If you need support for reading HDF4 files, please build and install the 'hdf'
-package from SlackBuilds.org, and then pass the option 'HDF4=yes' to the netcdf
-SlackBuild, for example
+If you need support for reading HDF4 files, please build and install
+the 'hdf' package from SlackBuilds.org, and then pass the option
+'HDF4=yes' to the netcdf SlackBuild, for example
HDF4=yes ./netcdf.SlackBuild
+
+Optional CDF5 support
+---------------------
+
+CDF5 support is not yet enabled by default. According to the release
+notes [1], reading and writing CDF5 files on 32-bit platforms may
+result in unexpected behavior when using extremely large variables. If
+you need CDF5 support, please pass the option 'CDF5=yes' to the netcdf
+SlackBuild, for example
+
+ CDF5=yes ./netcdf.SlackBuild
+
+[1] https://www.unidata.ucar.edu/software/netcdf/docs/RELEASE_NOTES.html
diff --git a/libraries/netcdf/netcdf.SlackBuild b/libraries/netcdf/netcdf.SlackBuild
index 1b4f6d4dc6..50c04c5b56 100644
--- a/libraries/netcdf/netcdf.SlackBuild
+++ b/libraries/netcdf/netcdf.SlackBuild
@@ -26,7 +26,7 @@
PRGNAM=netcdf
SRCNAM=netcdf-c
-VERSION=${VERSION:-4.4.1.1}
+VERSION=${VERSION:-4.5.0}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
@@ -79,6 +79,12 @@ else
hdf4opt=""
fi
+if [ "${CDF5:-no}" = 'yes' ]; then
+ cdf5opt="--enable-cdf5"
+else
+ cdf5opt=""
+fi
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@@ -93,6 +99,7 @@ CXXFLAGS="$SLKCFLAGS" \
--enable-netcdf-4 \
--enable-dap-netcdf \
${hdf4opt} \
+ ${cdf5opt} \
--build=$ARCH-slackware-linux
make
diff --git a/libraries/netcdf/netcdf.info b/libraries/netcdf/netcdf.info
index a7c71e9de2..18c5d6c87b 100644
--- a/libraries/netcdf/netcdf.info
+++ b/libraries/netcdf/netcdf.info
@@ -1,8 +1,8 @@
PRGNAM="netcdf"
-VERSION="4.4.1.1"
+VERSION="4.5.0"
HOMEPAGE="http://www.unidata.ucar.edu/software/netcdf/"
-DOWNLOAD="https://github.com/Unidata/netcdf-c/archive/v4.4.1.1/netcdf-c-4.4.1.1.tar.gz"
-MD5SUM="9210fd5355bee868684d9b8f83064aa6"
+DOWNLOAD="https://github.com/Unidata/netcdf-c/archive/v4.5.0/netcdf-c-4.5.0.tar.gz"
+MD5SUM="a523ad253bd832efa632847940c2317e"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="hdf5"