git: 70dac127ed05 - main - math/cocoalib: Fix build with llvm16

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Wed, 26 Jul 2023 09:40:29 UTC
The branch main has been updated by bofh:

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

commit 70dac127ed051f5c004753baebfc9e9adda4acbd
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-07-26 09:38:47 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-07-26 09:40:13 +0000

    math/cocoalib: Fix build with llvm16
    
    - Utilize USES=localbase
    
    Approved by:    portmgr (blanket)
    Sponsored by:   The FreeBSD Foundation
---
 math/cocoalib/Makefile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/math/cocoalib/Makefile b/math/cocoalib/Makefile
index fc5e9a825187..53015ae266b7 100644
--- a/math/cocoalib/Makefile
+++ b/math/cocoalib/Makefile
@@ -16,7 +16,8 @@ LICENSE_FILE_GFDL=		${WRKSRC}/doc/COPYING
 BUILD_DEPENDS=	bash:shells/bash
 LIB_DEPENDS=	libgmp.so:math/gmp
 
-USES=		compiler:c++11-lang shebangfix tar:tgz
+USES=		compiler:c++11-lang localbase:ldflag shebangfix tar:tgz
+USE_CXXSTD=	c++14
 USE_LDCONFIG=	yes
 
 SHEBANG_GLOB=	*.sh
@@ -25,11 +26,10 @@ CXXFLAGS+=	-I${WRKSRC}/include \
 		-I${WRKSRC}/src/AlgebraicCore/TmpFactorDir \
 		-I${WRKSRC}/src/AlgebraicCore/TmpFactorDir/multivariate \
 		-I${WRKSRC}/src/AlgebraicCore/TmpFactorDir/linalg \
-		-I${LOCALBASE}/include \
 		-DCoCoA_ULONG2LONG=1 \
 		-DCoCoA_ULONGLONG2LONGLONG=1 \
 		-fPIC
-LDFLAGS+=	-L${LOCALBASE}/lib -L${BUILD_WRKSRC} -lcocoa -lgmp
+LDFLAGS+=	-L${BUILD_WRKSRC} -lcocoa -lgmp
 
 BUILD_WRKSRC=	${WRKSRC}/src/AlgebraicCore