git: fbf53dfd85d5 - main - games/instead: fix build on powerpc64* with LUAJIT

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Wed, 04 Jan 2023 23:04:22 UTC
The branch main has been updated by pkubaj:

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

commit fbf53dfd85d53eb47f1b23bca62dd7d0a8fc234d
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2023-01-04 21:46:07 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2023-01-04 23:04:12 +0000

    games/instead: fix build on powerpc64* with LUAJIT
    
    lang/luajit doesn't work on powerpc64*.
---
 games/instead/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/games/instead/Makefile b/games/instead/Makefile
index bb664f1fa1e0..d965e0782d1d 100644
--- a/games/instead/Makefile
+++ b/games/instead/Makefile
@@ -43,4 +43,10 @@ LUAJIT_CMAKE_BOOL=	WITH_LUAJIT
 HARFBUZZ_CMAKE_BOOL=	WITH_HARFBUZZ
 HARFBUZZ_LIB_DEPENDS=	libharfbuzz.so:print/harfbuzz
 
+.include <bsd.port.options.mk>
+
+.if ${ARCH:Mpowerpc64*}
+LUAJIT_LIB_DEPENDS=	libluajit-5.1.so:lang/luajit-openresty
+.endif
+
 .include <bsd.port.mk>