git: dfbc45cbf00f - main - devel/sope2: Fix build with llvm16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 08 Aug 2023 01:49:11 UTC
The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=dfbc45cbf00fe37dec9c0c2023e47efff9d2cf35 commit dfbc45cbf00fe37dec9c0c2023e47efff9d2cf35 Author: Muhammad Moinur Rahman <bofh@FreeBSD.org> AuthorDate: 2023-08-08 01:16:33 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2023-08-08 01:48:39 +0000 devel/sope2: Fix build with llvm16 Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation --- devel/sope2/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/devel/sope2/Makefile b/devel/sope2/Makefile index 39c84d44d31e..aa70d82beba5 100644 --- a/devel/sope2/Makefile +++ b/devel/sope2/Makefile @@ -39,6 +39,12 @@ PGSQL_USES= pgsql MYSQL_USES= mysql MEMCACHED_RUN_DEPENDS= ${LOCALBASE}/bin/memcached:databases/memcached +.include <bsd.port.options.mk> + +.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 )) +ADDITIONAL_CPPFLAGS+= -Wno-error=incompatible-function-pointer-types +.endif + post-patch: @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/configure @${REINPLACE_CMD} -e 's|gcc|${CC}|g' ${WRKSRC}/sope-core/NGStreams/configure