git: 0bd6295fb8d6 - main - net/spread: Fix build with llvm16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 23 Jul 2023 15:53:09 UTC
The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=0bd6295fb8d6bf0d89ba3728d43dceae8b7600c1 commit 0bd6295fb8d6bf0d89ba3728d43dceae8b7600c1 Author: Muhammad Moinur Rahman <bofh@FreeBSD.org> AuthorDate: 2023-07-23 12:09:03 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2023-07-23 15:53:01 +0000 net/spread: Fix build with llvm16 - Utilize OPTIONSNG where applicable - Pet portclippy Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation --- net/spread/Makefile | 43 ++++++++++++++++++++++++++----------------- 1 file changed, 26 insertions(+), 17 deletions(-) diff --git a/net/spread/Makefile b/net/spread/Makefile index 641f5220219a..537d4e279fc3 100644 --- a/net/spread/Makefile +++ b/net/spread/Makefile @@ -14,38 +14,45 @@ LICENSE_NAME= Spread Open-Source License LICENSE_FILE= files/LICENSE LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept -MAKE_JOBS_UNSAFE= yes - -GNU_CONFIGURE= yes USES= groff perl5 tar:xz +USE_LDCONFIG= yes USE_PERL5= build run USE_RC_SUBR= spread -USE_LDCONFIG= yes -USERS= spread -GROUPS= spread -RUNDIR= /var/run/spread - -PLIST_SUB+= USERS=${USERS} GROUPS=${GROUPS} RUNDIR=${RUNDIR} +GNU_CONFIGURE= yes +# The configure script fails to find nroff in LOCALBASE, but works fine if +# 'groff' is used directly +CONFIGURE_ENV+= ac_cv_path_NROFF=groff MAKE_ARGS+= PTHREAD_LIBS="-lpthread" +MAKE_JOBS_UNSAFE= yes + +TARGET_ORDER_OVERRIDE= 710:fix-perl-things + WRKSRC= ${WRKDIR}/${PORTNAME}-src-${PORTVERSION} +USERS= spread +GROUPS= spread + PKGMESSAGE= ${WRKSRC}/license.txt +PLIST_SUB+= USERS=${USERS} GROUPS=${GROUPS} RUNDIR=${RUNDIR} PORTDOCS= Readme.txt LICENSE + +RUNDIR= /var/run/spread + HEADERFILES= sp_func.h sp_func.h sp_events.h OPTIONS_DEFINE= DOCS -# The configure script fails to find nroff in LOCALBASE, but works fine if -# 'groff' is used directly - -CONFIGURE_ENV+= ac_cv_path_NROFF=groff # bsd.port.mk doesn't allow us to use GNU_CONFIGURE and PERL_CONFIGURE together. PERL_CONFIGURE_ARGS= CC="${CC}" CCFLAGS="${CFLAGS}" PREFIX="${PREFIX}" \ INSTALLPRIVLIB="${PREFIX}/lib" INSTALLARCHLIB="${PREFIX}/lib" -TARGET_ORDER_OVERRIDE= 710:fix-perl-things +.include <bsd.port.options.mk> + +.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091 +CFLAGS+= -Wno-error=incompatible-function-pointer-types +.endif post-configure: @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \ @@ -69,12 +76,14 @@ post-install: (cd ${WRKSRC}/perl/Spread && ${MAKE} PREFIX=${STAGEDIR}${PREFIX} install) ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/perl/Spread/test.pl ${STAGEDIR}${EXAMPLESDIR} - ${MKDIR} ${STAGEDIR}${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/Readme.txt ${STAGEDIR}${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/license.txt ${STAGEDIR}${DOCSDIR}/LICENSE ${INSTALL} -m 750 -d ${STAGEDIR}${RUNDIR} ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libspread.so.1 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libtspread.so.1 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Spread/Spread.so +post-install-DOCS-on: + ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/Readme.txt ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/license.txt ${STAGEDIR}${DOCSDIR}/LICENSE + .include <bsd.port.mk>