ports/math/faiss/Makefile
Yuri Victorovich 64545c162a math/{,py-}faiss: update 1.7.4 → 1.8.0
Reported by:	portscout
2024-03-04 18:17:25 -08:00

35 lines
1.1 KiB
Makefile

PORTNAME= faiss
DISTVERSIONPREFIX= v
DISTVERSION= 1.8.0
CATEGORIES= math
PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
PATCHFILES= 70c5de13cd9e2ce94181fe67d9a70eb371ecd554.patch:-p1 # fix GTest linkage
MAINTAINER= yuri@FreeBSD.org
COMMENT= Library for efficient similarity search & clustering of dense vectors
WWW= https://github.com/facebookresearch/faiss
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
.if !exists(/usr/include/omp.h)
BROKEN= requires OpenMP support that is missing on this architecture
.endif
BUILD_DEPENDS= openblas>0:math/openblas # faiss links with libopenblasp-rN.N.N.so (installed by default only on amd64,i386), so use non-filename-specific DEPENDS commands
RUN_DEPENDS= openblas>0:math/openblas
TEST_DEPENDS= googletest>0:devel/googletest
USES= cmake:testing compiler:c++11-lang localbase:ldflags # tests fail to link, see https://github.com/facebookresearch/faiss/issues/2654
USE_GITHUB= yes
GH_ACCOUNT= facebookresearch
#LDFLAGS+= -lgtest #-pthread
CMAKE_ON= BUILD_SHARED_LIBS
CMAKE_OFF= BUILD_TESTING FAISS_ENABLE_GPU FAISS_ENABLE_PYTHON
.include <bsd.port.mk>