Files
ports/lang/luajit/Makefile
T
Piotr Kubaj 44378cfde0 lang/luajit: use clang on powerpc
Merge recent patch for luajit that fixes build with clang.
Since clang's assembler before LLVM 14 doesn't understand some
instructions, use binutils' as when using older LLVM.
2023-01-05 00:04:12 +01:00

52 lines
1.3 KiB
Makefile

PORTNAME= luajit
DISTVERSION= 2.0.5
PORTREVISION= 6
CATEGORIES= lang
MASTER_SITES= https://luajit.org/download/
DISTNAME= LuaJIT-${DISTVERSION}
PATCH_SITES= https://github.com/LuaJIT/LuaJIT/commit/
PATCHFILES= a4f4f5b83564a1075bea0ac7c1fd8768be1caff7.patch:-p1
MAINTAINER= osa@FreeBSD.org
COMMENT= Just-In-Time Compiler for Lua
WWW= https://luajit.org/luajit.html
OPTIONS_DEFINE= PTHREAD
PTHREAD_DESC= with pthread support
LICENSE= MIT PD
LICENSE_COMB= multi
LICENSE_FILE= ${WRKSRC}/COPYRIGHT
IGNORE_aarch64= fails to compile: lj_arch.h:55:2: No support for this architecture (yet)
IGNORE_powerpc64= fails to compile: lj_arch.h:346:2: No support for PowerPC 64 bit mode
IGNORE_riscv64= fails to compile: lj_arch.h:55:2: No support for this architecture (yet)
CONFLICTS_INSTALL= luajit-devel luajit-openresty
WRKSRC= ${WRKDIR}/LuaJIT-${DISTVERSION}
USES= compiler cpe gmake
USE_LDCONFIG= yes
MAKE_ARGS= CC=${CC} CCOPT= CCOPT_x86=
PLIST_SUB+= VERSION=${DISTVERSION}
.include <bsd.port.pre.mk>
.if ${ARCH:Mpowerpc*} && ${COMPILER_VERSION} < 140
BUILD_DEPENDS+= as:devel/binutils
CFLAGS+= -fno-integrated-as
.endif
.if ${PORT_OPTIONS:MPTHREAD}
LDFLAGS+= -lm -pthread
.endif
post-install:
${LN} -sf ${PORTNAME}-${DISTVERSION} \
${STAGEDIR}${PREFIX}/bin/${PORTNAME}
${INSTALL_MAN} ${WRKSRC}/etc/luajit.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
.include <bsd.port.post.mk>