# Created by: Martin Matuska # $FreeBSD$ PORTNAME= luajit DISTVERSIONPREFIX= v DISTVERSION= 2.1-20201027 CATEGORIES= lang PKGNAMESUFFIX= -openresty PATCH_SITES= https://github.com/openresty/luajit2/commit/ MAINTAINER= mm@FreeBSD.org COMMENT= Just-In-Time Compiler for Lua (OpenResty branch) LICENSE= MIT PD LICENSE_COMB= multi LICENSE_FILE= ${WRKSRC}/COPYRIGHT USES= gmake CONFLICTS_INSTALL= luajit USE_LDCONFIG= yes MAKE_ARGS= CC=${CC} Q= USE_GITHUB= yes GH_ACCOUNT= openresty GH_PROJECT= luajit2 LUAJIT_VERSION= 2.1.0-beta3 LUAJIT_SOVERSION= 2.1.0 PLIST_SUB+= VERSION=${LUAJIT_VERSION} SOVERSION=${LUAJIT_SOVERSION} .include .if ${ARCH:Mpowerpc*} || ${ARCH:Mmips*} USE_GCC=yes .endif .include .if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200000 MAKE_ARGS+= XCFLAGS=-DLJ_TARGET_HAS_GETENTROPY=0 .endif post-install: ${LN} -sf ${PORTNAME}-${LUAJIT_VERSION} \ ${STAGEDIR}${PREFIX}/bin/${PORTNAME} ${INSTALL_MAN} ${WRKSRC}/etc/luajit.1 ${STAGEDIR}${MAN1PREFIX}/man/man1 .include