diff options
author | ArTourter <artourter@gmail.com> | 2022-07-08 17:33:07 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-07-09 10:06:14 +0700 |
commit | 0d022089036ce46b186e8793b84de64d4ba5f63f (patch) | |
tree | 00472be25978b1616e2cd574988953462ce0613f /gis/gdal/gdal.SlackBuild | |
parent | 3e8057147f7fd0de4edddd9c0d4ecdce531a0abc (diff) |
gis/gdal: Updated for version 3.5.1.
- disable build testing by default
- add flag to build testing components and run make test
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/gdal.SlackBuild')
-rw-r--r-- | gis/gdal/gdal.SlackBuild | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gis/gdal/gdal.SlackBuild b/gis/gdal/gdal.SlackBuild index 73bf7dd379edd..f1bc0a03d3404 100644 --- a/gis/gdal/gdal.SlackBuild +++ b/gis/gdal/gdal.SlackBuild @@ -29,7 +29,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=gdal -VERSION=${VERSION:-3.5.0} +VERSION=${VERSION:-3.5.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -70,6 +70,10 @@ fi set -e +if [[ ${TESTBUILD:='NO'} == 'NO' ]]; then + TESTBUILDFLAGS='-DBUILD_TESTING=OFF' +fi + rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP @@ -115,9 +119,11 @@ mkdir build -DGDAL_USE_GEOTIFF_INTERNAL=ON \ -DGDAL_USE_TIFF_INTERNAL=ON \ $WITHLIST \ + $TESTBUILDFLAGS \ -DCMAKE_BUILD_TYPE=Release \ .. make + [[ $TESTBUILD == "YES" ]] && make test make install/strip DESTDIR=$PKG ) |