summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorbartus2019-04-24 15:44:11 +0200
committerbartus2019-04-24 15:44:11 +0200
commit1c9f11e45a505206c98c941795310e599a0323f1 (patch)
tree89bd344e333bc2a9b9348de560cd01de2a7c6d1f /PKGBUILD
parent9b731b95aafbb9f24f72b5d3e33e021d91862be6 (diff)
downloadaur-visual-sfm.tar.gz
use static libcudart
use makedepends for cuda and gcc5
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD7
1 files changed, 5 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 78011c62e71..9cec03fc30c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,12 +3,13 @@
pkgname=('visual-sfm')
pkgver=0.5.26
-pkgrel=4
+pkgrel=5
#options=(debug !strip !makeflags)
pkgdesc='A Visual Structure from Motion System; create 3d models from photos.'
arch=('x86_64')
url='http://ccwu.me/vsfm/'
-depends=('gcc5' 'lapack' 'blas' 'f2c' 'libjpeg' 'gtk2' 'glu' 'cmvs-pmvs-git' 'siftgpu' 'cuda')
+depends=('lapack' 'blas' 'f2c' 'gtk2' 'glu' 'cmvs-pmvs-git' 'siftgpu')
+makedepends=('gcc5' 'cuda')
optdepends=(
'opencl-nvidia: nvidia gpu support'
'opencl-mesa: amd gpu support (mesa)'
@@ -32,6 +33,8 @@ build() {
cd ${srcdir}/pba
# adjust cuda path
sed -i 's:CUDA_INSTALL_PATH = /usr/local/cuda:CUDA_INSTALL_PATH = /opt/cuda:' makefile
+ # use static libcudart those pruning cuda from dependencies
+ sed -i 's:-lcudart:/opt/cuda/targets/x86_64-linux/lib/libcudart_static.a:g' makefile
make pba
cp bin/libpba.so ../vsfm/bin