diff options
author | David Spencer <idlemoor@slackbuilds.org> | 2016-08-07 12:40:05 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-08-07 18:55:39 +0700 |
commit | a3332fef11e22bdbae2a09b6f623e8c6a234019c (patch) | |
tree | 068e6bcd3fbefc54c591c999e23c98defd559f81 /libraries/netcdf/netcdf.SlackBuild | |
parent | 0b421052f1f34a5cd3739a89f2a47bb8ffcce122 (diff) | |
download | slackbuilds-a3332fef11e22bdbae2a09b6f623e8c6a234019c.tar.gz |
libraries/netcdf: Enable netcdf-4 support.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'libraries/netcdf/netcdf.SlackBuild')
-rw-r--r-- | libraries/netcdf/netcdf.SlackBuild | 12 |
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 |