summaryrefslogtreecommitdiffstats
path: root/gis/OTB
diff options
context:
space:
mode:
Diffstat (limited to 'gis/OTB')
-rw-r--r--gis/OTB/OTB.SlackBuild39
-rw-r--r--gis/OTB/OTB.info8
-rw-r--r--gis/OTB/README4
3 files changed, 29 insertions, 22 deletions
diff --git a/gis/OTB/OTB.SlackBuild b/gis/OTB/OTB.SlackBuild
index 54837333d5..00e00ccb97 100644
--- a/gis/OTB/OTB.SlackBuild
+++ b/gis/OTB/OTB.SlackBuild
@@ -1,8 +1,8 @@
-#!/bin/sh
+#!/bin/bash
# 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
@@ -24,10 +24,13 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=OTB
-VERSION=${VERSION:-7.2.0}
+VERSION=${VERSION:-7.3.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -37,7 +40,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}
@@ -71,8 +81,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 +100,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 \
..
@@ -155,4 +164,4 @@ if [ "$MONTEVERDI" = "ON" ] ; then
fi
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/OTB/OTB.info b/gis/OTB/OTB.info
index 6d6fe86584..5fa635b0e0 100644
--- a/gis/OTB/OTB.info
+++ b/gis/OTB/OTB.info
@@ -1,10 +1,10 @@
PRGNAM="OTB"
-VERSION="7.2.0"
+VERSION="7.3.0"
HOMEPAGE="http://orfeo-toolbox.org/otb/"
-DOWNLOAD="https://github.com/orfeotoolbox/OTB/archive/7.2.0/OTB-7.2.0.tar.gz"
-MD5SUM="925a7bcf121c72a24dc99924c1a0c02a"
+DOWNLOAD="https://github.com/orfeotoolbox/OTB/archive/7.3.0/OTB-7.3.0.tar.gz"
+MD5SUM="8de334b5390c2a529f28fd6de2d54535"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="blas gdal ITK OpenSceneGraph muParser python3 ossim Shark tinyxml"
+REQUIRES="gdal ITK libkml OpenSceneGraph muParser ossim Shark tinyxml"
MAINTAINER="Benjamin Trigona-Harany"
EMAIL="slackbuilds@jaxartes.net"
diff --git a/gis/OTB/README b/gis/OTB/README
index 456ea30da3..a748c83b64 100644
--- a/gis/OTB/README
+++ b/gis/OTB/README
@@ -14,7 +14,5 @@ A QT application launcher will be built by default. Set QTGUI=OFF to disable
it (note that disabling Qt support will also disable Monteverdi even if
MONTEVERDI is set to ON).
-OTB may use the following optional dependencies: opencv (use OPENCV=ON).
-
OTB will be built with support for the following packages if they are
-available at compile time: numpy and numpy3.
+available at compile time: numpy3.