- Fix build on amd64
- Bump PORTREVISION Reported by: Eduardo Schoedler <eschoedler@viavale.com.br> and Robert Huff <roberthuff@rcn.com>
This commit is contained in:
parent
4a6fd24041
commit
7567827762
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=261481
1 changed files with 9 additions and 6 deletions
|
@ -7,7 +7,7 @@
|
|||
|
||||
PORTNAME= lua
|
||||
PORTVERSION= 5.1.4
|
||||
PORTREVISION= 2
|
||||
PORTREVISION= 3
|
||||
CATEGORIES= lang
|
||||
MASTER_SITES= http://www.lua.org/ftp/ \
|
||||
ftp://ftp.tecgraf.puc-rio.br/pub/lua/ \
|
||||
|
@ -30,6 +30,7 @@ USE_GNOME= pkgconfig
|
|||
USE_LDCONFIG= yes
|
||||
MAKE_JOBS_SAFE= yes
|
||||
MAKE_ENV= LUA_SONAME="liblua-${LUA_VER}.so.${LUA_VER_SH}"
|
||||
USE_GMAKE= yes
|
||||
|
||||
MAN1= lua-${LUA_VER}.1 luac-${LUA_VER}.1
|
||||
DOCSDIR= ${PREFIX}/share/doc/${LUA_SUBDIR}
|
||||
|
@ -46,6 +47,12 @@ LUA_TEST= README bisect.lua cf.lua echo.lua env.lua factorial.lua \
|
|||
printf.lua readonly.lua sieve.lua sort.lua table.lua \
|
||||
trace-calls.lua trace-globals.lua xd.lua
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${ARCH} == "amd64" || ${ARCH} == "powerpc"
|
||||
CFLAGS+= -fPIC
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -Ee \
|
||||
'/^INSTALL_.*=/s/INSTALL_TOP/prefix/ ; \
|
||||
|
@ -118,8 +125,4 @@ do-install:
|
|||
${MKDIR} ${LUA_MODLIBDIR}
|
||||
${MKDIR} ${LUA_MODSHAREDIR}
|
||||
|
||||
.if ${MACHINE_ARCH:L} == "amd64" || ${MACHINE_ARCH:L} == "powerpc"
|
||||
CFLAGS+= -fPIC
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.include <bsd.port.post.mk>
|
||||
|
|
Loading…
Reference in a new issue