git: c441b60811c2 - main - audio/libaudiofile: Fix build with llvm16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 24 Jun 2023 04:38:07 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=c441b60811c20ea1ccf79513b66d11eb9632d9f9
commit c441b60811c20ea1ccf79513b66d11eb9632d9f9
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-24 01:35:50 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-24 04:37:52 +0000
audio/libaudiofile: Fix build with llvm16
- Pet portclippy
Approved by: portmgr (blanket)
Sponsored by: The FreeBSD Foundation
---
audio/libaudiofile/Makefile | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/audio/libaudiofile/Makefile b/audio/libaudiofile/Makefile
index 4f56710263c7..bcf2bc021f1d 100644
--- a/audio/libaudiofile/Makefile
+++ b/audio/libaudiofile/Makefile
@@ -17,11 +17,19 @@ CONFLICTS= osalp-0.7.*
USES= cpe pathfix pkgconfig tar:xz libtool
CPE_PRODUCT= audiofile
-
USE_LDCONFIG= yes
+
GNU_CONFIGURE= yes
+.include <bsd.port.pre.mk>
+
+post-patch:
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+ @${REINPLACE_CMD} -e 's|std::unary_function|std::__unary_function|' \
+ ${WRKSRC}/libaudiofile/modules/SimpleModule.h
+.endif
+
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libaudiofile.so.1
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>