Skip to contentSkip to conversation

flann: new package

PATCH New Davide Viti 2 participants 2 messages Apr 15, 2014

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 flann: new package

From: Davide Viti <[email protected]>

CC minimod at morethan.org
CC patrickdepinguin at gmail.com

---
Changes v1 -> v2:
- fix sorting of package in Config.in (Mike Zick)
- add a dot to finish the sentence of the package
description (Thomas De Schampheleire)
- add help text dor flann examples menu entry (Thomas De Schampheleire)
- add empty line after header comment in mk file (Thomas De Schampheleire)

 package/Config.in       |    1 +
 package/flann/Config.in |   24 ++++++++++++++++++++++++
 package/flann/flann.mk  |   23 +++++++++++++++++++++++
 3 files changed, 48 insertions(+)
 create mode 100644 package/flann/Config.in
 create mode 100644 package/flann/flann.mk
package/Config.in +1 -0
index 8e6e590..3a38355 100644
@@ -772,6 +772,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"
package/flann/Config.in new file +24 -0
new file mode 100644
index 0000000..4b0b5a8
@@ -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
package/flann/flann.mk new file +23 -0
new file mode 100644
index 0000000..baab77d
@@ -0,0 +1,23 @@
+###############################################################################
+#
+# flann
+#
+###############################################################################
+
+FLANN_VERSION = d0c04f4d290ebc3aa9411a3322992d298e51f5aa
+FLANN_SITE = $(call github,mariusmuja,flann,$(FLANN_VERSION))
+FLANN_INSTALL_STAGING = YES
+FLANN_LICENSE = BSD
+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))
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH v2 1/1 flann: new package

Dear Davide Viti,

Quoted 6 lines · Davide Viti

From: Davide Viti <[email protected]>

CC minimod at morethan.org
CC patrickdepinguin at gmail.com
Quoted 7 lines

---
Changes v1 -> v2:
- fix sorting of package in Config.in (Mike Zick)
- add a dot to finish the sentence of the package
description (Thomas De Schampheleire)
- add help text dor flann examples menu entry (Thomas De Schampheleire)
- add empty line after header comment in mk file (Thomas De Schampheleire)

I've changed the license from BSD to BSD-3c, and applied your patch. Thanks for your contribution!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com