1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00

audio/libaudiofile: Fix build with llvm16

- Pet portclippy

Approved by:	portmgr (blanket)
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Muhammad Moinur Rahman 2023-06-24 03:35:50 +02:00
parent 9163e631b1
commit c441b60811

View File

@ -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>