diff options
author | Renato Botelho <garga@FreeBSD.org> | 2010-09-20 12:01:53 +0000 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2010-09-20 12:01:53 +0000 |
commit | 756782776270a775a43ee7c45dd04558615a9ec7 (patch) | |
tree | ec68d7531b8006266576180f3c403cd35a5bc55f /lang/lua/Makefile | |
parent | 4a6fd240414779e95364268ca977c38e9b64eaa3 (diff) |
Notes
Diffstat (limited to 'lang/lua/Makefile')
-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> |