diff options
author | garga <garga@FreeBSD.org> | 2010-09-20 20:01:53 +0800 |
---|---|---|
committer | garga <garga@FreeBSD.org> | 2010-09-20 20:01:53 +0800 |
commit | a17d2eeec64af2a4408e980ebb11118831bec588 (patch) | |
tree | 14ee2d86462e231adf28d8abc6e7e62b5663101e /lang | |
parent | 6870c5593fda8ba3f086806d6cc0378a991e4c88 (diff) | |
download | freebsd-ports-gnome-a17d2eeec64af2a4408e980ebb11118831bec588.tar.gz freebsd-ports-gnome-a17d2eeec64af2a4408e980ebb11118831bec588.tar.zst freebsd-ports-gnome-a17d2eeec64af2a4408e980ebb11118831bec588.zip |
- Fix build on amd64
- Bump PORTREVISION
Reported by: Eduardo Schoedler <eschoedler@viavale.com.br> and
Robert Huff <roberthuff@rcn.com>
Diffstat (limited to 'lang')
-rw-r--r-- | lang/lua/Makefile | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/lang/lua/Makefile b/lang/lua/Makefile index ba7d995c20bd..846b37094c9d 100644 --- a/lang/lua/Makefile +++ b/lang/lua/Makefile @@ -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> |