diff options
author | Piotr Kubaj <pkubaj@FreeBSD.org> | 2023-03-12 00:00:56 +0000 |
---|---|---|
committer | Piotr Kubaj <pkubaj@FreeBSD.org> | 2023-03-12 00:00:56 +0000 |
commit | adfc77c722567936369ab7ad636d19d071e985b9 (patch) | |
tree | eb74392b7a7a9491a94218da1cfbffcf6f6148b8 /irc/srvx | |
parent | ccb1ade3a7b115bbfb9b5355ccba4f4421cb9b0e (diff) | |
download | ports-adfc77c722567936369ab7ad636d19d071e985b9.tar.gz ports-adfc77c722567936369ab7ad636d19d071e985b9.zip |
irc/srvx: fix build on armv? and powerpc
They use long long for time_t.
Diffstat (limited to 'irc/srvx')
-rw-r--r-- | irc/srvx/Makefile | 9 |
1 files 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 |