-
-
Save bchretien/49c898c8f9d5ee3dcea3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 945a82f3b46810568fc77e397fbf12a1dcb1e9b1 Mon Sep 17 00:00:00 2001 | |
From: =?UTF-8?q?Benjamin=20Chr=C3=A9tien?= <chretien.b@gmail.com> | |
Date: Mon, 15 Feb 2016 17:42:45 +0900 | |
Subject: Update for vtk6 dependency | |
diff --git a/.SRCINFO b/.SRCINFO | |
index 5817839..9be7aac 100644 | |
--- a/.SRCINFO | |
+++ b/.SRCINFO | |
@@ -1,9 +1,9 @@ | |
# Generated by mksrcinfo v8 | |
-# Sat Dec 26 19:22:36 UTC 2015 | |
+# Mon Feb 15 08:42:29 UTC 2016 | |
pkgbase = pcl-qt5 | |
pkgdesc = A comprehensive open source library for n-D Point Clouds and 3D geometry processing (Qt5 version) | |
pkgver = 1.7.2 | |
- pkgrel = 2 | |
+ pkgrel = 3 | |
url = http://www.pointclouds.org | |
arch = x86_64 | |
arch = i686 | |
@@ -13,12 +13,12 @@ pkgbase = pcl-qt5 | |
depends = boost | |
depends = eigen | |
depends = flann | |
- depends = vtk | |
+ depends = vtk6 | |
depends = qhull | |
depends = qt5-base | |
depends = glu | |
depends = qt5-webkit | |
- optdepends = openmpi | |
+ depends = openmpi | |
optdepends = cuda | |
optdepends = openni2 | |
optdepends = python-sphinx | |
diff --git a/PKGBUILD b/PKGBUILD | |
index 7ff1576..de5966b 100644 | |
--- a/PKGBUILD | |
+++ b/PKGBUILD | |
@@ -6,14 +6,14 @@ | |
pkgname=pcl-qt5 | |
pkgver=1.7.2 | |
-pkgrel=2 | |
+pkgrel=3 | |
pkgdesc="A comprehensive open source library for n-D Point Clouds and 3D geometry processing (Qt5 version)" | |
arch=('x86_64' 'i686') | |
url='http://www.pointclouds.org' | |
license=('BSD') | |
-depends=('boost' 'eigen' 'flann' 'vtk' 'qhull' 'qt5-base' 'glu' 'qt5-webkit') | |
+depends=('boost' 'eigen' 'flann' 'vtk6' 'qhull' 'qt5-base' 'glu' 'qt5-webkit' 'openmpi') | |
makedepends=('cmake' 'gl2ps') | |
-optdepends=('openmpi' 'cuda' 'openni2' 'python-sphinx') | |
+optdepends=('cuda' 'openni2' 'python-sphinx') | |
source=("https://github.com/PointCloudLibrary/pcl/archive/pcl-${pkgver}.tar.gz" | |
"qt5.patch") | |
sha256sums=('479f84f2c658a6319b78271111251b4c2d6cf07643421b66bbc351d9bed0ae93' | |
@@ -21,8 +21,8 @@ sha256sums=('479f84f2c658a6319b78271111251b4c2d6cf07643421b66bbc351d9bed0ae93' | |
provides=('pcl') | |
conflicts=('pcl') | |
-build() { | |
- cd $srcdir/pcl-pcl-$pkgver | |
+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 | |
@@ -34,12 +34,17 @@ build() { | |
patch -p1 < ../qt5.patch | |
+ # Fix for vtk6 | |
+ sed -i "s,CMAKE_INSTALL_RPATH \"\${CMAKE_INSTALL_PREFIX}/\${LIB_INSTALL_DIR}\",CMAKE_INSTALL_RPATH \"/opt/vtk6/lib\",g" "CMakeLists.txt" | |
+ | |
# [[ -d build ]] && rm -r build | |
mkdir -p build && cd build | |
# -DBUILD_gpu_people=OFF \ Disable until CUDA npp detection is fixed in cmake | |
+ export CMAKE_PREFIX_PATH="/opt/vtk6:/usr" | |
cmake .. \ | |
-DCMAKE_BUILD_TYPE=Release \ | |
+ -DCMAKE_INSTALL_RPATH="/opt/vtk6/lib" \ | |
-DCMAKE_INSTALL_PREFIX=/usr \ | |
-DBUILD_apps=ON \ | |
-DBUILD_apps_cloud_composer=OFF \ | |
@@ -57,14 +62,16 @@ build() { | |
-DBUILD_gpu_tracking=ON \ | |
-DBUILD_app_3d_rec_framework=ON \ | |
-DBUILD_simulation=ON | |
+} | |
+build() { | |
+ cd "${srcdir}/pcl-pcl-${pkgver}/build" | |
make | |
} | |
package() { | |
- cd $srcdir/pcl-pcl-$pkgver/build | |
- | |
- make DESTDIR=$pkgdir install | |
+ cd "${srcdir}/pcl-pcl-${pkgver}/build" | |
+ make DESTDIR=${pkgdir} install | |
install -Dm644 ../LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment