diff options
Diffstat (limited to 'gis/OTB/OTB.SlackBuild')
-rw-r--r-- | gis/OTB/OTB.SlackBuild | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/gis/OTB/OTB.SlackBuild b/gis/OTB/OTB.SlackBuild index 54837333d5d33..d0c39f75978b3 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 @@ -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,13 +90,12 @@ 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 \ @@ -109,9 +106,9 @@ cd build -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 \ .. |