SHARE
TWEET

bartus

a guest Jun 21st, 2017 41 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Original Author: Johannes Sauer <joh.sauer(at)gmail(dot)com>
  2. # Maintainer: Danilo Bargen <aur at dbrgn dot ch>
  3.  
  4. name=cloudcompare
  5. pkgname=${name}-git
  6. pkgver=2.8.0.r158.gab5f340a
  7. pkgrel=1
  8. pkgdesc="A 3D point cloud (and triangular mesh) processing software"
  9. arch=('i686' 'x86_64')
  10. url="http://www.danielgm.net/cc/"
  11. license=('GPL2')
  12. depends=('qt5-base' 'glu' 'mesa' 'vxl' 'ffmpeg' 'cgal')
  13. makedepends=('git' 'cmake' 'pcl' 'doxygen' 'liblas')
  14. optdepends=('pcl' 'liblas')
  15. options=(debug !strip)
  16. source=("${name}::git+https://github.com/CloudCompare/CloudCompare.git"
  17.         "cgal.patch")
  18. md5sums=('SKIP'
  19.          'c731a6b09c7a54ecc8ba67f4557e2b0c')
  20.  
  21. prepare() {
  22.   cd ${srcdir}/${name}
  23.   git submodule update --init --recursive
  24.   patch -Np1 -i ../cgal.patch
  25. }
  26.  
  27. pkgver() {
  28.   cd ${srcdir}/${name}
  29.   git describe --long --tags | sed -r 's/^v//;s/([^-]*-g)/r\1/;s/-/./g'
  30. }
  31.  
  32. build() {
  33.   cd ${srcdir}/${name}
  34.  
  35.   mkdir -p build && cd build
  36.  
  37.   cmake .. \
  38.         -DCMAKE_CXX_FLAGS=-fpermissive \
  39.         -DCMAKE_INSTALL_PREFIX=/usr \
  40.         -DINSTALL_QCOMPASS_PLUGIN=ON \
  41.         -DINSTALL_QPCL_PLUGIN=ON \
  42.         -DINSTALL_QBLUR_PLUGIN=ON \
  43.         -DCMAKE_BUILD_TYPE=Release \
  44.         -DCOMPILE_CC_CORE_LIB_WITH_CGAL=ON \
  45.         -DINSTALL_QHPR_PLUGIN=ON \
  46.         -DINSTALL_QPOISSON_RECON_PLUGIN=ON \
  47.         -DPOISSON_RECON_WITH_OPEN_MP=ON \
  48.         -DINSTALL_QEDL_PLUGIN=ON \
  49.         -DINSTALL_QSRA_PLUGIN=ON \
  50.         -DOPTION_USE_GDAL=ON \
  51.         -DOPTION_USE_DXF_LIB=ON \
  52.         -DINSTALL_QSSAO_PLUGIN=ON \
  53.         -DOPTION_USE_LIBLAS=ON \
  54.         -DINSTALL_QGMMREG_PLUGIN=ON \
  55.         -DINSTALL_QANIMATION_PLUGIN=ON \
  56.         -DINSTALL_QCSF_PLUGIN=ON \
  57.         -DINSTALL_QPHOTOSCAN_IO_PLUGIN=ON \
  58.         -DWITH_FFMPEG_SUPPORT=ON \
  59.         -DFFMPEG_INCLUDE_DIR=/usr/include \
  60.         -DFFMPEG_LIBRARY_DIR=/usr/lib/ \
  61.         -DINSTALL_QFACETS_PLUGIN=ON \
  62.         -DOPTION_USE_SHAPE_LIB=ON \
  63.         -DINSTALL_QPCV_PLUGIN=ON \
  64.         -DINSTALL_QM3C2_PLUGIN=ON \
  65.         -DINSTALL_QBROOM_PLUGIN=true \
  66.         -DINSTALL_QHOUGH_NORMALS_PLUGIN=true \
  67.         -DEIGEN_ROOT_DIR=/usr/include/eigen3 \
  68.         -DLIBLAS_INCLUDE_DIR=/usr/include/liblas \
  69.         -DLIBLAS_RELEASE_LIBRARY_FILE=/usr/lib/liblas.so
  70.   make
  71. }
  72.  
  73. package() {
  74.   cd ${srcdir}/${name}/build
  75.   make DESTDIR="$pkgdir/" install
  76. }
  77. # vim:set sw=2 ts=2 et:
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top