summaryrefslogtreecommitdiff
path: root/libraries/netcdf/netcdf.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/netcdf/netcdf.SlackBuild')
-rw-r--r--libraries/netcdf/netcdf.SlackBuild12
1 files changed, 10 insertions, 2 deletions
diff --git a/libraries/netcdf/netcdf.SlackBuild b/libraries/netcdf/netcdf.SlackBuild
index 96460017e0..02c14d7261 100644
--- a/libraries/netcdf/netcdf.SlackBuild
+++ b/libraries/netcdf/netcdf.SlackBuild
@@ -27,7 +27,7 @@
PRGNAM=netcdf
SRCNAM=netcdf-c
VERSION=${VERSION:-4.4.1}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -72,6 +72,12 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+if [ "${HDF4:-no}" = 'yes' ]; then
+ hdf4opt="--enable-hdf4"
+else
+ hdf4opt=""
+fi
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@@ -83,7 +89,9 @@ CXXFLAGS="$SLKCFLAGS" \
--datarootdir=/usr \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--enable-static=no \
- --disable-netcdf-4 \
+ --enable-netcdf-4 \
+ --enable-dap-netcdf \
+ ${hdf4opt} \
--build=$ARCH-slackware-linux
make