aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2023-01-12 05:23:33 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2023-01-12 05:25:23 +0000
commit99f1575aa19c4f727561c8e8a6f858e8c681958d (patch)
tree78a0cf8a09a9d35300e8672daea4b0c588e2ab07
parentd4da7e500ab0022b0a4b48fd5918b425d20f140d (diff)
math/annoy: New port: Approximate Nearest Neighbors in C++
-rw-r--r--math/Makefile1
-rw-r--r--math/annoy/Makefile27
-rw-r--r--math/annoy/distinfo3
-rw-r--r--math/annoy/pkg-descr4
4 files changed, 35 insertions, 0 deletions
diff --git a/math/Makefile b/math/Makefile
index 6e2c159a88df..6392ae0c3cdd 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -167,6 +167,7 @@
SUBDIR += amgcl
SUBDIR += analitza
SUBDIR += ann
+ SUBDIR += annoy
SUBDIR += antic
SUBDIR += apache-commons-math
SUBDIR += apc
diff --git a/math/annoy/Makefile b/math/annoy/Makefile
new file mode 100644
index 000000000000..ac0bd0c37e3b
--- /dev/null
+++ b/math/annoy/Makefile
@@ -0,0 +1,27 @@
+PORTNAME= annoy
+DISTVERSIONPREFIX= v
+DISTVERSION= 1.17.1
+CATEGORIES= math
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Approximate Nearest Neighbors in C++
+WWW= https://github.com/spotify/annoy
+
+LICENSE= APACHE20
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+USES= cmake
+
+USE_GITHUB= yes
+GH_ACCOUNT= spotify
+
+PLIST_FILES= include/annoy/annoylib.h \
+ include/annoy/kissrandom.h \
+ include/annoy/mman.h
+
+NO_ARCH= yes
+
+do-install:
+ cd ${WRKSRC}/include && ${COPYTREE_SHARE} annoy ${STAGEDIR}${PREFIX}/include
+
+.include <bsd.port.mk>
diff --git a/math/annoy/distinfo b/math/annoy/distinfo
new file mode 100644
index 000000000000..7820871881b9
--- /dev/null
+++ b/math/annoy/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1673498821
+SHA256 (spotify-annoy-v1.17.1_GH0.tar.gz) = 4f7a2f2d86d45b432de68dba06667b23d0ce2b03595d64bd5c05f42dc32e7f4b
+SIZE (spotify-annoy-v1.17.1_GH0.tar.gz) = 674087
diff --git a/math/annoy/pkg-descr b/math/annoy/pkg-descr
new file mode 100644
index 000000000000..8d40cf570d67
--- /dev/null
+++ b/math/annoy/pkg-descr
@@ -0,0 +1,4 @@
+Annoy (Approximate Nearest Neighbors Oh Yeah) is a C++ library with Python
+bindings to search for points in space that are close to a given query point.
+It also creates large read-only file-based data structures that are mmapped
+into memory so that many processes may share the same data.