git: fdca837b4546 - main - devel/sfml: Fix build with llvm16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 24 Jun 2023 20:49:30 UTC
The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=fdca837b4546b486f24d19ec8aa2d9a79652d2e1 commit fdca837b4546b486f24d19ec8aa2d9a79652d2e1 Author: Muhammad Moinur Rahman <bofh@FreeBSD.org> AuthorDate: 2023-06-24 19:45:50 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2023-06-24 20:48:37 +0000 devel/sfml: Fix build with llvm16 Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation --- devel/sfml/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/devel/sfml/Makefile b/devel/sfml/Makefile index 142214a14319..7299db5bd74b 100644 --- a/devel/sfml/Makefile +++ b/devel/sfml/Makefile @@ -58,6 +58,14 @@ DOXYGEN_IMPLIES= DOCS EXAMPLES_CMAKE_BOOL= SFML_BUILD_EXAMPLES +.include <bsd.port.options.mk> + +post-patch: +.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091 + @${REINPLACE_CMD} -e 's|auto_ptr|unique_ptr|' \ + ${WRKSRC}/src/SFML/Audio/AudioDevice.cpp +.endif + post-install: @${RM} ${STAGEDIR}${PREFIX}/*.pc