Browse Source

irc/srvx: fix build on armv? and powerpc

They use long long for time_t.
Piotr Kubaj 2 years ago
parent
commit
adfc77c722
  1. 9
      irc/srvx/Makefile

9
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

Loading…
Cancel
Save