summaryrefslogtreecommitdiffstats
path: root/gis/OTB/OTB.SlackBuild
diff options
context:
space:
mode:
author Benjamin Trigona-Harany <slackbuilds@jaxartes.net>2019-11-10 18:48:34 -0800
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2019-11-23 16:01:56 +0700
commit8191cc531ee0a0c0b0cb42d8837ffdd2d7ee94ca (patch)
treef17543709d675dc23cc8803f83c64fbbfbd10f1e /gis/OTB/OTB.SlackBuild
parent7a2a4ef9c61bc2a55defe6bcd4400b0075dd9235 (diff)
downloadslackbuilds-8191cc531ee0a0c0b0cb42d8837ffdd2d7ee94ca.tar.gz
slackbuilds-8191cc531ee0a0c0b0cb42d8837ffdd2d7ee94ca.tar.xz
gis/OTB: Updated for version 7.0.0.
Diffstat (limited to 'gis/OTB/OTB.SlackBuild')
-rw-r--r--gis/OTB/OTB.SlackBuild10
1 files changed, 6 insertions, 4 deletions
diff --git a/gis/OTB/OTB.SlackBuild b/gis/OTB/OTB.SlackBuild
index a46f312b8b..b987864eb1 100644
--- a/gis/OTB/OTB.SlackBuild
+++ b/gis/OTB/OTB.SlackBuild
@@ -25,7 +25,7 @@
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=OTB
-VERSION=${VERSION:-6.6.2}
+VERSION=${VERSION:-7.0.0}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
@@ -71,12 +71,13 @@ 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 \
CMake/OTBStandaloneModuleMacros.cmake \
- CMake/OTBApplicationMacros.cmake \
- CMake/CPackFunctions.cmake
+ CMake/OTBApplicationMacros.cmake
sed -i '1i\using namespace std;' \
Modules/ThirdParty/OssimPlugins/src/gdal/*.cpp \
Modules/ThirdParty/OssimPlugins/src/ossim/*.{h,cpp} \
@@ -102,11 +103,12 @@ cd build
-DOTB_USE_OPENCV=${OPENCV:-OFF} \
-DOTB_USE_OPENMP=ON \
-DOTB_USE_SHARK=ON \
- -DOTB_WRAP_PYTHON=ON \
+ -DOTB_WRAP_PYTHON=OFF \ # needs newer cmake (?)
-DOTB_INSTALL_PYTHON_DIR=$(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())") \
-DOTB_WRAP_PYTHON3=ON \
-DOTB_INSTALL_PYTHON3_DIR=$(python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())") \
-DOTB_INSTALL_DOC_DIR=doc/$PRGNAM-$VERSION \
+ -DGDAL_CONFIG_CHECKING:BOOL=OFF \
$BUILD_MONTEVERDI \
$BUILD_QT \
..