From 56bd759df1d0c750a065b8c845e93d5dfa6b549d Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Sat, 8 Aug 2015 13:49:04 -0700 Subject: proj/gentoo: Initial commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson X-Thanks: Alec Warner - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring - wrote much python to improve cvs2svn X-Thanks: Rich Freeman - validation scripts X-Thanks: Patrick Lauer - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed --- sci-libs/pcl/Manifest | 1 + sci-libs/pcl/files/nogl.patch | 22 ++++++++++++ sci-libs/pcl/metadata.xml | 23 ++++++++++++ sci-libs/pcl/pcl-1.7.2.ebuild | 83 +++++++++++++++++++++++++++++++++++++++++++ sci-libs/pcl/pcl-9999.ebuild | 79 ++++++++++++++++++++++++++++++++++++++++ 5 files changed, 208 insertions(+) create mode 100644 sci-libs/pcl/Manifest create mode 100644 sci-libs/pcl/files/nogl.patch create mode 100644 sci-libs/pcl/metadata.xml create mode 100644 sci-libs/pcl/pcl-1.7.2.ebuild create mode 100644 sci-libs/pcl/pcl-9999.ebuild (limited to 'sci-libs/pcl') diff --git a/sci-libs/pcl/Manifest b/sci-libs/pcl/Manifest new file mode 100644 index 000000000000..293b4217dbc5 --- /dev/null +++ b/sci-libs/pcl/Manifest @@ -0,0 +1 @@ +DIST pcl-1.7.2.tar.gz 63474627 SHA256 479f84f2c658a6319b78271111251b4c2d6cf07643421b66bbc351d9bed0ae93 SHA512 23b24f35aa97a167083b0e94164af1c1e1b4b82e1ed7a2514b2453fb5001ad375cda983f4470b34b7b7f717f1399ccec1bcff7ce7f057cd25f024a58830cc2e9 WHIRLPOOL f41f2aa964e617a7e554c5ecf18dc2fc92a87ea1358d3796b364d933c8353bbcf16da6e57409e191b99ca59d5cd7fce236ead29f130e6231949ea5f4c9624332 diff --git a/sci-libs/pcl/files/nogl.patch b/sci-libs/pcl/files/nogl.patch new file mode 100644 index 000000000000..0be97e85f893 --- /dev/null +++ b/sci-libs/pcl/files/nogl.patch @@ -0,0 +1,22 @@ +commit 1361899d1a336938811eceb17e2f71abe650ae17 +Author: Davide Viti +Date: Sun Nov 9 21:37:28 2014 +0100 + + Add "WITH_OPENGL" option to make OpenGL and Glut inclusion conditional + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 6cc473d..7fda151 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -403,7 +403,10 @@ if(WITH_PCAP) + endif(WITH_PCAP) + + # OpenGL and GLUT +-include("${PCL_SOURCE_DIR}/cmake/pcl_find_gl.cmake") ++option(WITH_OPENGL "Support for OpenGL" TRUE) ++if(WITH_OPENGL) ++ include("${PCL_SOURCE_DIR}/cmake/pcl_find_gl.cmake") ++endif(WITH_OPENGL) + + ### ---[ Create the config.h file + set(pcl_config_h_in "${CMAKE_CURRENT_SOURCE_DIR}/pcl_config.h.in") diff --git a/sci-libs/pcl/metadata.xml b/sci-libs/pcl/metadata.xml new file mode 100644 index 000000000000..bc2917bb5cb1 --- /dev/null +++ b/sci-libs/pcl/metadata.xml @@ -0,0 +1,23 @@ + + + + + aballier@gentoo.org + Alexis Ballier + + + Adds support for NVIDIA CUDA. + Adds support for Kinect-like 3D sensors devices with dev-libs/OpenNI. + Adds support for Kinect-like 3D sensors devices with dev-libs/OpenNI2 (should be preferred over openni). + Adds pcap file capabilities in some drivers. + Adds convex-hull operation support via media-libs/qhull. + Adds support for VTK-Visualizations. + Builds and installs tutorials. + + + The Point Cloud Library (PCL) is a standalone, large scale, open project for 2D/3D image and point cloud processing. + + + PointCloudLibrary/pcl + + diff --git a/sci-libs/pcl/pcl-1.7.2.ebuild b/sci-libs/pcl/pcl-1.7.2.ebuild new file mode 100644 index 000000000000..62b8bf0b9579 --- /dev/null +++ b/sci-libs/pcl/pcl-1.7.2.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +SCM="" +if [ "${PV#9999}" != "${PV}" ] ; then + SCM="git-r3" + EGIT_REPO_URI="https://github.com/PointCloudLibrary/pcl" +fi + +inherit ${SCM} cmake-utils multilib + +if [ "${PV#9999}" != "${PV}" ] ; then + KEYWORDS="" + SRC_URI="" +else + KEYWORDS="~amd64 ~arm" + SRC_URI="http://github.com/PointCloudLibrary/pcl/archive/${P}.tar.gz" + S="${WORKDIR}/${PN}-${P}" +fi + +HOMEPAGE="http://pointclouds.org/" +DESCRIPTION="2D/3D image and point cloud processing" +LICENSE="BSD" +SLOT="0" +IUSE="cuda doc opengl openni openni2 pcap png +qhull qt4 usb vtk cpu_flags_x86_sse test tutorials" + +RDEPEND=" + >=sci-libs/flann-1.7.1 + dev-libs/boost:=[threads] + dev-cpp/eigen:3 + opengl? ( virtual/opengl media-libs/freeglut ) + openni? ( dev-libs/OpenNI ) + openni2? ( dev-libs/OpenNI2 ) + pcap? ( net-libs/libpcap ) + png? ( media-libs/libpng:0= ) + qhull? ( media-libs/qhull ) + qt4? ( dev-qt/qtgui:4 ) + usb? ( virtual/libusb:1 ) + vtk? ( >=sci-libs/vtk-5.6[imaging,rendering,qt4?] ) + cuda? ( >=dev-util/nvidia-cuda-toolkit-4 ) +" +DEPEND="${RDEPEND} + !!dev-cpp/metslib + doc? ( app-doc/doxygen ) + tutorials? ( dev-python/sphinx dev-python/sphinxcontrib-doxylink ) + test? ( >=dev-cpp/gtest-1.6.0 ) + virtual/pkgconfig" + +REQUIRED_USE=" + openni? ( usb ) + openni2? ( usb ) + tutorials? ( doc ) +" + +PATCHES=( + "${FILESDIR}/nogl.patch" +) + +src_configure() { + local mycmakeargs=( + "-DLIB_INSTALL_DIR=$(get_libdir)" + "-DWITH_CUDA=$(usex cuda TRUE FALSE)" + "-DWITH_LIBUSB=$(usex usb TRUE FALSE)" + "-DWITH_OPENGL=$(usex opengl TRUE FALSE)" + "-DWITH_PNG=$(usex png TRUE FALSE)" + "-DWITH_QHULL=$(usex qhull TRUE FALSE)" + "-DWITH_QT=$(usex qt4 TRUE FALSE)" + "-DWITH_VTK=$(usex vtk TRUE FALSE)" + "-DWITH_PCAP=$(usex pcap TRUE FALSE)" + "-DWITH_OPENNI=$(usex openni TRUE FALSE)" + "-DBUILD_OPENNI=$(usex openni TRUE FALSE)" + "-DWITH_OPENNI2=$(usex openni2 TRUE FALSE)" + "-DBUILD_OPENNI2=$(usex openni2 TRUE FALSE)" + "-DPCL_ENABLE_SSE=$(usex cpu_flags_x86_sse TRUE FALSE)" + "-DWITH_DOCS=$(usex doc TRUE FALSE)" + "-DWITH_TUTORIALS=$(usex tutorials TRUE FALSE)" + "-DBUILD_TESTS=$(usex test TRUE FALSE)" + ) + cmake-utils_src_configure +} diff --git a/sci-libs/pcl/pcl-9999.ebuild b/sci-libs/pcl/pcl-9999.ebuild new file mode 100644 index 000000000000..6beca62fe8ed --- /dev/null +++ b/sci-libs/pcl/pcl-9999.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +SCM="" +if [ "${PV#9999}" != "${PV}" ] ; then + SCM="git-r3" + EGIT_REPO_URI="https://github.com/PointCloudLibrary/pcl" +fi + +inherit ${SCM} cmake-utils multilib + +if [ "${PV#9999}" != "${PV}" ] ; then + KEYWORDS="" + SRC_URI="" +else + KEYWORDS="~amd64 ~arm" + SRC_URI="http://github.com/PointCloudLibrary/pcl/archive/${P}.tar.gz" + S="${WORKDIR}/${PN}-${P}" +fi + +HOMEPAGE="http://pointclouds.org/" +DESCRIPTION="2D/3D image and point cloud processing" +LICENSE="BSD" +SLOT="0" +IUSE="cuda doc opengl openni openni2 pcap png +qhull qt4 usb vtk cpu_flags_x86_sse test tutorials" + +RDEPEND=" + >=sci-libs/flann-1.7.1 + dev-libs/boost:=[threads] + dev-cpp/eigen:3 + opengl? ( virtual/opengl media-libs/freeglut ) + openni? ( dev-libs/OpenNI ) + openni2? ( dev-libs/OpenNI2 ) + pcap? ( net-libs/libpcap ) + png? ( media-libs/libpng:0= ) + qhull? ( media-libs/qhull ) + qt4? ( dev-qt/qtgui:4 ) + usb? ( virtual/libusb:1 ) + vtk? ( >=sci-libs/vtk-5.6[imaging,rendering,qt4?] ) + cuda? ( >=dev-util/nvidia-cuda-toolkit-4 ) +" +DEPEND="${RDEPEND} + !!dev-cpp/metslib + doc? ( app-doc/doxygen ) + tutorials? ( dev-python/sphinx dev-python/sphinxcontrib-doxylink ) + test? ( >=dev-cpp/gtest-1.6.0 ) + virtual/pkgconfig" + +REQUIRED_USE=" + openni? ( usb ) + openni2? ( usb ) + tutorials? ( doc ) +" + +src_configure() { + local mycmakeargs=( + "-DLIB_INSTALL_DIR=$(get_libdir)" + "-DWITH_CUDA=$(usex cuda TRUE FALSE)" + "-DWITH_LIBUSB=$(usex usb TRUE FALSE)" + "-DWITH_OPENGL=$(usex opengl TRUE FALSE)" + "-DWITH_PNG=$(usex png TRUE FALSE)" + "-DWITH_QHULL=$(usex qhull TRUE FALSE)" + "-DWITH_QT=$(usex qt4 TRUE FALSE)" + "-DWITH_VTK=$(usex vtk TRUE FALSE)" + "-DWITH_PCAP=$(usex pcap TRUE FALSE)" + "-DWITH_OPENNI=$(usex openni TRUE FALSE)" + "-DBUILD_OPENNI=$(usex openni TRUE FALSE)" + "-DWITH_OPENNI2=$(usex openni2 TRUE FALSE)" + "-DBUILD_OPENNI2=$(usex openni2 TRUE FALSE)" + "-DPCL_ENABLE_SSE=$(usex cpu_flags_x86_sse TRUE FALSE)" + "-DWITH_DOCS=$(usex doc TRUE FALSE)" + "-DWITH_TUTORIALS=$(usex tutorials TRUE FALSE)" + "-DBUILD_TESTS=$(usex test TRUE FALSE)" + ) + cmake-utils_src_configure +} -- cgit v1.2.3-65-gdbad