1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00

mail/rspamd: fix build on powerpc64 elfv2, switch to luajit-openresty on powerpc64

On powerpc64, binaries with clang and LTO on powerpc64 segfault at start, use GCC instead.

Enable luajit using luajit-openresty.
This commit is contained in:
Piotr Kubaj 2020-09-23 16:42:39 +00:00
parent 76d4c272f4
commit d0f02e351c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=549747

View File

@ -17,7 +17,7 @@ LIB_DEPENDS= libpcre.so:devel/pcre \
BUILD_DEPENDS= ragel:devel/ragel
RUN_DEPENDS= ca_root_nss>=3.*:security/ca_root_nss
USES= cmake compiler:c11 gnome perl5 pkgconfig \
USES= cmake gnome perl5 pkgconfig \
sqlite ssl
USE_LDCONFIG= yes
USE_PERL5= build run
@ -34,6 +34,7 @@ OPTIONS_DEFAULT_amd64= LUAJIT
OPTIONS_DEFAULT_armv7= LUAJIT
OPTIONS_DEFAULT_i386= LUAJIT
OPTIONS_DEFAULT_powerpc= LUAJIT
OPTIONS_DEFAULT_powerpc64= LUAJIT
OPTIONS_SUB= yes
BLAS_DESC= Use OpenBLAS to accelerate KANN
@ -76,6 +77,15 @@ CGP_RUN_DEPENDS+= \
p5-EV>=0:devel/p5-EV \
p5-JSON-XS>=0:converters/p5-JSON-XS
.include <bsd.port.options.mk>
.if ${ARCH} == powerpc64
LUAJIT_LIB_DEPENDS= libluajit-5.1.so:lang/luajit-openresty
USES+= compiler:gcc-c++11-lib
.else
USES+= compiler:c11
.endif
post-install:
@${MKDIR} \
${STAGEDIR}/var/log/rspamd \