[Buildroot] [git commit] flann: new package

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Tue Apr 15 21:14:00 UTC 2014


commit: http://git.buildroot.net/buildroot/commit/?id=5fefbceeb68b2a3ee03dadc429fd5039ba9bc96f
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master

[Thomas: changed license from BSD to BSD-3c, to be more specific.]

Signed-off-by: Davide Viti <zinosat at tiscali.it>
CC: minimod at morethan.org
CC: patrickdepinguin at gmail.com
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
---
 package/Config.in       |    1 +
 package/flann/Config.in |   24 ++++++++++++++++++++++++
 package/flann/flann.mk  |   23 +++++++++++++++++++++++
 3 files changed, 48 insertions(+), 0 deletions(-)

diff --git a/package/Config.in b/package/Config.in
index 0e214e3..01c7ae9 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -773,6 +773,7 @@ source "package/cppcms/Config.in"
 source "package/eigen/Config.in"
 source "package/elfutils/Config.in"
 source "package/fftw/Config.in"
+source "package/flann/Config.in"
 source "package/glibmm/Config.in"
 source "package/gmp/Config.in"
 source "package/gsl/Config.in"
diff --git a/package/flann/Config.in b/package/flann/Config.in
new file mode 100644
index 0000000..4b0b5a8
--- /dev/null
+++ b/package/flann/Config.in
@@ -0,0 +1,24 @@
+config BR2_PACKAGE_FLANN
+	bool "flann"
+	depends on BR2_INSTALL_LIBSTDCPP
+	help
+	  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://www.cs.ubc.ca/research/flann/
+
+if BR2_PACKAGE_FLANN
+
+config BR2_PACKAGE_FLANN_EXAMPLES
+	bool "flann examples"
+	help
+	  Build and install flann example applications.
+
+endif
+
+comment "flann needs a toolchain w/ C++"
+	depends on !BR2_INSTALL_LIBSTDCPP
diff --git a/package/flann/flann.mk b/package/flann/flann.mk
new file mode 100644
index 0000000..6f95f19
--- /dev/null
+++ b/package/flann/flann.mk
@@ -0,0 +1,23 @@
+###############################################################################
+#
+# flann
+#
+###############################################################################
+
+FLANN_VERSION = d0c04f4d290ebc3aa9411a3322992d298e51f5aa
+FLANN_SITE = $(call github,mariusmuja,flann,$(FLANN_VERSION))
+FLANN_INSTALL_STAGING = YES
+FLANN_LICENSE = BSD-3c
+FLANN_LICENSE_FILES = COPYING
+FLANN_CONF_OPT = \
+	-DCMAKE_BUILD_TYPE=Release \
+	-DBUILD_C_BINDINGS=ON \
+	-DBUILD_PYTHON_BINDINGS=OFF \
+	-DBUILD_MATLAB_BINDINGS=OFF \
+	-DBUILD_EXAMPLES=$(if $(BR2_PACKAGE_FLANN_EXAMPLES),ON,OFF) \
+	-DBUILD_TESTS=OFF \
+	-DBUILD_DOC=OFF \
+	-DUSE_OPENMP=$(if $(BR2_GCC_ENABLE_OPENMP),ON,OFF) \
+	-DPYTHON_EXECUTABLE=OFF
+
+$(eval $(cmake-package))


More information about the buildroot mailing list