Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Aug 2023 18:30:46 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: 1be2301c64ab - main - devel/ptlib: Fix build with llvm16
Message-ID:  <202308061830.376IUkDu034154@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=1be2301c64abd5c75520fc395246d1ca9bd931c1

commit 1be2301c64abd5c75520fc395246d1ca9bd931c1
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-08-06 17:36:38 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-08-06 18:30:37 +0000

    devel/ptlib: Fix build with llvm16
    
    Approved by:    portmgr (blanket)
    Sponsored by:   The FreeBSD Foundation
---
 devel/ptlib/Makefile | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/devel/ptlib/Makefile b/devel/ptlib/Makefile
index e53c9ca8c6c6..3d3a124ff396 100644
--- a/devel/ptlib/Makefile
+++ b/devel/ptlib/Makefile
@@ -117,8 +117,20 @@ CONFIGURE_ARGS+=	--disable-dc
 #PLIST_SUB+=	DC1394="@comment "
 #.endif
 
+.include <bsd.port.pre.mk>
+
+.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160
+CPPFLAGS+=	-Dregister= -Wno-error=dynamic-exception-spec
+.endif
+
 post-patch:
 	@${REINPLACE_CMD} -e 's/RTF_WASCLONED/0x20000/' ${WRKSRC}/src/ptlib/unix/socket.cxx
+.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160
+	@${REINPLACE_CMD} -e 's|auto_ptr|unique_ptr|' \
+		${WRKSRC}/include/ptlib/psharedptr.h
+	@${REINPLACE_CMD} -e 's|public binary_function|public __binary_function|' \
+		${WRKSRC}/include/ptlib/pprocess.h
+.endif
 
 pre-configure:
 	(cd ${WRKSRC}/plugins/ && ${AUTORECONF} -fi)
@@ -135,4 +147,4 @@ post-install-DEBUG-on:
 	${LN} -sf libpt_d.so.${PORTVERSION} ${STAGEDIR}${PREFIX}/lib/libpt_d.so.${PVERSION_MAJOR}
 	${LN} -sf libpt_d.so.${PORTVERSION} ${STAGEDIR}${PREFIX}/lib/libpt_d.so.${PVERSION_MINOR}
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>



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