Changeset View
Standalone View
lang/luajit/Makefile
# Created by: Sergey A. Osokin <osa@FreeBSD.org> | # Created by: Sergey A. Osokin <osa@FreeBSD.org> | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= luajit | PORTNAME= luajit | ||||
DISTVERSION= 2.0.5 | DISTVERSION= 2.0.5 | ||||
PORTREVISION= 1 | |||||
mat: You do not need to bump PORTREVISION, it does not change anything for the architectures where… | |||||
Not Done Inline ActionsThis is an artifact of using two different ports trees for my work (poudriere, and commit). The real ports tree does have the PORTREVISION already, my 'commit' tree does not. Will update svn and repost the fixed diff with the MAKE_ARGS correction. jhibbits: This is an artifact of using two different ports trees for my work (poudriere, and commit). | |||||
Not Done Inline ActionsNo need to re-update it, just commit it :-) mat: No need to re-update it, just commit it :-) | |||||
CATEGORIES= lang | CATEGORIES= lang | ||||
MASTER_SITES= http://luajit.org/download/ | MASTER_SITES= http://luajit.org/download/ | ||||
DISTNAME= LuaJIT-${DISTVERSION} | DISTNAME= LuaJIT-${DISTVERSION} | ||||
MAINTAINER= osa@FreeBSD.org | MAINTAINER= osa@FreeBSD.org | ||||
COMMENT= Just-In-Time Compiler for Lua | 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} | |||||
Not Done Inline ActionsYou do not need += here. mat: You do not need `+=` here. | |||||
PLIST_SUB+= VERSION=${DISTVERSION} | PLIST_SUB+= VERSION=${DISTVERSION} | ||||
ONLY_FOR_ARCHS= amd64 armv6 armv7 i386 | .if ${ARCH:Mpowerpc*} || ${ARCH:Mmips*} || ${ARCH:Msparc*} | ||||
ONLY_FOR_ARCHS_REASON= Requires newer gcc/clang to compile. | USE_GCC=yes | ||||
.endif | |||||
matUnsubmitted Not Done Inline ActionsARCH is not defined before including b.p.options.m. mat: ARCH is not defined before including b.p.options.m. | |||||
jhibbitsAuthorUnsubmitted Not Done Inline ActionsHm, now I'm wondering how my build completed successfully. jhibbits: Hm, now I'm wondering how my build completed successfully. | |||||
matUnsubmitted Not Done Inline ActionsIf you are cross-building, poudriere defines ARCH in make.conf or something, so it will work, but only when crossbuilding, it would break on amd64 for example :-) mat: If you are cross-building, poudriere defines ARCH in make.conf or something, so it will work… | |||||
jhibbitsAuthorUnsubmitted Not Done Inline ActionsAha, got it... yeah, crossbuilding to ppc32 on ppc64, and ARCH is defined in the make.conf. I guess I need to include b.p.pre.mk / b.p.post.mk? jhibbits: Aha, got it... yeah, crossbuilding to ppc32 on ppc64, and ARCH is defined in the make.conf. I… | |||||
jhibbitsAuthorUnsubmitted Not Done Inline ActionsI just tested, by adding a ".info ${ARCH}" into that block, and it did print out "powerpc". Might ARCH be defined elsewhere, too, maybe implicitly? jhibbits: I just tested, by adding a ".info ${ARCH}" into that block, and it did print out "powerpc". | |||||
matUnsubmitted Not Done Inline ActionsNo need to bring pre and post, simply include bsd.port.options.mk before the .if. mat: No need to bring pre and post, simply include bsd.port.options.mk before the .if. | |||||
post-install: | post-install: | ||||
${LN} -sf ${PORTNAME}-${DISTVERSION} \ | ${LN} -sf ${PORTNAME}-${DISTVERSION} \ | ||||
${STAGEDIR}${PREFIX}/bin/${PORTNAME} | ${STAGEDIR}${PREFIX}/bin/${PORTNAME} | ||||
@${INSTALL_MAN} ${WRKSRC}/etc/luajit.1 ${STAGEDIR}${MAN1PREFIX}/man/man1 | @${INSTALL_MAN} ${WRKSRC}/etc/luajit.1 ${STAGEDIR}${MAN1PREFIX}/man/man1 | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |
You do not need to bump PORTREVISION, it does not change anything for the architectures where it already worked, and it did not previously exist in the new architectures.