From owner-svn-ports-all@freebsd.org Sat Dec 30 19:45:35 2017 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 387B7EA9354; Sat, 30 Dec 2017 19:45:35 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0FF6F699F0; Sat, 30 Dec 2017 19:45:34 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vBUJjYIp099238; Sat, 30 Dec 2017 19:45:34 GMT (envelope-from yuri@FreeBSD.org) Received: (from yuri@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vBUJjX3Y099230; Sat, 30 Dec 2017 19:45:33 GMT (envelope-from yuri@FreeBSD.org) Message-Id: <201712301945.vBUJjX3Y099230@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: yuri set sender to yuri@FreeBSD.org using -f From: Yuri Victorovich Date: Sat, 30 Dec 2017 19:45:33 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r457634 - in head/math: . flann flann/files X-SVN-Group: ports-head X-SVN-Commit-Author: yuri X-SVN-Commit-Paths: in head/math: . flann flann/files X-SVN-Commit-Revision: 457634 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Dec 2017 19:45:35 -0000 Author: yuri Date: Sat Dec 30 19:45:33 2017 New Revision: 457634 URL: https://svnweb.freebsd.org/changeset/ports/457634 Log: New port: math/flann: Library for fast nearest neighbor searches in high dimensional spaces Submitted by: myself Approved by: tcberner (mentor) Differential Revision: https://reviews.freebsd.org/D13692 Added: head/math/flann/ head/math/flann/Makefile (contents, props changed) head/math/flann/distinfo (contents, props changed) head/math/flann/files/ head/math/flann/files/patch-examples_CMakeLists.txt (contents, props changed) head/math/flann/files/patch-src_cpp_CMakeLists.txt (contents, props changed) head/math/flann/files/patch-src_cpp_flann_algorithms_kdtree__index.h (contents, props changed) head/math/flann/pkg-descr (contents, props changed) head/math/flann/pkg-plist (contents, props changed) Modified: head/math/Makefile Modified: head/math/Makefile ============================================================================== --- head/math/Makefile Sat Dec 30 19:39:36 2017 (r457633) +++ head/math/Makefile Sat Dec 30 19:45:33 2017 (r457634) @@ -183,6 +183,7 @@ SUBDIR += fftw3-long SUBDIR += fftw3-quad SUBDIR += fityk + SUBDIR += flann SUBDIR += form SUBDIR += fpc-fftw SUBDIR += fpc-gmp Added: head/math/flann/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/flann/Makefile Sat Dec 30 19:45:33 2017 (r457634) @@ -0,0 +1,30 @@ +# $FreeBSD$ + +PORTNAME= flann +DISTVERSION= 1.8.4 +DISTVERSIONSUFFIX= -src +CATEGORIES= math +MASTER_SITES= http://people.cs.ubc.ca/~mariusm/uploads/FLANN/ + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Library for fast nearest neighbor searches in high dimensional spaces + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/COPYING + +LIB_DEPENDS= libhdf5.so:science/hdf5 \ + libsz.so:science/szip + +USES= cmake:outsource zip +CMAKE_ARGS= -DBUILD_PYTHON_BINDINGS:BOOL=OFF \ + -DBUILD_MATLAB_BINDINGS:BOOL=OFF \ + -DEXAMPLES_SUBDIR:STRING="share/examples/flann" \ + -DUSE_OPENMP:BOOL=OFF # OpenMP search is broken in cmake: https://gitlab.kitware.com/cmake/cmake/issues/17474 +USE_LDCONFIG= yes + +OPTIONS_DEFINE= DOCS EXAMPLES +PLIST_SUB= SHL3=${DISTVERSION} SHL2=${DISTVERSION:R} + +EXAMPLES_CMAKE_BOOL= BUILD_EXAMPLES + +.include Added: head/math/flann/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/flann/distinfo Sat Dec 30 19:45:33 2017 (r457634) @@ -0,0 +1,3 @@ +TIMESTAMP = 1514618300 +SHA256 (flann-1.8.4-src.zip) = dfbb9321b0d687626a644c70872a2c540b16200e7f4c7bd72f91ae032f445c08 +SIZE (flann-1.8.4-src.zip) = 561057 Added: head/math/flann/files/patch-examples_CMakeLists.txt ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/flann/files/patch-examples_CMakeLists.txt Sat Dec 30 19:45:33 2017 (r457634) @@ -0,0 +1,29 @@ +--- examples/CMakeLists.txt.orig 2013-01-16 06:38:32 UTC ++++ examples/CMakeLists.txt +@@ -7,7 +7,7 @@ if (BUILD_C_BINDINGS) + set_target_properties(flann_example_c PROPERTIES COMPILE_FLAGS -std=c99) + + add_dependencies(examples flann_example_c) +- install (TARGETS flann_example_c DESTINATION bin ) ++ install (TARGETS flann_example_c DESTINATION ${EXAMPLES_SUBDIR}) + endif() + + if (HDF5_FOUND) +@@ -20,7 +20,7 @@ if (HDF5_FOUND) + endif() + + add_dependencies(examples flann_example_cpp) +- install (TARGETS flann_example_cpp DESTINATION bin) ++ install (TARGETS flann_example_cpp DESTINATION ${EXAMPLES_SUBDIR}) + + + if (USE_MPI AND HDF5_IS_PARALLEL) +@@ -28,7 +28,7 @@ if (HDF5_FOUND) + target_link_libraries(flann_example_mpi flann_cpp ${HDF5_LIBRARIES} ${MPI_LIBRARIES} ${Boost_LIBRARIES}) + + add_dependencies(examples flann_example_mpi) +- install (TARGETS flann_example_mpi DESTINATION bin) ++ install (TARGETS flann_example_mpi DESTINATION ${EXAMPLES_SUBDIR}) + endif() + else() + message("hdf5 library not found, not compiling flann_example.cpp") Added: head/math/flann/files/patch-src_cpp_CMakeLists.txt ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/flann/files/patch-src_cpp_CMakeLists.txt Sat Dec 30 19:45:33 2017 (r457634) @@ -0,0 +1,29 @@ +--- src/cpp/CMakeLists.txt.orig 2013-01-16 06:38:32 UTC ++++ src/cpp/CMakeLists.txt +@@ -8,7 +8,7 @@ file(GLOB_RECURSE C_SOURCES flann.cpp) + file(GLOB_RECURSE CPP_SOURCES flann_cpp.cpp) + file(GLOB_RECURSE CU_SOURCES *.cu) + +-add_library(flann_cpp_s STATIC ${CPP_SOURCES}) ++add_library(flann_cpp_s SHARED ${CPP_SOURCES}) + if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_CLANG) + set_target_properties(flann_cpp_s PROPERTIES COMPILE_FLAGS -fPIC) + endif() +@@ -24,7 +24,7 @@ if (BUILD_CUDA_LIB) + else() + set(CUDA_NVCC_FLAGS "${CUDA_NVCC_FLAGS};-arch=sm_13" ) + endif() +- cuda_add_library(flann_cuda_s STATIC ${CU_SOURCES}) ++ cuda_add_library(flann_cuda_s SHARED ${CU_SOURCES}) + set_property(TARGET flann_cuda_s PROPERTY COMPILE_DEFINITIONS FLANN_STATIC) + endif() + +@@ -76,7 +76,7 @@ endif() + + + if (BUILD_C_BINDINGS) +- add_library(flann_s STATIC ${C_SOURCES}) ++ add_library(flann_s SHARED ${C_SOURCES}) + if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_CLANG) + set_target_properties(flann_s PROPERTIES COMPILE_FLAGS -fPIC) + endif() Added: head/math/flann/files/patch-src_cpp_flann_algorithms_kdtree__index.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/flann/files/patch-src_cpp_flann_algorithms_kdtree__index.h Sat Dec 30 19:45:33 2017 (r457634) @@ -0,0 +1,19 @@ +--- src/cpp/flann/algorithms/kdtree_index.h.orig 2013-01-16 06:38:32 UTC ++++ src/cpp/flann/algorithms/kdtree_index.h +@@ -36,6 +36,7 @@ + #include + #include + #include ++#include + + #include "flann/general.h" + #include "flann/algorithms/nn_index.h" +@@ -663,7 +664,7 @@ private: + ElementType max_span = 0; + size_t div_feat = 0; + for (size_t i=0;i max_span) { + max_span = span; + div_feat = i; Added: head/math/flann/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/flann/pkg-descr Sat Dec 30 19:45:33 2017 (r457634) @@ -0,0 +1,9 @@ +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 and Python. + +WWW: https://www.cs.ubc.ca/research/flann Added: head/math/flann/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/flann/pkg-plist Sat Dec 30 19:45:33 2017 (r457634) @@ -0,0 +1,58 @@ +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/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.%%SHL2%% +lib/libflann.so.%%SHL3%% +lib/libflann_cpp.so +lib/libflann_cpp.so.%%SHL2%% +lib/libflann_cpp.so.%%SHL3%% +lib/libflann_cpp_s.so +lib/libflann_s.so +libdata/pkgconfig/flann.pc +%%PORTDOCS%%%%DOCSDIR%%/manual.pdf +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/flann_example_c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/flann_example_cpp