freebsd-ports/math/flann/Makefile
Po-Chuan Hsieh 328ae40742
*/*: Replace science/szip with science/libaec
- Bump PORTREVISION of dependent ports for dependency change

szip does not allow redistribution in binary form without proper commercial
license. Its LICENSE_PERMS should be set to no-auto-accept which blocks building
this port, therefore building dependent ports are also blocked. Switch all
dependent ports to science/libaec to avoid conflicts and license issue.

PR:		228743, 246097, 250165
2022-06-16 23:13:01 +08:00

29 lines
844 B
Makefile

PORTNAME= flann
DISTVERSION= 1.9.2
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/libaec
USES= cmake compiler:c++11-lang localbase:ldflags pkgconfig
USE_LDCONFIG= yes
USE_GITHUB= yes
GH_ACCOUNT= tkircher
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>