git: adfc77c72256 - main - irc/srvx: fix build on armv? and powerpc
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 12 Mar 2023 00:18:45 UTC
The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=adfc77c722567936369ab7ad636d19d071e985b9 commit adfc77c722567936369ab7ad636d19d071e985b9 Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2023-03-12 00:00:56 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2023-03-12 00:00:56 +0000 irc/srvx: fix build on armv? and powerpc They use long long for time_t. --- irc/srvx/Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/irc/srvx/Makefile b/irc/srvx/Makefile index 2d5637e03ed6..7bd088e16aea 100644 --- a/irc/srvx/Makefile +++ b/irc/srvx/Makefile @@ -10,9 +10,6 @@ WWW= http://www.srvx.net/ LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/COPYING -BROKEN_armv6= fails to configure: Cannot detect format string for time_t -BROKEN_armv7= fails to configure: Cannot detect format string for time_t - USES= cpe GNU_CONFIGURE= yes CONFIGURE_ARGS= --without-getopt @@ -29,6 +26,12 @@ BAHAMUT_DESC= Enable Bahamut protocol (P10 is default) DEBUG_CONFIGURE_ON= --enable-debug BAHAMUT_CONFIGURE_ON= --with-protocol=bahamut +.include <bsd.port.options.mk> + +.if ${ARCH:Marmv?} || ${ARCH} == powerpc +CONFIGURE_ENV+= ac_cv_fmt_time_t="\"%lli\"" +.endif + post-patch: @${REINPLACE_CMD} -e 's|srvx\.conf|${PREFIX}/etc/srx.conf|' \ ${WRKSRC}/src/main.c