blob: 5a64f8d1490abcb44160e64e77c65ef71de026a9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
|
# Maintainer: Argyros Argyridis <arargyridis@gmail.com>
# Contributor: Samuel Mesa <samuelmesa@linuxmail.org>
# Contributor: Tu Yu-Hsuan <dobe0331@gmail.com>
pkgname=orfeo-toolbox
pkgver=9.1.0
_pkgver=9.1
pkgrel=1
pkgdesc="ORFEO Toolbox (OTB) is an open source library of image processing algorithms"
arch=(x86_64 i686)
url="http://www.orfeo-toolbox.org"
license=('CeCILL')
groups=()
depends=('gdal' 'cblas' 'freeglut' 'curl' 'fftw' 'tinyxml' 'muparser' 'muparserx' 'python' 'boost' 'lapack' 'hdf5' 'insight-toolkit4' 'libsvm' 'opencv>=3' 'openmpi' 'libkml')
makedepends=('git' 'swig' 'cmake')
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("${pkgname}-${pkgver}.tar.gz::https://www.orfeo-toolbox.org/packages/OTB-$pkgver.tar.gz"
"package.patch"
"git+https://github.com/jmichel-otb/GKSVM.git")
noextract=()
md5sums=('5755c0f319ab374e3b433d1b15c96149'
'bd00bd7eb67a29635a4a2bc0b6682e29'
'SKIP')
_gitname="GKSVM"
prepare() {
## Module for monteverdi build
echo $srcdir
cd $srcdir/
cp -ra $srcdir/GKSVM $srcdir/Modules/Remote
#commenting version detection for FindMUParser.cmake since it causes an error
#sed -i '62 s/^/#/' $srcdir/CMake/FindMuParser.cmake
#sed -i '63 s/^/#/' $srcdir/CMake/FindMuParser.cmake
patch -Np1 -i ../package.patch
}
build() {
cd $srcdir/
if [ -d "$srcdir/build/" ]; then
rm -rf $srcdir/build/
fi
mkdir $srcdir/build/
cd $srcdir/build
cmake ../ \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_EXAMPLES=OFF \
-DBUILD_TESTING=OFF \
-DOTB_USE_CURL=ON \
-DOTB_WRAP_PYTHON=ON \
-DBUILD_SHARED_LIBS=ON \
-DOTBGroup_FeaturesExtraction=ON \
-DOTBGroup_Hyperspectral=ON \
-DOTBGroup_Learning=OFF \
-DOTBGroup_Miscellaneous=ON \
-DOTBGroup_Remote=ON \
-DOTBGroup_SAR=ON \
-DOTBGroup_Segmentation=ON \
-DOTBGroup_StereoProcessing=ON \
-DOTB_USE_OPENCV=ON \
-DOTB_USE_MUPARSER=ON \
-DOTB_USE_MUPARSERX=OFF \
-DOTB_USE_LIBKML=ON \
-DOTB_USE_LIBSVM=ON \
-DOTB_USE_OPENMP=ON \
-DOTB_USE_6S=OFF \
-DOTB_DATA_USE_LARGEINPUT=ON \
-DOTB_USE_SPTW=ON \
-DOTB_USE_SPTW=ON \
-DOTB_USE_SHARK=OFF \
-DITK_DIR=/opt/insight-toolkit4 \
-DCMAKE_PREFIX_PATH=/opt/insight-toolkit4 \
-DCMAKE_CXX_STANDARD=11 \
-DBoost_USE_STATIC_LIBS=OFF
make
}
package() {
# Install an ldconfig conf for Orfeo libs to be visible on the
# system. Arch runs `ldconfig' after install automatically:
echo "/usr/lib/otb
/usr/lib/otb/applications" > "${srcdir}/${pkgname}.conf"
install -D -m644 "${srcdir}/${pkgname}.conf" "${pkgdir}/etc/ld.so.conf.d/${pkgname}.conf"
cd "$srcdir/"build
make DESTDIR="$pkgdir" install
mkdir ${pkgdir}/usr/bin/tools/
install -D -m644 "$srcdir/build/post_install.sh" "${pkgdir}/usr/bin/tools/"
}
|