Created attachment 228740 [details]
Upstream's configure.ac contains a lot of logic to enable builds optimized for the local machine, but it seems this only happens when a hardcoded variable is changed from 'no' to 'yes'. Therefore, I suggest to add a port option enabling this and remove the restriction for package building. The attached patch also makes sure to pass CFLAGS to the configure script in a way that allows it to combine them with upstream's CFLAGS.
I also found the distfile on all SF mirrors is slightly larger than the one expected in distinfo. As I don't have the old distfile, I can't check whether this is actually legit.
A commit in branch main references this bug:
Author: Stephen Montgomery-Smith <stephen@FreeBSD.org>
AuthorDate: 2021-10-16 10:18:49 +0000
Commit: Stephen Montgomery-Smith <stephen@FreeBSD.org>
CommitDate: 2021-10-16 10:18:49 +0000
math/librsb: Allow package building, add option for local optimization.
Also update distinfo, and bump portrevision.
Reported by: Felix Palmen <email@example.com>
math/librsb/Makefile | 12 +++++++++---
math/librsb/distinfo | 6 +++---
2 files changed, 12 insertions(+), 6 deletions(-)
Committed. Thank you very much for this bug report.