diff options
author | 2012-02-19 22:34:58 -0500 | |
---|---|---|
committer | 2012-02-19 22:35:47 -0500 | |
commit | 3c0aab6cbe0fa9818bf8964d6707f3fcc58734c9 (patch) | |
tree | 226fea35b53ed2bbf4345235265ff40b9f4f15c7 | |
parent | Major cleanup of overlay. Keep only maintained packages, and update manifests. (diff) | |
download | ezod-3c0aab6cbe0fa9818bf8964d6707f3fcc58734c9.tar.gz ezod-3c0aab6cbe0fa9818bf8964d6707f3fcc58734c9.tar.bz2 ezod-3c0aab6cbe0fa9818bf8964d6707f3fcc58734c9.zip |
Initial import of sci-libs/flann and sci-libs/pcl ebuilds.
-rw-r--r-- | sci-libs/flann/Manifest | 5 | ||||
-rw-r--r-- | sci-libs/flann/flann-1.7.1.ebuild | 81 | ||||
-rw-r--r-- | sci-libs/pcl/Manifest | 3 | ||||
-rw-r--r-- | sci-libs/pcl/files/pcl-1.4.0-vtkio.patch | 42 | ||||
-rw-r--r-- | sci-libs/pcl/pcl-1.4.0.ebuild | 70 |
5 files changed, 201 insertions, 0 deletions
diff --git a/sci-libs/flann/Manifest b/sci-libs/flann/Manifest new file mode 100644 index 0000000..7889e8b --- /dev/null +++ b/sci-libs/flann/Manifest @@ -0,0 +1,5 @@ +DIST flann-1.6.10-testdata.tar.xz 26425552 RMD160 2a1b7a34f6d5361ba037b01c1afec79f911e0dcd SHA1 cf11d7fbcc82da8567d0fb73789375f00ac2bdd8 SHA256 5cfd556cae36b5901b929d82492523754dc98c7535338b7c87d55e0a63e14364 +DIST flann-1.7.0-src.zip 596775 RMD160 0610b5eeb886edc5e99d87faa76bdcbfbbccacff SHA1 50f1a1c7edf26f447fc9956bc45aa537b9b0f432 SHA256 8f548eaf8351cb3378ecd39a52b1d1c64b8e406a7a7512682be273739a2ac07d +DIST flann-1.7.1-src.zip 582517 RMD160 cec1ce99d2c91ddf8f20d5aa8009a08c5347b904 SHA1 61b9858620528919ea60a2a4b085ccc2b3c2d138 SHA256 eafb8c07cf59ff050be149b15d620ca3dd162e3fce9cb6748cde5d92e0dac775 +EBUILD flann-1.7.0.ebuild 2324 RMD160 049785833e61d2b285d48fdc29f56de215af4967 SHA1 cd5c566e57f0dbc893d6d70dd1e535d658f44c28 SHA256 8aca9c69497544d189e32329f44417118096d86fa7e79cbd4f99df2b27828e2d +EBUILD flann-1.7.1.ebuild 2324 RMD160 049785833e61d2b285d48fdc29f56de215af4967 SHA1 cd5c566e57f0dbc893d6d70dd1e535d658f44c28 SHA256 8aca9c69497544d189e32329f44417118096d86fa7e79cbd4f99df2b27828e2d diff --git a/sci-libs/flann/flann-1.7.1.ebuild b/sci-libs/flann/flann-1.7.1.ebuild new file mode 100644 index 0000000..9a76a0c --- /dev/null +++ b/sci-libs/flann/flann-1.7.1.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=3 + +PYTHON_DEPEND="python? 2:2.5" + +inherit cmake-utils eutils python + +DESCRIPTION="Library for performing fast approximate nearest neighbor searches in high dimensional spaces" +HOMEPAGE="http://www.cs.ubc.ca/~mariusm/index.php/FLANN/FLANN/" +SRC_URI="http://people.cs.ubc.ca/~mariusm/uploads/FLANN/${P}-src.zip + test? ( http://dev.gentoo.org/~dilfridge/distfiles/${PN}-1.6.10-testdata.tar.xz )" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="doc mpi octave python static-libs test" + +RDEPEND="sci-libs/hdf5[mpi?] + mpi? ( dev-libs/boost[mpi] ) + octave? ( sci-mathematics/octave ) + python? ( dev-python/numpy )" +DEPEND="${RDEPEND} + app-arch/unzip + test? ( dev-cpp/gtest )" + +S="${WORKDIR}"/${P}-src + +src_prepare() { + # bug #302621 + has_version sci-libs/hdf5[mpi] && export CXX=mpicxx + # gentoo doc directory respected + sed -i \ + -e "s:share/doc/flann:share/doc/${PF}:" \ + doc/CMakeLists.txt || die + # python standard installation directory respected + sed -i \ + -e "/share/d" \ + -e "/COMMAND/s:install:install --root="${ED}" --no-compile:" \ + src/python/CMakeLists.txt || die + # produce pure octave files + # octave gentoo installation for .m files respected + sed -i \ + -e 's/--mex//' \ + -e 's/\.mex/\.oct/' \ + -e '/FILES/s/${MEX_FILE}//' \ + -e 's:share/flann/octave:share/octave/site/m:' \ + -e "/CUSTOM_TARGET/a\INSTALL(FILES \${MEX_FILE} DESTINATION libexec/octave/site/oct/${CHOST})" \ + src/matlab/CMakeLists.txt || die + # do not compile examples by default + sed -i \ + -e '/add_subdirectory.*examples/d' \ + CMakeLists.txt || die + # compile tests only when requested + use test || sed -i -e '/add_subdirectory.*test/d' CMakeLists.txt + # avoid automatic installation of pdf + use doc || sed -i -e '/doc/d' CMakeLists.txt +} + +src_configure() { + local mycmakeargs=( + "-DBUILD_C_BINDINGS=ON" + $(cmake-utils_use_build octave MATLAB_BINDINGS) + $(cmake-utils_use_build python PYTHON_BINDINGS) + $(cmake-utils_use_use mpi) + ) + cmake-utils_src_configure +} + +src_test() { + cd "${CMAKE_BUILD_DIR}" + LD_LIBRARY_PATH="${PWD}/lib" PYTHONPATH="${S}/src/python" \ + emake test +} + +src_install() { + cmake-utils_src_install + dodoc README.md + use static-libs || find "${ED}" -name 'lib*.a' -exec rm -rf '{}' '+' +} 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 +} |