diff options
Diffstat (limited to 'sci-libs/pcl/pcl-1.6.0.ebuild')
-rw-r--r-- | sci-libs/pcl/pcl-1.6.0.ebuild | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/sci-libs/pcl/pcl-1.6.0.ebuild b/sci-libs/pcl/pcl-1.6.0.ebuild new file mode 100644 index 0000000..f2a913b --- /dev/null +++ b/sci-libs/pcl/pcl-1.6.0.ebuild @@ -0,0 +1,65 @@ +# Copyright 2008-2012 Funtoo Technologies +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=4 + +inherit 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://www.pointclouds.org" +SRC_URI="${HOMEPAGE}/assets/files/${PV}/${MY_P}-Source.tar.bz2" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="cuda doc mpi +tools +vtk" + +RDEPEND=" + >=dev-libs/boost-1.46 + dev-cpp/eigen:3 + >=sci-libs/flann-1.7.1 + >=media-libs/qhull-2010.1 + cuda? ( >=dev-util/nvidia-cuda-toolkit-4 ) + mpi? ( virtual/mpi ) + vtk? ( >=sci-libs/vtk-5.6.0 ) +" +DEPEND="${RDEPEND} + doc? ( app-doc/doxygen ) +" + +PATCHES=( + "${FILESDIR}/${P}-with.patch" +) + +CMAKE_BUILD_TYPE="Release" + +S=${WORKDIR}/${MY_P}-Source + +src_configure() { + local mycmakeargs=( + $(cmake-utils_use_with mpi) + $(cmake-utils_use_with vtk) + $(cmake-utils_use_build doc) + $(cmake-utils_use_build tools) + $(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+=( "-DHAVE_CUDA=OFF" ) + else + mycmakeargs+=( "-DHAVE_CUDA=ON" ) + fi + else + mycmakeargs+=( "-DHAVE_CUDA=OFF" ) + fi + + # no openni support yet + mycmakeargs+=( "-DWITH_OPENNI=OFF" ) + + cmake-utils_src_configure +} |