git: 4c85c4afba33 - main - misc/xplr: fix build on powerpc

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Tue, 16 Nov 2021 12:11:08 UTC
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=4c85c4afba3320edbc69a735d8fa096bf59fd45f

commit 4c85c4afba3320edbc69a735d8fa096bf59fd45f
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2021-11-16 12:03:51 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2021-11-16 12:03:51 +0000

    misc/xplr: fix build on powerpc
    
    Same issue as on powerpc64 and powerpc64le, except that vanilla luajit works fine on powerpc.
---
 misc/xplr/Makefile | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/misc/xplr/Makefile b/misc/xplr/Makefile
index f2129048312a..8a8e25c6ca7f 100644
--- a/misc/xplr/Makefile
+++ b/misc/xplr/Makefile
@@ -153,6 +153,11 @@ EXTRA_PATCHES=	${FILESDIR}/extra-patch-Cargo.toml
 LIB_DEPENDS=	libluajit-5.1.so:lang/luajit-openresty
 .endif
 
+.if ${ARCH} == powerpc
+EXTRA_PATCHES=	${FILESDIR}/extra-patch-Cargo.toml
+LIB_DEPENDS=	libluajit-5.1.so:lang/luajit
+.endif
+
 post-install:
 	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}