Skip to content

Commit

Permalink
irc/srvx: fix build on armv? and powerpc
Browse files Browse the repository at this point in the history
They use long long for time_t.
  • Loading branch information
pkubaj committed Mar 12, 2023
1 parent ccb1ade commit adfc77c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions irc/srvx/Makefile
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit adfc77c

Please sign in to comment.