summaryrefslogtreecommitdiffstats
path: root/gis/OTB/OTB.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'gis/OTB/OTB.SlackBuild')
-rw-r--r--gis/OTB/OTB.SlackBuild23
1 files changed, 11 insertions, 12 deletions
diff --git a/gis/OTB/OTB.SlackBuild b/gis/OTB/OTB.SlackBuild
index 54837333d5..eb833b472c 100644
--- a/gis/OTB/OTB.SlackBuild
+++ b/gis/OTB/OTB.SlackBuild
@@ -2,7 +2,7 @@
# SlackBuild script for OTB
-# Copyright 2014-2020 Benjamin Trigona-Harany <slackbuilds@jaxartes.net>
+# Copyright 2014-2021 Benjamin Trigona-Harany <slackbuilds@jaxartes.net>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@@ -25,7 +25,7 @@
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=OTB
-VERSION=${VERSION:-7.2.0}
+VERSION=${VERSION:-7.3.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -71,8 +71,6 @@ 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 {} \;
-sed -i "s/VERSION 3.10.2/VERSION 2.5.2/" \
- CMakeLists.txt
sed -i "s/lib\b/lib${LIBDIRSUFFIX}/" \
CMakeLists.txt \
CMake/OTBModuleExternal.cmake \
@@ -92,26 +90,27 @@ MONTEVERDI=${MONTEVERDI:-OFF}
BUILD_MONTEVERDI="-DOTB_USE_QWT=$MONTEVERDI -DOTB_USE_GLEW=$MONTEVERDI -DOTB_USE_OPENGL=$MONTEVERDI"
BUILD_QT="-DOTB_USE_QT=${QTGUI:-ON}"
-# TODO: set WRAP_PYTHON=ON when cmake is upgraded
mkdir -p build
cd build
cmake \
- -DCMAKE_BUILD_TYPE:STRING=Release \
- -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
- -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_C_FLAGS="$SLKCFLAGS" \
+ -DCMAKE_CXX_FLAGS="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_EXAMPLES=OFF \
-DBUILD_TESTING=OFF \
-DOTB_USE_CURL=ON \
- -DOTB_USE_LIBKML=OFF \
+ -DOTB_USE_GLUT=ON \
+ -DOTB_USE_GSL=ON \
+ -DOTB_USE_LIBKML=ON \
-DOTB_USE_MUPARSER=ON \
- -DOTB_USE_OPENCV=${OPENCV:-OFF} \
+ -DOTB_USE_OPENCV=ON \
-DOTB_USE_OPENMP=ON \
-DOTB_USE_SHARK=ON \
-DOTB_INSTALL_PYTHON_DIR=$(python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())") \
- -DOTB_WRAP_PYTHON=OFF \
+ -DOTB_WRAP_PYTHON=ON \
-DOTB_INSTALL_DOC_DIR=doc/$PRGNAM-$VERSION \
- -DGDAL_CONFIG_CHECKING:BOOL=OFF \
+ -DGDAL_CONFIG_CHECKING=OFF \
$BUILD_MONTEVERDI \
$BUILD_QT \
..