From a3c407d04e99a66b5e54898fdc7ed071867af2cb Mon Sep 17 00:00:00 2001 From: namso-01 Date: Sun, 23 Aug 2015 23:02:08 +0300 Subject: [PATCH] flann: depoya eklendi. --- programming/misc/flann/actions.py | 41 ++++++++++++++++++ programming/misc/flann/pspec.xml | 56 +++++++++++++++++++++++++ programming/misc/flann/translations.xml | 13 ++++++ 3 files changed, 110 insertions(+) create mode 100644 programming/misc/flann/actions.py create mode 100644 programming/misc/flann/pspec.xml create mode 100644 programming/misc/flann/translations.xml diff --git a/programming/misc/flann/actions.py b/programming/misc/flann/actions.py new file mode 100644 index 0000000000..2c011d74de --- /dev/null +++ b/programming/misc/flann/actions.py @@ -0,0 +1,41 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- + +# Licensed under the GNU General Public License, version 3. +# See the file http://www.gnu.org/copyleft/gpl.txt + +from pisi.actionsapi import cmaketools +from pisi.actionsapi import pisitools +from pisi.actionsapi import shelltools +from pisi.actionsapi import get + +def setup(): + shelltools.system("sed -i 's/lib64/lib/g' cmake/flann_utils.cmake") + shelltools.system("sed -i '1 i #undef _GLIBCXX_ATOMIC_BUILTINS' src/cpp/flann/algorithms/kdtree_cuda_3d_index.cu") + shelltools.system("sed -i '1 i #undef _GLIBCXX_USE_INT128' src/cpp/flann/algorithms/kdtree_cuda_3d_index.cu") + + shelltools.system("sed -i 's|#!/usr/bin/env python|#!/usr/bin/python2|' \ + bin/download_checkmd5.py \ + bin/run_test.py \ + src/python/setup.py.tpl \ + test/test_clustering.py \ + test/test_index_save.py \ + test/test_nn_autotune.py \ + test/test_nn_index.py \ + test/test_nn.py") + shelltools.system('sed -i "s|setup\.py install|setup.py install --root=$pkgdir --optimize=1|" src/python/CMakeLists.txt') + cmaketools.configure("-DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DBUILD_MATLAB_BINDINGS=OFF \ + -DBUILD_PYTHON_BINDINGS=ON \ + -DPYTHON_EXECUTABLE=/usr/bin/python2.7 \ + -DNVCC_COMPILER_BINDIR=/usr/bin") + +def build(): + cmaketools.make() + +def install(): + cmaketools.rawInstall("DESTDIR=%s" % get.installDIR()) + pisitools.dosym("libinput.so.5.0.0","/usr/lib/libinput.so.0") + + #pisitools.dodoc("COPYING", "README") diff --git a/programming/misc/flann/pspec.xml b/programming/misc/flann/pspec.xml new file mode 100644 index 0000000000..512e7580d7 --- /dev/null +++ b/programming/misc/flann/pspec.xml @@ -0,0 +1,56 @@ + + + + + flann + http://www.cs.ubc.ca/research/flann/ + + Osman Erkan + osman.erkan@pisilinux.org + + BSD + library + FLANN is a library for performing fast approximate nearest neighbor searches in high dimensional space. + FLANN is a library for performing fast approximate nearest neighbor searches in high dimensional spaces. It contains a collection of algorithms we found to work best for nearest neighbor search and a system for automatically choosing the best algorithm and optimum parameters depending on the dataset. + http://people.cs.ubc.ca/~mariusm/uploads/FLANN/flann-1.8.4-src.zip + + cmake + + + + + flann + + libgcc + libgomp + + + /usr/lib + /usr/share/doc + /usr/bin + /usr/share/flann + + + + + flann-devel + Development files for flann + + flann + + + /usr/include + /usr/lib/pkgconfig + + + + + + 2015-08-25 + 1.8.4 + First release. + Osman Erkan + osman.erkan@pisilinux.org + + + \ No newline at end of file diff --git a/programming/misc/flann/translations.xml b/programming/misc/flann/translations.xml new file mode 100644 index 0000000000..9031f8145c --- /dev/null +++ b/programming/misc/flann/translations.xml @@ -0,0 +1,13 @@ + + + + flann + FLANN is a library for performing fast approximate nearest neighbor searches in high dimensional space. + FLANN is a library for performing fast approximate nearest neighbor searches in high dimensional spaces. It contains a collection of algorithms we found to work best for nearest neighbor search and a system for automatically choosing the best algorithm and optimum parameters depending on the dataset. + + + + flann-devel + Development files for flann + + \ No newline at end of file