updated on Wed Jan 11 00:07:16 UTC 2012
[aur-mirror.git] / pcl-svn / PKGBUILD
blob8f7934ec2558a1c116ba874181523fc56c4918c0
1 # Maintainer: hauptmech 
2 # Contriutors: figo.zhang
3
5 pkgname=pcl-svn
6 _pkgname=pcl
7 pkgver=3797
8 pkgrel=1
9 pkgdesc="Point Cloud Library:a comprehensive open source library for n-D Point Clouds and 3D geometry processing"
10 arch=('any')
11 url='http://www.ros.org/wiki/pcl/'
12 license=('BSD')
13 conflicts=('pcl')
14 depends=('vtk' 'libflann')
15 optdepends=('cuda-toolkit')
16 makedepends=('cmake' 'eigen3' 'cminpack' 'boost')
18 _svntrunk="http://svn.pointclouds.org/pcl/trunk"
19 _svnmod="$_pkgname"
21 build() {
23         cd $srcdir
25         if [ -d $_svnmod/.svn ]; then
26           (cd $_svnmod && svn up -r $pkgver)
27         else
28           svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
29         fi
31         msg "SVN checkout done or server timeout"
32         msg "Starting make..."
35         cd $srcdir/$_svnmod
36         rm -rf build
37         mkdir -p build || return 1
38         cd build || return 1
40         export CUDA_BIN_PATH=/opt/cuda-toolkit
41         cmake .. \
42                 -DCMAKE_BUILD_TYPE=Release \
43                 -DANN_PREFIX=/usr           \
44                 -DCMINPACK_PREFIX=/usr \
45                 -DBUILD_CUDA=ON \
46                 -DBUILD_global_tests=OFF \
47                 -DBUILD_simulation=OFF \
48                 -DBUILD_cuda_apps=OFF \
49                 -DBUILD_cuda_common=OFF \
50                 -DBUILD_cuda_features=OFF \
51                 -DBUILD_cuda_io=OFF \
52                 -DBUILD_cuda_sample_consensus=OFF \
53                 -DBUILD_cuda_segmentation=OFF \
54                 -DBUILD_cuda_features=OFF
57         make || return 1
61 package() {
62   cd $srcdir/$_svnmod/build
63   make DESTDIR=$pkgdir install