2019-09-09 10:57:54 +02:00
|
|
|
PORTNAME= luajit
|
2019-09-16 01:09:47 +02:00
|
|
|
DISTVERSIONPREFIX= v
|
2022-04-11 21:48:35 +02:00
|
|
|
DISTVERSION= 2.1-20220411
|
2019-09-09 10:57:54 +02:00
|
|
|
CATEGORIES= lang
|
|
|
|
PKGNAMESUFFIX= -openresty
|
|
|
|
|
2020-09-21 21:19:57 +02:00
|
|
|
PATCH_SITES= https://github.com/openresty/luajit2/commit/
|
|
|
|
|
2019-09-09 10:57:54 +02:00
|
|
|
MAINTAINER= mm@FreeBSD.org
|
|
|
|
COMMENT= Just-In-Time Compiler for Lua (OpenResty branch)
|
|
|
|
|
|
|
|
LICENSE= MIT PD
|
|
|
|
LICENSE_COMB= multi
|
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYRIGHT
|
|
|
|
|
2021-01-13 00:24:09 +01:00
|
|
|
IGNORE_riscv64= fails to compile: lj_arch.h:73:2: No support for this architecture (yet)
|
|
|
|
|
2021-10-20 18:13:17 +02:00
|
|
|
USES= cpe gmake
|
2019-09-09 10:57:54 +02:00
|
|
|
|
2021-10-28 03:10:40 +02:00
|
|
|
CONFLICTS_INSTALL= luajit luajit-devel
|
2019-09-09 10:57:54 +02:00
|
|
|
|
|
|
|
USE_LDCONFIG= yes
|
2020-11-22 11:06:03 +01:00
|
|
|
MAKE_ARGS= CC=${CC} Q=
|
2019-09-09 10:57:54 +02:00
|
|
|
|
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= openresty
|
|
|
|
GH_PROJECT= luajit2
|
|
|
|
|
2019-09-16 11:52:19 +02:00
|
|
|
LUAJIT_VERSION= 2.1.0-beta3
|
|
|
|
LUAJIT_SOVERSION= 2.1.0
|
|
|
|
|
|
|
|
PLIST_SUB+= VERSION=${LUAJIT_VERSION} SOVERSION=${LUAJIT_SOVERSION}
|
2019-09-09 10:57:54 +02:00
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2020-05-18 02:41:58 +02:00
|
|
|
.if ${ARCH:Mpowerpc*} || ${ARCH:Mmips*}
|
2019-09-09 10:57:54 +02:00
|
|
|
USE_GCC=yes
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
2019-09-16 11:52:19 +02:00
|
|
|
${LN} -sf ${PORTNAME}-${LUAJIT_VERSION} \
|
2019-09-09 10:57:54 +02:00
|
|
|
${STAGEDIR}${PREFIX}/bin/${PORTNAME}
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/etc/luajit.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
|
|
|
|
|
2021-09-11 16:57:58 +02:00
|
|
|
.include <bsd.port.mk>
|