blob: 9691b90e96aa2999079e193b992bd8a998099f28 (
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
|
# Maintainer : bartus <arch-user-repoᘓbartus.33mail.com>
_name=alice-vision
#_fragment="#commit=eebc3e4f"
_fragment="#branch=develop"
pkgname=${_name}-git
pkgver=2.0.0.r71.g7b5fcae4
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=()
conflicts=(alice-vision)
provides=(alice-vision)
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}"
"ute_lib::git+https://github.com/alicevision/uncertaintyTE.git"
"geogram::git+https://github.com/alicevision/geogram.git"
"submodule.patch"
"https://github.com/alicevision/AliceVision/pull/527.diff"
)
md5sums=('SKIP'
'SKIP'
'SKIP'
'eb62c8be5a0d7ce537a928314c9d0028'
'6cd19dc384b73f0767b1a48f281a4a77')
_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/MeshSDFilter.url ${srcdir}/MeshSDFilter
# git config submodule.src/dependencies/nanoflann.url
# git config submodule.src/dependencies/osi_clp.url
git submodule update
git apply ${srcdir}/submodule.patch
git apply ${srcdir}/527.diff
}
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 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:
|