summaryrefslogtreecommitdiffstats
path: root/gis/gdal
diff options
context:
space:
mode:
Diffstat (limited to 'gis/gdal')
-rw-r--r--gis/gdal/README8
-rw-r--r--gis/gdal/gdal.SlackBuild48
-rw-r--r--gis/gdal/gdal.info12
3 files changed, 32 insertions, 36 deletions
diff --git a/gis/gdal/README b/gis/gdal/README
index c959862f44..184d0d4e82 100644
--- a/gis/gdal/README
+++ b/gis/gdal/README
@@ -10,9 +10,9 @@ provides a similar capability for simple features vector data.
The following optional requirements are detected automatically:
- cfitsio, freexl, hdf, hdf5, libkml, libwebp, netcdf,
- postgresql, python3, xerces-c
+ freexl, hdf, hdf5, libkml, netcdf, postgresql, xerces-c,
+ libspatialite, SFCGAL
To enable OpenCL GPU-accelerated performance, specify the option
-OPENCL=yes (requires opencl-headers to build, and either nvidia-driver
-or amd-app-sdk with suitable GPU hardware to run).
+OPENCL=yes (requires either nvidia-driver or amd-app-sdk with
+suitable GPU hardware to run).
diff --git a/gis/gdal/gdal.SlackBuild b/gis/gdal/gdal.SlackBuild
index bbe278050d..7b3cbf8bf3 100644
--- a/gis/gdal/gdal.SlackBuild
+++ b/gis/gdal/gdal.SlackBuild
@@ -1,8 +1,9 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for GDAL
# Copyright 2009 Marco Cecchetti <mrc.ild@gmail.com>
+# Updated 2019-2021 Benjamin Trigona-Harany <slackbuilds@jaxartes.net>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,10 +25,13 @@
#
# Maintained by David Spencer <baildon.research@googlemail.com>
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=gdal
-VERSION=${VERSION:-3.0.4}
+VERSION=${VERSION:-3.3.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -37,7 +41,14 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
+# the name of the created package would be, and then exit. This information
+# could be useful to other scripts.
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -85,14 +96,9 @@ if pkg-config --exists libwebp; then
WITHLIST+=" --with-webp"
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,
-# if you promise to be careful :-)
+# Spatialite support if package is installed:
if pkg-config --exists spatialite; then
- if [ ${SPATIALITE:-no} = "yes" ]; then
- WITHLIST+=" --with-spatialite"
- fi
+ WITHLIST+=" --with-spatialite"
fi
# Also, enabling Grass support in gdal introduces a circular dependency,
@@ -112,6 +118,8 @@ else
WITHLIST+=" --with-jpeg=/usr/lib${LIBDIRSUFFIX}"
fi
+# The CPPFLAGS are for the newer mariadb (thanks pprkut!)
+CPPFLAGS="-I/usr/include/mysql/server" \
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@@ -127,10 +135,11 @@ CXXFLAGS="$SLKCFLAGS" \
--with-libz=/usr/lib${LIBDIRSUFFIX} \
--with-liblzma \
--with-curl=/usr/bin/curl-config \
+ --with-crypto=yes \
--without-grib \
--with-static-proj4 \
--with-mysql \
- --with-python \
+ --with-python=/usr/bin/python3 \
--with-poppler \
--with-libtiff=internal \
--with-rename-internal-libtiff-symbols=yes \
@@ -143,23 +152,10 @@ CXXFLAGS="$SLKCFLAGS" \
make
make install DESTDIR=$PKG
-cd swig/python
- rm -rf build
- python3 setup.py build
- python3 setup.py install --root=$PKG --prefix=/usr
-cd - >/dev/null
-
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-make -f GNUmakefile -B man
-make install-man DESTDIR=$PKG
-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
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
COMMITTERS HOWTO-RELEASE LICENSE.TXT NEWS PROVENANCE.TXT VERSION \
$PKG/usr/doc/$PRGNAM-$VERSION
@@ -169,4 +165,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/gis/gdal/gdal.info b/gis/gdal/gdal.info
index 86514a9a92..a807162730 100644
--- a/gis/gdal/gdal.info
+++ b/gis/gdal/gdal.info
@@ -1,10 +1,10 @@
PRGNAM="gdal"
-VERSION="3.0.4"
+VERSION="3.3.0"
HOMEPAGE="https://www.gdal.org/"
-DOWNLOAD="https://download.osgeo.org/gdal/3.0.4/gdal-3.0.4.tar.xz"
-MD5SUM="8996bbee51e73b5a968d8d0f48895ac8"
+DOWNLOAD="https://download.osgeo.org/gdal/3.3.0/gdal-3.3.0.tar.xz"
+MD5SUM="000db27a7b3e146b9dcb3838aabde2ab"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="geos proj python3"
-MAINTAINER="David Spencer"
-EMAIL="baildon.research@googlemail.com"
+REQUIRES="geos proj"
+MAINTAINER="Benjamin Trigona-Harany"
+EMAIL="slackbuilds@jaxartes.net"