git: 656ce340b0b1 - main - math/libbraiding: work-around to build with clang 16

From: Thierry Thomas <thierry_at_FreeBSD.org>
Date: Sun, 25 Jun 2023 16:57:17 UTC
The branch main has been updated by thierry:

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

commit 656ce340b0b153dbbb619f00152f3109f611dbb4
Author:     Thierry Thomas <thierry@FreeBSD.org>
AuthorDate: 2023-06-25 16:53:43 +0000
Commit:     Thierry Thomas <thierry@FreeBSD.org>
CommitDate: 2023-06-25 16:57:15 +0000

    math/libbraiding: work-around to build with clang 16
    
    Adding "CXXFLAGS+=-std=c++11" to fix the build on 14-CURRENT.
    
    Without that, it fails with this error:
    
    ./cbraid_implementation.h:1043:23: error: no member named 'bind2nd' in namespace 'std'
    --- braiding.lo ---
    ./cbraid_implementation.h:1043:23: error: no member named 'bind2nd' in namespace 'std'
    (+ many others)
    
    Since I’m there, strip the library.
    
    PR:             271047
    Reported by:    pkg-fallout
---
 math/libbraiding/Makefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/math/libbraiding/Makefile b/math/libbraiding/Makefile
index 8c4d8771f609..4b07dec54026 100644
--- a/math/libbraiding/Makefile
+++ b/math/libbraiding/Makefile
@@ -11,9 +11,11 @@ LICENSE=	GPLv3
 USE_GITHUB=	yes
 GH_ACCOUNT=	miguelmarco
 
-USES=		autoreconf libtool
+USES=		autoreconf  compiler:c++11-lang libtool
 
+CXXFLAGS+=	-std=c++11
 GNU_CONFIGURE=	yes
+INSTALL_TARGET=	install-strip
 USE_LDCONFIG=	yes
 
 .include <bsd.port.mk>