2014-04-30 21:34:56 +02:00
|
|
|
################################################################################
|
2014-04-15 22:50:05 +02:00
|
|
|
#
|
|
|
|
# flann
|
|
|
|
#
|
2014-04-30 21:34:56 +02:00
|
|
|
################################################################################
|
2014-04-15 22:50:05 +02:00
|
|
|
|
2022-10-31 22:57:48 +01:00
|
|
|
FLANN_VERSION = 1.9.2
|
2014-04-15 22:50:05 +02:00
|
|
|
FLANN_SITE = $(call github,mariusmuja,flann,$(FLANN_VERSION))
|
|
|
|
FLANN_INSTALL_STAGING = YES
|
2017-03-30 15:43:38 +02:00
|
|
|
FLANN_LICENSE = BSD-3-Clause
|
2014-04-15 22:50:05 +02:00
|
|
|
FLANN_LICENSE_FILES = COPYING
|
2022-10-31 22:57:48 +01:00
|
|
|
FLANN_DEPENDENCIES = host-pkgconf lz4
|
2014-09-27 21:32:44 +02:00
|
|
|
FLANN_CONF_OPTS = \
|
2014-04-15 22:50:05 +02:00
|
|
|
-DBUILD_C_BINDINGS=ON \
|
|
|
|
-DBUILD_PYTHON_BINDINGS=OFF \
|
|
|
|
-DBUILD_MATLAB_BINDINGS=OFF \
|
|
|
|
-DBUILD_EXAMPLES=$(if $(BR2_PACKAGE_FLANN_EXAMPLES),ON,OFF) \
|
2019-03-26 13:30:47 +01:00
|
|
|
-DUSE_OPENMP=$(if $(BR2_TOOLCHAIN_HAS_OPENMP),ON,OFF) \
|
2017-12-06 15:47:53 +01:00
|
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_HDF5=TRUE
|
2014-04-15 22:50:05 +02:00
|
|
|
|
2019-06-14 23:03:34 +02:00
|
|
|
FLANN_CXXFLAGS = $(TARGET_CXXFLAGS)
|
|
|
|
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_68485),y)
|
|
|
|
FLANN_CXXFLAGS += -O0
|
|
|
|
endif
|
|
|
|
|
|
|
|
FLANN_CONF_OPTS += -DCMAKE_CXX_FLAGS="$(FLANN_CXXFLAGS)"
|
|
|
|
|
2014-04-15 22:50:05 +02:00
|
|
|
$(eval $(cmake-package))
|