summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-libs/pcl')
-rw-r--r--sci-libs/pcl/Manifest3
-rw-r--r--sci-libs/pcl/files/pcl-1.4.0-vtkio.patch42
-rw-r--r--sci-libs/pcl/pcl-1.4.0.ebuild70
3 files changed, 115 insertions, 0 deletions
diff --git a/sci-libs/pcl/Manifest b/sci-libs/pcl/Manifest
new file mode 100644
index 0000000..b0b69ff
--- /dev/null
+++ b/sci-libs/pcl/Manifest
@@ -0,0 +1,3 @@
+AUX pcl-1.4.0-vtkio.patch 2443 RMD160 26823e6d3b00ea32470d00a33fdea2353662f64b SHA1 b4b76b6953d4e8c93ff3f7574eda9f20c5cdbf7b SHA256 b388627bf89c16b6d5e682314311c4b9ddc4c49b7eb0c4f17d99fbc0b767280d
+DIST PCL-1.4.0-Source.tar.bz2 10626702 RMD160 440de4c12c4aba81d2b6197180df85e008eef4d9 SHA1 dc2f89cfafb098c27291549115d39cc6b425d31f SHA256 20d49246773bb54d4b9e133ef3b8b5081c94d1677d823cc0c2d03bcd5bf30a2b
+EBUILD pcl-1.4.0.ebuild 1535 RMD160 1dbaf17cc5d4490bfec87712767e3b31911b81e3 SHA1 daceb2220c31334dd9ce9129d8632ca09a076ff0 SHA256 3fef48d628c7ec352dd81c90777ae94aff52ac2a74440803b28630c42d6dd815
diff --git a/sci-libs/pcl/files/pcl-1.4.0-vtkio.patch b/sci-libs/pcl/files/pcl-1.4.0-vtkio.patch
new file mode 100644
index 0000000..690f92c
--- /dev/null
+++ b/sci-libs/pcl/files/pcl-1.4.0-vtkio.patch
@@ -0,0 +1,42 @@
+--- PCL-1.4.0-Source.old/io/CMakeLists.txt 2012-01-01 20:39:42.000000000 -0500
++++ PCL-1.4.0-Source/io/CMakeLists.txt 2012-02-19 19:45:49.000000000 -0500
+@@ -58,7 +58,7 @@
+ include (${VTK_USE_FILE})
+ set(VTK_IO_INCLUDES include/pcl/${SUBSYS_NAME}/vtk_lib_io.h)
+ set(VTK_IO_SOURCE src/vtk_lib_io.cpp)
+- set(VTK_IO_TARGET_LINK_LIBRARIES vtkCommon vtkWidgets)
++ set(VTK_IO_TARGET_LINK_LIBRARIES vtkCommon vtkWidgets vtkIO)
+ endif ()
+
+ set(srcs
+--- PCL-1.4.0-Source.old/surface/CMakeLists.txt 2012-01-01 20:39:42.000000000 -0500
++++ PCL-1.4.0-Source/surface/CMakeLists.txt 2012-02-19 20:39:37.000000000 -0500
+@@ -37,7 +37,7 @@
+ src/vtk_smoothing/vtk_mesh_subdivision.cpp
+ src/vtk_smoothing/vtk_mesh_smoothing_laplacian.cpp
+ src/vtk_smoothing/vtk_mesh_smoothing_windowed_sinc.cpp)
+- set(VTK_SMOOTHING_TARGET_LINK_LIBRARIES vtkCommon vtkWidgets)
++ set(VTK_SMOOTHING_TARGET_LINK_LIBRARIES vtkCommon vtkWidgets vtkGraphics)
+ endif()
+
+ set(srcs
+--- PCL-1.4.0-Source.old/tools/CMakeLists.txt 2012-01-01 20:39:42.000000000 -0500
++++ PCL-1.4.0-Source/tools/CMakeLists.txt 2012-02-19 21:33:40.000000000 -0500
+@@ -83,7 +83,7 @@
+ target_link_libraries(registration_visualizer pcl_common pcl_io pcl_kdtree pcl_filters pcl_registration pcl_visualization)
+
+ PCL_ADD_EXECUTABLE(octree_viewer ${SUBSYS_NAME} octree_viewer.cpp)
+- target_link_libraries(octree_viewer pcl_common pcl_io pcl_octree pcl_visualization pcl_kdtree)
++ target_link_libraries(octree_viewer pcl_common pcl_io pcl_octree pcl_visualization pcl_kdtree vtkGraphics vtkRendering)
+
+ PCL_ADD_EXECUTABLE(mesh2pcd ${SUBSYS_NAME} mesh2pcd.cpp)
+ target_link_libraries(mesh2pcd pcl_common pcl_io pcl_visualization pcl_filters vtkCommon)
+@@ -92,7 +92,7 @@
+ target_link_libraries(mesh_sampling pcl_common pcl_io pcl_visualization pcl_filters vtkCommon)
+
+ PCL_ADD_EXECUTABLE(virtual_scanner ${SUBSYS_NAME} virtual_scanner.cpp)
+- target_link_libraries(virtual_scanner pcl_common pcl_io pcl_filters pcl_visualization vtkCommon)
++ target_link_libraries(virtual_scanner pcl_common pcl_io pcl_filters pcl_visualization vtkCommon vtkGraphics)
+
+ if(BUILD_OPENNI AND OPENNI_FOUND)
+ PCL_ADD_EXECUTABLE(openni_save_image ${SUBSYS_NAME} openni_save_image.cpp)
diff --git a/sci-libs/pcl/pcl-1.4.0.ebuild b/sci-libs/pcl/pcl-1.4.0.ebuild
new file mode 100644
index 0000000..b2467bf
--- /dev/null
+++ b/sci-libs/pcl/pcl-1.4.0.ebuild
@@ -0,0 +1,70 @@
+# Copyright 2008-2012 Funtoo Technologies
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+
+inherit base toolchain-funcs cmake-utils
+
+MY_P=PCL-${PV}
+
+DESCRIPTION="The Point Cloud Library (or PCL) is a large scale, open project for 3D point cloud processing."
+HOMEPAGE="http://pointclouds.org"
+SRC_URI="http://dev.pointclouds.org/attachments/download/610/${MY_P}-Source.tar.bz2"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="cuda qhull sse sse2 sse3 ssse3"
+
+RDEPEND="
+ >=dev-libs/boost-1.46
+ dev-cpp/eigen:3
+ >=sci-libs/flann-1.7.1
+ >=sci-libs/vtk-5.6.0
+ cuda? ( >=dev-util/nvidia-cuda-toolkit-4 )
+ qhull? ( >=media-libs/qhull-2011.1 )
+"
+DEPEND="${RDEPEND}"
+
+
+CMAKE_BUILD_TYPE="Release"
+
+S=${WORKDIR}/${MY_P}-Source
+
+src_prepare() {
+ base_src_prepare
+
+ if has_version ">=sci-libs/vtk-5.8.0"; then
+ epatch ${FILESDIR}/${P}-vtkio.patch
+ fi
+}
+
+src_configure() {
+ local mycmakeargs=(
+ $(cmake-utils_use_enable sse SSE)
+ $(cmake-utils_use_enable sse2 SSE2)
+ $(cmake-utils_use_enable sse3 SSE3)
+ $(cmake-utils_use_enable ssse3 SSSE3)
+ $(cmake-utils_use_with qhull)
+ $(cmake-utils_use_build test TESTS)
+ )
+
+ if use cuda; then
+ if [[ "$(gcc-version)" > "4.4" ]]; then
+ ewarn "CUDA and >=sys-devel/gcc-4.5 do not play well together. Disabling CUDA support."
+ mycmakeargs+=( "-DWITH_CUDA=OFF" )
+ else
+ mycmakeargs+=( "-DWITH_CUDA=ON" )
+ fi
+ else
+ mycmakeargs+=( "-DWITH_CUDA=OFF" )
+ fi
+
+ # no openni support yet
+ mycmakeargs+=(
+ "-DWITH_OPENNI=OFF"
+ )
+
+ cmake-utils_src_configure
+}