# Maintainer: Benjamin Chrétien # Contributor: Fabio Loli # Contributor: Yuxin Wu # Contributor: Sven-Hendrik Haase # Contributor: hauptmech # Contributor: figo.zhang # Contributor: lubosz pkgname=pcl pkgver=1.8.1 pkgrel=1 pkgdesc="A comprehensive open source library for n-D Point Clouds and 3D geometry processing" arch=('x86_64' 'i686') url='http://www.pointclouds.org' license=('BSD') depends=('boost' 'eigen' 'flann' 'vtk' 'qhull' 'qt5-base' 'glu' 'qt5-webkit' 'openmpi' 'python2' 'libxt' 'libharu' 'proj' 'glew') makedepends=('cmake' 'gl2ps') optdepends=('cuda' 'openni2' 'python2-sphinx') source=("pcl-${pkgver}.tar.gz"::"https://github.com/PointCloudLibrary/pcl/archive/pcl-${pkgver}.tar.gz") sha256sums=('5a102a2fbe2ba77c775bf92c4a5d2e3d8170be53a68c3a76cfc72434ff7b9783') prepare() { cd "${srcdir}/pcl-pcl-${pkgver}" # Patch to support boost 1.5.6: # 1. Api change. See http://www.pcl-users.org/PCL-compilation-errors-Please-help-me-td4035209.html # This patch is not necessary for now. # sed -i "s/boost::property_tree::xml_writer_settings.*/boost::property_tree::xml_writer_settings settings = boost::property_tree::xml_writer_make_settings('\\\t', 1);/g" io/src/lzf_image_io.cpp # 2. Qt moc parser fails on some boost headers files. Try to get around. grep -rl '#include ' . \ | xargs sed -i "s/#include /#ifndef Q_MOC_RUN\n\r#include \n\r#endif/g" # [[ -d build ]] && rm -r build mkdir -p build && cd build cmake .. \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCUDA_HOST_COMPILER=/usr/bin/gcc } build() { cd "${srcdir}/pcl-pcl-${pkgver}/build" make } package() { cd "${srcdir}/pcl-pcl-${pkgver}/build" make DESTDIR=${pkgdir} install install -Dm644 ../LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" }