git: faa87e834fd3 - main - math/lemon: Fix build with llvm16

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Mon, 26 Jun 2023 00:10:03 UTC
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=faa87e834fd3859834bda99caebaa718b344b73d

commit faa87e834fd3859834bda99caebaa718b344b73d
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-25 23:33:24 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-26 00:09:47 +0000

    math/lemon: Fix build with llvm16
    
    Approved by:    portmgr (blanket)
    Sponsored by:   The FreeBSD Foundation
---
 math/lemon/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/math/lemon/Makefile b/math/lemon/Makefile
index 81e0e02ab335..a695e8fc07c1 100644
--- a/math/lemon/Makefile
+++ b/math/lemon/Makefile
@@ -32,6 +32,12 @@ GLPK_DESC=		Build with GLPK solver
 GLPK_CMAKE_BOOL=	LEMON_ENABLE_GLPK
 GLPK_LIB_DEPENDS=	libglpk.so:math/glpk
 
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CXXFLAGS+=  -Dregister=
+.endif
+
 post-install:
 	@${RM} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}-0.x-to-1.x.sh