pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/math math/flann-lib: added library for nearest-neighbo...
details: https://anonhg.NetBSD.org/pkgsrc/rev/e69a370a44ba
branches: trunk
changeset: 451503:e69a370a44ba
user: thor <thor%pkgsrc.org@localhost>
date: Tue Apr 27 15:16:46 2021 +0000
description:
math/flann-lib: added library for nearest-neighbor search
diffstat:
math/Makefile | 3 +-
math/flann-lib/DESCR | 6 ++
math/flann-lib/Makefile | 33 +++++++++++
math/flann-lib/PLIST | 60 +++++++++++++++++++++
math/flann-lib/buildlink3.mk | 16 +++++
math/flann-lib/distinfo | 7 ++
math/flann-lib/patches/patch-src_cpp_CMAkeLists.txt | 28 +++++++++
7 files changed, 152 insertions(+), 1 deletions(-)
diffs (191 lines):
diff -r 1a1d65d7bf2a -r e69a370a44ba math/Makefile
--- a/math/Makefile Tue Apr 27 14:51:49 2021 +0000
+++ b/math/Makefile Tue Apr 27 15:16:46 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.496 2021/04/27 08:23:15 wiz Exp $
+# $NetBSD: Makefile,v 1.497 2021/04/27 15:16:46 thor Exp $
COMMENT= Mathematics
@@ -169,6 +169,7 @@
SUBDIR+= fftwf
SUBDIR+= fgmp
SUBDIR+= fityk
+SUBDIR+= flann-lib
SUBDIR+= fplll
SUBDIR+= fricas
SUBDIR+= funst
diff -r 1a1d65d7bf2a -r e69a370a44ba math/flann-lib/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/math/flann-lib/DESCR Tue Apr 27 15:16:46 2021 +0000
@@ -0,0 +1,6 @@
+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 is written in C++ and contains bindings
+for the following languages: C, MATLAB, Python, and Ruby.
diff -r 1a1d65d7bf2a -r e69a370a44ba math/flann-lib/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/math/flann-lib/Makefile Tue Apr 27 15:16:46 2021 +0000
@@ -0,0 +1,33 @@
+# $NetBSD: Makefile,v 1.1 2021/04/27 15:16:46 thor Exp $
+
+GITHUB_PROJECT= flann
+GITHUB_TAG= 1.9.1
+DISTNAME= 1.9.1
+PKGNAME= ${GITHUB_PROJECT}-lib-${DISTNAME}
+CATEGORIES= math
+MASTER_SITES= ${MASTER_SITE_GITHUB:=mariusmuja/}
+DIST_SUBDIR= ${GITHUB_PROJECT}
+
+MAINTAINER= thomas.orgis%uni-hamburg.de@localhost
+HOMEPAGE= https://github.com/mariusmuja/flann/
+COMMENT= Fast Library for Approximate Nearest Neighbors
+LICENSE= modified-bsd
+
+WRKSRC= ${WRKDIR}/flann-1.9.1
+USE_CMAKE= yes
+USE_TOOLS+= pkg-config
+USE_LANGUAGES= c c++
+
+CMAKE_ARGS+= -DBUILD_DOC=OFF
+CMAKE_ARGS+= -DBUILD_PYTHON_BINDINGS=OFF
+CMAKE_ARGS+= -DBUILD_MATLAB_BINDINGS=OFF
+# Need to check if those two are out of experimental stage.
+# MPI needs parallel HDF5.
+CMAKE_ARGS+= -DUSE_MPI=OFF
+CMAKE_ARGS+= -DBUILD_CUDA_LIB=OFF
+
+PKGCONFIG_OVERRIDE+= cmake/flann.pc.in
+
+.include "../../devel/hdf5-c++/buildlink3.mk"
+
+.include "../../mk/bsd.pkg.mk"
diff -r 1a1d65d7bf2a -r e69a370a44ba math/flann-lib/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/math/flann-lib/PLIST Tue Apr 27 15:16:46 2021 +0000
@@ -0,0 +1,60 @@
+@comment $NetBSD: PLIST,v 1.1 2021/04/27 15:16:46 thor Exp $
+bin/flann_example_c
+bin/flann_example_cpp
+include/flann/algorithms/all_indices.h
+include/flann/algorithms/autotuned_index.h
+include/flann/algorithms/center_chooser.h
+include/flann/algorithms/composite_index.h
+include/flann/algorithms/dist.h
+include/flann/algorithms/hierarchical_clustering_index.h
+include/flann/algorithms/kdtree_cuda_3d_index.h
+include/flann/algorithms/kdtree_cuda_builder.h
+include/flann/algorithms/kdtree_index.h
+include/flann/algorithms/kdtree_single_index.h
+include/flann/algorithms/kmeans_index.h
+include/flann/algorithms/linear_index.h
+include/flann/algorithms/lsh_index.h
+include/flann/algorithms/nn_index.h
+include/flann/config.h
+include/flann/defines.h
+include/flann/ext/lz4.h
+include/flann/ext/lz4hc.h
+include/flann/flann.h
+include/flann/flann.hpp
+include/flann/general.h
+include/flann/io/hdf5.h
+include/flann/mpi/client.h
+include/flann/mpi/index.h
+include/flann/mpi/matrix.h
+include/flann/mpi/queries.h
+include/flann/mpi/server.h
+include/flann/nn/ground_truth.h
+include/flann/nn/index_testing.h
+include/flann/nn/simplex_downhill.h
+include/flann/util/allocator.h
+include/flann/util/any.h
+include/flann/util/cuda/heap.h
+include/flann/util/cuda/result_set.h
+include/flann/util/cutil_math.h
+include/flann/util/dynamic_bitset.h
+include/flann/util/heap.h
+include/flann/util/logger.h
+include/flann/util/lsh_table.h
+include/flann/util/matrix.h
+include/flann/util/object_factory.h
+include/flann/util/params.h
+include/flann/util/random.h
+include/flann/util/result_set.h
+include/flann/util/sampling.h
+include/flann/util/saving.h
+include/flann/util/serialization.h
+include/flann/util/timer.h
+lib/libflann.so
+lib/libflann.so.1.9
+lib/libflann.so.${PKGVERSION}
+lib/libflann_cpp.so
+lib/libflann_cpp.so.1.9
+lib/libflann_cpp.so.${PKGVERSION}
+lib/libflann_cpp_s.a
+lib/libflann_s.a
+lib/pkgconfig/flann.pc
diff -r 1a1d65d7bf2a -r e69a370a44ba math/flann-lib/buildlink3.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/math/flann-lib/buildlink3.mk Tue Apr 27 15:16:46 2021 +0000
@@ -0,0 +1,16 @@
+# $NetBSD: buildlink3.mk,v 1.1 2021/04/27 15:16:46 thor Exp $
+
+BUILDLINK_TREE+= flann-lib
+
+.if !defined(FLANN_LIB_BUILDLINK3_MK)
+FLANN_LIB_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.flann-lib+= flann-lib>=1.9.0
+BUILDLINK_ABI_DEPENDS.flann-lib+= flann-lib>=1.9.0
+BUILDLINK_PKGSRCDIR.flann-lib?= ../../wip/flann-lib
+
+.include "../../devel/hdf5-c++/buildlink3.mk"
+
+.endif # FLANN_LIB_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -flann-lib
diff -r 1a1d65d7bf2a -r e69a370a44ba math/flann-lib/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/math/flann-lib/distinfo Tue Apr 27 15:16:46 2021 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2021/04/27 15:16:46 thor Exp $
+
+SHA1 (flann/1.9.1.tar.gz) = ca3aee5670297f1db2eff122679ed9e87a70d830
+RMD160 (flann/1.9.1.tar.gz) = d84e5c61ef84ea9474f4917f68fadcff6e0d93b7
+SHA512 (flann/1.9.1.tar.gz) = 0da78bb14111013318160dd3dee1f93eb6ed077b18439fd6496017b62a8a6070cc859cfb3e08dad4c614e48d9dc1da5f7c4a21726ee45896d360506da074a6f7
+Size (flann/1.9.1.tar.gz) = 485391 bytes
+SHA1 (patch-src_cpp_CMAkeLists.txt) = 34c5367c8e8a01b701b3e90251d6c0aefe20ba4d
diff -r 1a1d65d7bf2a -r e69a370a44ba math/flann-lib/patches/patch-src_cpp_CMAkeLists.txt
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/math/flann-lib/patches/patch-src_cpp_CMAkeLists.txt Tue Apr 27 15:16:46 2021 +0000
@@ -0,0 +1,28 @@
+$NetBSD: patch-src_cpp_CMAkeLists.txt,v 1.1 2021/04/27 15:16:46 thor Exp $
+
+See https://github.com/mariusmuja/flann/issues/443 .
+
+--- src/cpp/CMakeLists.txt.orig 2016-08-05 01:20:50.000000000 +0200
++++ src/cpp/CMakeLists.txt 2020-04-15 21:19:33.106219724 +0200
+@@ -29,7 +29,7 @@
+ endif()
+
+ if(CMAKE_SYSTEM_NAME STREQUAL "Linux" AND CMAKE_COMPILER_IS_GNUCC)
+- add_library(flann_cpp SHARED "")
++ add_library(flann_cpp SHARED "empty.cpp")
+ set_target_properties(flann_cpp PROPERTIES LINKER_LANGUAGE CXX)
+ target_link_libraries(flann_cpp -Wl,-whole-archive flann_cpp_s -Wl,-no-whole-archive)
+
+@@ -83,7 +83,7 @@
+ set_property(TARGET flann_s PROPERTY COMPILE_DEFINITIONS FLANN_STATIC)
+
+ if(CMAKE_SYSTEM_NAME STREQUAL "Linux" AND CMAKE_COMPILER_IS_GNUCC)
+- add_library(flann SHARED "")
++ add_library(flann SHARED "empty.cpp")
+ set_target_properties(flann PROPERTIES LINKER_LANGUAGE CXX)
+ target_link_libraries(flann -Wl,-whole-archive flann_s -Wl,-no-whole-archive)
+ else()
+--- src/cpp/empty.cpp 1970-01-01 01:00:00.000000000 +0100
++++ src/cpp/empty.cpp 2020-04-15 21:46:36.507084559 +0200
+@@ -0,0 +1 @@
++// This is just a dummy to fix the build system.
Home |
Main Index |
Thread Index |
Old Index