svn commit: r458594 - head/lang/luajit
Justin Hibbits
jhibbits at FreeBSD.org
Wed Jan 10 03:51:13 UTC 2018
Author: jhibbits (src committer)
Date: Wed Jan 10 03:51:12 2018
New Revision: 458594
URL: https://svnweb.freebsd.org/changeset/ports/458594
Log:
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
Modified:
head/lang/luajit/Makefile
Modified: head/lang/luajit/Makefile
==============================================================================
--- head/lang/luajit/Makefile Wed Jan 10 03:47:36 2018 (r458593)
+++ head/lang/luajit/Makefile Wed Jan 10 03:51:12 2018 (r458594)
@@ -14,11 +14,16 @@ COMMENT= Just-In-Time Compiler for Lua
WRKSRC= ${WRKDIR}/LuaJIT-${DISTVERSION}
USES= gmake
USE_LDCONFIG= yes
+MAKE_ARGS= CC=${CC}
PLIST_SUB+= VERSION=${DISTVERSION}
+BROKEN_powerpc64= Not ported to powerpc64 upstream
-ONLY_FOR_ARCHS= amd64 armv6 armv7 i386
-ONLY_FOR_ARCHS_REASON= Requires newer gcc/clang to compile.
+.include <bsd.port.options.mk>
+
+.if ${ARCH:Mpowerpc*} || ${ARCH:Mmips*} || ${ARCH:Msparc*}
+USE_GCC=yes
+.endif
post-install:
${LN} -sf ${PORTNAME}-${DISTVERSION} \
More information about the svn-ports-all
mailing list