diff options
author | ArTourter <artourter@gmail.com> | 2022-05-20 20:35:04 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-05-28 09:11:26 +0700 |
commit | 4d0165cbdc30e44aecc9d19810568a7943b4cc48 (patch) | |
tree | a0cadbf203468046032088b1641e30c74c49d5f4 /gis/gdal | |
parent | 6be568def08cf1204eefb16ec5c23c4df8de8592 (diff) |
gis/gdal: Updated for version 3.5.0.
Shared library .so-version bump
Update build process to cmake (autotools deprecated)
Add option to build Java bindings
Add note for optional dependency for libheif in README
Signed-off-by: ArTourter <artourter@gmail.com>
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'gis/gdal')
-rw-r--r-- | gis/gdal/README | 5 | ||||
-rw-r--r-- | gis/gdal/gdal.SlackBuild | 106 | ||||
-rw-r--r-- | gis/gdal/gdal.info | 6 |
3 files changed, 44 insertions, 73 deletions
diff --git a/gis/gdal/README b/gis/gdal/README index 184d0d4e82ae8..1c419449499b0 100644 --- a/gis/gdal/README +++ b/gis/gdal/README @@ -11,8 +11,11 @@ provides a similar capability for simple features vector data. The following optional requirements are detected automatically: freexl, hdf, hdf5, libkml, netcdf, postgresql, xerces-c, - libspatialite, SFCGAL + libspatialite, SFCGAL, libheif To enable OpenCL GPU-accelerated performance, specify the option OPENCL=yes (requires either nvidia-driver or amd-app-sdk with suitable GPU hardware to run). + +To build JAVA bindings, specify JAVA=yes (it requires a java JDK and +ant). diff --git a/gis/gdal/gdal.SlackBuild b/gis/gdal/gdal.SlackBuild index 80fb903b2c544..73bf7dd379edd 100644 --- a/gis/gdal/gdal.SlackBuild +++ b/gis/gdal/gdal.SlackBuild @@ -3,8 +3,9 @@ # Slackware build script for GDAL # Copyright 2009 Marco Cecchetti <mrc.ild@gmail.com> -# Updated 2019-2021 Benjamin Trigona-Harany <slackbuilds@jaxartes.net> -# Updated 2021-2022 Gregory J. L. Tourte <artourter@gmail.com> +# Copyright 2010-2018 David Spencer <baildon.research@googlemail.com> +# Copyright 2019-2021 Benjamin Trigona-Harany <slackbuilds@jaxartes.net> +# Copyright 2021-2022 Gregory J. L. Tourte <artourter@gmail.com> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,12 +25,11 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # -# Maintained by David Spencer <baildon.research@googlemail.com> cd $(dirname $0) ; CWD=$(pwd) PRGNAM=gdal -VERSION=${VERSION:-3.4.3} +VERSION=${VERSION:-3.5.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -83,88 +83,56 @@ 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. WITHLIST="" # Request OpenCL support: if [ ${OPENCL:-no} = "yes" ]; then - WITHLIST+=" --with-opencl=yes" + WITHLIST+=" -DGDAL_USE_OPENCL=ON" fi -# Request webp support if it's installed: -if pkg-config --exists libwebp; then - WITHLIST+=" --with-webp=yes" +# Build JAVA bindings: +if [ ${JAVA:-no} = "no" ]; then + WITHLIST+=" -DBUILD_JAVA_BINDINGS:BOOL=OFF" fi -# Spatialite support if package is installed: -if pkg-config --exists spatialite; then - WITHLIST+=" --with-spatialite=yes" -fi - -# Also, enabling Grass support in gdal introduces a circular dependency, -# so here is another undocumented option. -if pkg-config --exists grass; then - if [ ${GRASS:-no} = "yes" ]; then - WITHLIST+=" --with-grass=$(pkg-config --variable=prefix grass)" - fi -fi - -# 12 bit JPEG support is handled by internal modified versions of libjpeg -# and libtiff, but this can cause segfaults in other software linked against -# the real libjpeg (eg. qgis calling qt). Enable JPEG12 only if you need it: -if [ ${JPEG12:-no} = "yes" ]; then - WITHLIST+=" --with-jpeg=internal" -else - WITHLIST+=" --with-jpeg=yes" -fi - -# The CPPFLAGS are for the newer mariadb (thanks pprkut!) -CPPFLAGS="-I/usr/include/mysql/server" \ -CFLAGS="$SLKCFLAGS" \ -CXXFLAGS="$SLKCFLAGS" \ -./configure \ - --prefix=/usr \ - --libdir=/usr/lib${LIBDIRSUFFIX} \ - --sysconfdir=/etc \ - --localstatedir=/var \ - --mandir=/usr/man \ - --docdir=/usr/doc/$PRGNAM-$VERSION \ - --enable-static=no \ - --with-threads=yes \ - --with-cpp14=yes \ - --without-libtool \ - --with-bash-completion \ - --with-geos=yes \ - --with-libz=yes \ - --with-liblzma=yes \ - --with-curl=yes \ - --with-crypto=yes \ - --with-mysql=yes \ - --with-python=/usr/bin/python3 \ - --with-poppler=yes \ - --with-libtiff=internal \ - --with-rename-internal-libtiff-symbols=yes \ - --with-geotiff=internal \ - --with-rename-internal-libgeotiff-symbols=yes \ - --with-jasper=no \ - $WITHLIST \ - --build=$ARCH-slackware-linux - -make -make install DESTDIR=$PKG +mkdir build + +# The MYSQL_INCLUDE_DIR is for the newer mariadb (thanks pprkut!) +( cd build + cmake \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_SYSCONFDIR=/etc \ + -DCMAKE_INSTALL_LOCALSTATEDIR=/var \ + -DCMAKE_INSTALL_LIBDIR=lib${LIBDIRSUFFIX} \ + -DCMAKE_INSTALL_DATAROOTDIR=share \ + -DCMAKE_INSTALL_MANDIR=man \ + -DCMAKE_INSTALL_DOCDIR=doc/$PRGNAM-$VERSION \ + -DBUILD_CSHARP_BINDINGS:BOOL=OFF \ + -DBUILD_SHARED_LIBS:BOOL=ON \ + -DMYSQL_INCLUDE_DIR=/usr/include/mysql/server \ + -DGDAL_USE_GEOTIFF_INTERNAL=ON \ + -DGDAL_USE_TIFF_INTERNAL=ON \ + $WITHLIST \ + -DCMAKE_BUILD_TYPE=Release \ + .. + make + make install/strip DESTDIR=$PKG +) find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true +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 + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ - COMMITTERS HOWTO-RELEASE LICENSE.TXT MIGRATION_GUIDE.TXT NEWS.md PROVENANCE.TXT VERSION \ + CITATION COMMITTERS HOWTO-RELEASE LICENSE.TXT MIGRATION_GUIDE.TXT NEWS.md PROVENANCE.TXT SECURITY.md VERSION \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -rm -f $PKG/usr/lib*/*.la - mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc diff --git a/gis/gdal/gdal.info b/gis/gdal/gdal.info index 33f25c57d0c0c..19a3d1be3410f 100644 --- a/gis/gdal/gdal.info +++ b/gis/gdal/gdal.info @@ -1,8 +1,8 @@ PRGNAM="gdal" -VERSION="3.4.3" +VERSION="3.5.0" HOMEPAGE="https://www.gdal.org/" -DOWNLOAD="https://github.com/OSGeo/gdal/releases/download/v3.4.3/gdal-3.4.3.tar.gz" -MD5SUM="7f2f9cc5105401f464087aa5041cdd23" +DOWNLOAD="https://github.com/OSGeo/gdal/releases/download/v3.5.0/gdal-3.5.0.tar.gz" +MD5SUM="1df31a62405e33eacceddf53a81fc136" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="geos proj" |