summaryrefslogtreecommitdiff
path: root/math/flann/Makefile
blob: d4bb7b1018df257c656d24f81695b1458ca8a9c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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>