diff options
Diffstat (limited to 'gis/gdal/gdal.SlackBuild')
-rw-r--r-- | gis/gdal/gdal.SlackBuild | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/gis/gdal/gdal.SlackBuild b/gis/gdal/gdal.SlackBuild index 2973ebf43c..d0e34fb3c4 100644 --- a/gis/gdal/gdal.SlackBuild +++ b/gis/gdal/gdal.SlackBuild @@ -25,7 +25,7 @@ # Maintained by David Spencer <baildon.research@googlemail.com> PRGNAM=gdal -VERSION=${VERSION:-2.2.4} +VERSION=${VERSION:-2.3.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -71,20 +71,23 @@ 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 {} \; -# OpenCL, webp, Spatialite and Grass support need special arrangements. -# Everything else is handled automatically by configure. +# zstd, webp, OpenCL, Spatialite, Grass support via $WITHLIST +# (everything else is handled automatically by configure) WITHLIST="" -# Request OpenCL support: -if [ ${OPENCL:-no} = "yes" ]; then - WITHLIST+=" --with-opencl" +if pkg-config --exists zstd; then + WITHLIST+=" --with-zstd" fi -# Request webp support if it's installed: if pkg-config --exists libwebp; then WITHLIST+=" --with-webp" fi +# OpenCL support if requested: +if [ ${OPENCL:-no} = "yes" ]; then + WITHLIST+=" --with-opencl" +fi + # Spatialite support in gdal optionally has a circular dependency # via the postgis 'liblwgeom' library (postgis depends on gdal). # Here is an undocumented option to request Spatialite support, @@ -128,7 +131,7 @@ CXXFLAGS="$SLKCFLAGS" \ --with-liblzma \ --with-curl=/usr/bin/curl-config \ --without-grib \ - --with-static-proj4 \ + --with-proj \ --with-mysql \ --with-python \ --with-poppler \ @@ -160,10 +163,9 @@ find $PKG/usr/man -type f -exec gzip -9 {} \; for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done make -f GNUmakefile -B docs -# --docdir is ignored :-( make install-docs DESTDIR=$PKG INST_DOCS=/usr/doc/$PRGNAM-$VERSION cp -a \ - COMMITERS HOWTO-RELEASE LICENSE.TXT NEWS PROVENANCE.TXT VERSION \ + COMMITTERS HOWTO-RELEASE LICENSE.TXT MIGRATION_GUIDE.TXT NEWS PROVENANCE.TXT VERSION \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |