From e721d88bb6e3d3dd9a912b7877b0b141b3ab2a9e Mon Sep 17 00:00:00 2001 From: garga Date: Mon, 16 Aug 2010 12:29:21 +0000 Subject: - Make LUA_ROOT respect PREFIX - Bump PORTREVISION PR: ports/149706 Submitted by: Anonymous --- lang/lua/Makefile | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lang') diff --git a/lang/lua/Makefile b/lang/lua/Makefile index ea9fd1bb9971..418f7af7f7ee 100644 --- a/lang/lua/Makefile +++ b/lang/lua/Makefile @@ -7,6 +7,7 @@ PORTNAME= lua PORTVERSION= 5.1.4 +PORTREVISION= 1 CATEGORIES= lang MASTER_SITES= http://www.lua.org/ftp/ \ ftp://ftp.tecgraf.puc-rio.br/pub/lua/ \ @@ -60,6 +61,8 @@ post-patch: ${WRKSRC}/etc/lua.pc @${REINPLACE_CMD} -e 's,rand *(,random(,g' \ ${WRKSRC}/src/lmathlib.c + @${REINPLACE_CMD} -e '/LUA_ROOT/s|/usr/local|${PREFIX}|' \ + ${WRKSRC}/src/luaconf.h post-build: @${RM} -f ${WRKSRC}/test/lua ${WRKSRC}/test/luac -- cgit