mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-26 22:06:35 +01:00
gis/OTB: Updated for Slackware 15.
Signed-off-by: Benjamin Trigona-Harany <slackbuilds@jaxartes.net>
This commit is contained in:
parent
4af1f8c7d6
commit
65168847b6
2 changed files with 7 additions and 10 deletions
|
@ -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 \
|
||||
..
|
||||
|
|
|
@ -5,6 +5,6 @@ DOWNLOAD="https://github.com/orfeotoolbox/OTB/archive/7.2.0/OTB-7.2.0.tar.gz"
|
|||
MD5SUM="925a7bcf121c72a24dc99924c1a0c02a"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES="blas gdal ITK OpenSceneGraph muParser python3 ossim Shark tinyxml"
|
||||
REQUIRES="blas gdal ITK OpenSceneGraph muParser ossim Shark tinyxml"
|
||||
MAINTAINER="Benjamin Trigona-Harany"
|
||||
EMAIL="slackbuilds@jaxartes.net"
|
||||
|
|
Loading…
Reference in a new issue