Add support for GCC-based targets to luajit

Summary:
luajit requires CC to be passed on the command line, not via the Make
environment in order to override the Makefile.  Pass it explicitly, and for GCC
targets (powerpc, mips, sparc64) explicitly use ports GCC.

Reviewed By: mat
Differential Revision: https://reviews.freebsd.org/D13804
This commit is contained in:
Justin Hibbits 2018-01-10 03:51:12 +00:00
parent 7059d3ac07
commit d2ac3fee9c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=458594

View file

@ -14,11 +14,16 @@ COMMENT= Just-In-Time Compiler for Lua
WRKSRC= ${WRKDIR}/LuaJIT-${DISTVERSION} WRKSRC= ${WRKDIR}/LuaJIT-${DISTVERSION}
USES= gmake USES= gmake
USE_LDCONFIG= yes USE_LDCONFIG= yes
MAKE_ARGS= CC=${CC}
PLIST_SUB+= VERSION=${DISTVERSION} PLIST_SUB+= VERSION=${DISTVERSION}
BROKEN_powerpc64= Not ported to powerpc64 upstream
ONLY_FOR_ARCHS= amd64 armv6 armv7 i386 .include <bsd.port.options.mk>
ONLY_FOR_ARCHS_REASON= Requires newer gcc/clang to compile.
.if ${ARCH:Mpowerpc*} || ${ARCH:Mmips*} || ${ARCH:Msparc*}
USE_GCC=yes
.endif
post-install: post-install:
${LN} -sf ${PORTNAME}-${DISTVERSION} \ ${LN} -sf ${PORTNAME}-${DISTVERSION} \