9aa21a0e6a
MFH: 2020Q3
31 lines
888 B
Makefile
31 lines
888 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= flann
|
|
DISTVERSION= 1.9.1-29
|
|
DISTVERSIONSUFFIX= -g1d04523
|
|
PORTREVISION= 1
|
|
CATEGORIES= math
|
|
|
|
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 \
|
|
liblz4.so:archivers/liblz4 \
|
|
libsz.so:science/szip
|
|
|
|
USES= cmake compiler:c++11-lang localbase:ldflags pkgconfig
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= mariusmuja
|
|
USE_LDCONFIG= yes
|
|
|
|
CMAKE_OFF= BUILD_PYTHON_BINDINGS BUILD_MATLAB_BINDINGS BUILD_EXAMPLES BUILD_TESTS BUILD_DOC \
|
|
USE_OPENMP # OpenMP search is broken in cmake: https://gitlab.kitware.com/cmake/cmake/issues/17474
|
|
|
|
post-install: # workaround for https://github.com/mariusmuja/flann/issues/466
|
|
${REINPLACE_CMD} -i '' -e 's/lib;-llz4/lib -llz4/' ${STAGEDIR}${PREFIX}/libdata/pkgconfig/flann.pc
|
|
|
|
.include <bsd.port.mk>
|