Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Jul 2023 17:47:04 GMT
From:      Muhammad Moinur Rahman <bofh@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 91bc9e8990ad - main - devel/libs11n: Fix build with llvm16
Message-ID:  <202307161747.36GHl4dr095828@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by bofh:

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

commit 91bc9e8990add7abfe33a7330c770536b03a58e7
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-07-16 16:29:20 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-07-16 17:46:50 +0000

    devel/libs11n: Fix build with llvm16
    
    - Pet portclippy
    - Adopt port
    
    Sponsored by:   The FreeBSD Foundation
---
 devel/libs11n/Makefile | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/devel/libs11n/Makefile b/devel/libs11n/Makefile
index 6001298e0ce8..b16cb8f56611 100644
--- a/devel/libs11n/Makefile
+++ b/devel/libs11n/Makefile
@@ -12,6 +12,7 @@ WWW=		http://s11n.net/
 LICENSE=	PD
 
 USES=		uidfix zip
+USE_CXXSTD=	c++11
 USE_LDCONFIG=	yes
 
 PORTSCOUT=	limitw:1,even
@@ -29,6 +30,14 @@ PLIST_SUB+=	PROFILE=""
 post-extract:
 	@${CP} ${PATCHDIR}/Makefile.bsd ${WRKSRC}/Makefile
 
+post-patch:
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+	@${REINPLACE_CMD} -e 's|auto_ptr|unique_ptr|' \
+		${WRKSRC}/../include/s11n.net/s11n/algo.tpp \
+		${WRKSRC}/../include/s11n.net/s11n/io/data_node_format.hpp \
+		${WRKSRC}/../include/s11n.net/s11n/io/data_node_io.hpp
+.endif
+
 pre-install:
 	${MKDIR} ${STAGEDIR}${PREFIX}/include/s11n.net
 	${MKDIR} ${STAGEDIR}${PREFIX}/include/s11n.net/s11n



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202307161747.36GHl4dr095828>