blob: e7dfc0449edff497d45f529f46e96a9e1b07a974 (
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
|
# Maintainer : bartus <arch-user-repoᘓbartus.33mail.com>
_name=alice-vision
#fragment="#commit=5bea89263bf5f3ed623b8e6e6a5f022a0ed9c1de"
_fragment="#branch=develop"
pkgname=${_name}
pkgver=2.0.0.r8.g62c55519
pkgrel=1
pkgdesc="Photogrammetric Computer Vision Framework which provides a 3D Reconstruction and Camera Tracking algorithms"
arch=('i686' 'x86_64')
url="http://alicevision.github.io/"
license=('MPL2' 'MIT')
groups=()
depends=('openblas-lapack' 'gflags' 'glfw-x11' 'alembic' 'boost-libs' 'openexr' 'openimageio' 'opengv-git' 'flann' 'coin-or-coinutils' 'coin-or-clp' 'coin-or-lemon' 'coin-or-osi' 'google-glog')
makedepends=('boost' 'eigen' 'ceres-solver' 'cuda' 'git' 'cmake' 'magma')
source=("${pkgname}::git+https://github.com/alicevision/AliceVision.git${_fragment}"
"osi_clp::git+https://github.com/alicevision/osi_clp.git"
"ute_lib::git+https://github.com/alicevision/uncertaintyTE.git"
"geogram::git+https://github.com/alicevision/geogram.git"
)
md5sums=('SKIP'
'SKIP'
'SKIP'
'SKIP')
_CMAKE_FLAGS=(
-DCMAKE_INSTALL_PREFIX=/usr
-DCMAKE_INSTALL_LIBDIR=lib
-DEIGEN_INCLUDE_DIR_HINTS=/usr/include/eigen3
-DFLANN_INCLUDE_DIR_HINTS=/usr/include/flann
-DCOINUTILS_INCLUDE_DIR_HINTS=/usr/include/coin
-DLEMON_INCLUDE_DIR_HINTS=/usr/include/lemon
-DCLP_INCLUDE_DIR_HINTS=/usr/include/coin
-DOSI_INCLUDE_DIR_HINTS=/usr/include/coin
-DCERES_DIR=/usr/include/ceres
-DMAGMA_ROOT=/opt/magma
-DCUDA_HOST_COMPILER=/opt/cuda/bin/gcc
)
pkgver() {
cd "$pkgname"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd ${srcdir}/${pkgname}
git submodule init
git config submodule.src/dependencies/osi_clp.url ${srcdir}/osi_clp
git submodule update
}
build() {
cd ${srcdir}
msg2 "Build uncertaintyTE library"
mkdir -p ute_build && cd ute_build
cmake -DCMAKE_INSTALL_PREFIX=/ -DMAGMA_ROOT=/opt/magma ../ute_lib
make
make DESTDIR="../ute_bin" install
cd ..
msg2 "Build geogram library"
mkdir -p geogram_build && cd geogram_build
cmake -DCMAKE_INSTALL_PREFIX=/ -DGEOGRAM_LIB_ONLY=ON -DGEOGRAM_USE_SYSTEM_GLFW3=ON -DCMAKE_BUILD_TYPE:STRING=Debug -DVORPALINE_PLATFORM:STRING=Linux64-gcc-dynamic ../geogram
make
make DESTDIR="../geogram_bin" install
cd ..
# msg2 "Build Osi library"
# mkdir -p osi_build && cd osi_build
# cmake -DCMAKE_INSTALL_PREFIX=/ ../osi_clp
# make
# make DESTDIR="../osi_bin" install
# cd ..
msg2 "Build AliceVision library"
mkdir -p build && cd build
cmake ${_CMAKE_FLAGS[@]} -DUNCERTAINTYTE_DIR=${srcdir}/ute_bin -DGEOGRAM_INSTALL_PREFIX=${srcdir}/geogram_bin ../${pkgname}
make
}
package() {
msg2 "Install uncertaintyTE"
cd ${srcdir}/ute_build
make DESTDIR=${pkgdir}/usr install
msg2 "Install geogram"
cd ${srcdir}/geogram_build
make DESTDIR=${pkgdir}/usr install
cd ${srcdir}/build
make DESTDIR=${pkgdir} install
#fix conflict with openmvg
rm ${pkgdir}/usr/lib/libvlsift.a
}
# vim:set ts=2 sw=2 et:
|