diff options
Diffstat (limited to 'gis/OTB/OTB.SlackBuild')
-rw-r--r-- | gis/OTB/OTB.SlackBuild | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gis/OTB/OTB.SlackBuild b/gis/OTB/OTB.SlackBuild index a46f312b8b69e..b987864eb1075 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 \ .. |