aboutsummaryrefslogtreecommitdiff
path: root/lang/luajit/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lang/luajit/Makefile')
-rw-r--r--lang/luajit/Makefile38
1 files changed, 14 insertions, 24 deletions
diff --git a/lang/luajit/Makefile b/lang/luajit/Makefile
index 85e695a309e1..a81ff41d76c8 100644
--- a/lang/luajit/Makefile
+++ b/lang/luajit/Makefile
@@ -1,46 +1,36 @@
PORTNAME= luajit
-DISTVERSION= 2.0.5
-PORTREVISION= 7
+DISTVERSION= 2.1.0.20250728
CATEGORIES= lang
-MASTER_SITES= https://luajit.org/download/
DISTNAME= LuaJIT-${DISTVERSION}
-PATCH_SITES= https://github.com/LuaJIT/LuaJIT/commit/
-PATCHFILES= a4f4f5b83564a1075bea0ac7c1fd8768be1caff7.patch:-p1
-
-MAINTAINER= ports@FreeBSD.org
+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
+IGNORE_riscv64= fails to compile: lj_arch.h:73:2: No support for this architecture (yet)
-WRKSRC= ${WRKDIR}/LuaJIT-${DISTVERSION}
USES= compiler cpe gmake
+
+CONFLICTS_INSTALL= luajit-openresty
+
USE_LDCONFIG= yes
-MAKE_ARGS= CC=${CC} CCOPT= CCOPT_x86=
+MAKE_ARGS= CC=${CC} CCOPT= CCOPT_x86= Q=
-PLIST_SUB+= VERSION=${DISTVERSION}
+USE_GITHUB= yes
+GH_TUPLE= LuaJIT:LuaJIT:871db2c
-.include <bsd.port.pre.mk>
+LUAJIT_VERSION= 2.1
+LUAJIT_SOVERSION= 2.1.1753364724
-.if ${PORT_OPTIONS:MPTHREAD}
-LDFLAGS+= -lm -pthread
-.endif
+PLIST_SUB+= VERSION=${LUAJIT_VERSION} SOVERSION=${LUAJIT_SOVERSION}
post-install:
- ${LN} -sf ${PORTNAME}-${DISTVERSION} \
+ ${LN} -sf ${PORTNAME}-${LUAJIT_SOVERSION} \
${STAGEDIR}${PREFIX}/bin/${PORTNAME}
${INSTALL_MAN} ${WRKSRC}/etc/luajit.1 ${STAGEDIR}${PREFIX}/share/man/man1
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>