Hi!
It looks like that flann ships broken .pc file. With this
installed graphics/hugin fails to build with
"undefined reference to LZ4_compress_HC_continue" error.

Should we fix flann itself as done in FreeBSD:
Index: Makefile
===================================================================
RCS file: /cvs/ports/math/flann/Makefile,v
diff -u -p -u -r1.1.1.1 Makefile
--- Makefile    27 Dec 2024 16:13:10 -0000      1.1.1.1
+++ Makefile    13 Jan 2025 05:51:07 -0000
@@ -1,4 +1,5 @@
 COMMENT =              fast library for approximate nearest neighbors
+REVISION =             0

 DIST_TUPLE +=          github flann-lib flann 1.9.2 .

@@ -30,5 +31,8 @@ CONFIGURE_ARGS =      -DBUILD_C_BINDINGS=ON \
                        -DBUILD_DOC=OFF \
                        -DUSE_OPENMP=OFF \
                        -DUSE_MPI=OFF
+post-install:
+       # workaround for https://github.com/mariusmuja/flann/issues/466
+       sed -i -e 's/lib;-llz4/lib -llz4/' ${PREFIX}/lib/pkgconfig/flann.pc

 .include <bsd.port.mk>

or add -llz4 to LGFLAGS in graphics/hugin?

Reply via email to