aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2014-04-20 17:21:20 +0800
committerbapt <bapt@FreeBSD.org>2014-04-20 17:21:20 +0800
commit63450eb9bd8baf22e9062f1bebbd02c71f092181 (patch)
treef5dac097ff2ba4c02dea3daa7384931850f3dc30
parent281ed14cbfc2780006965970f95acd026eec9f2c (diff)
downloadfreebsd-ports-gnome-63450eb9bd8baf22e9062f1bebbd02c71f092181.tar.gz
freebsd-ports-gnome-63450eb9bd8baf22e9062f1bebbd02c71f092181.tar.zst
freebsd-ports-gnome-63450eb9bd8baf22e9062f1bebbd02c71f092181.zip
Convert to lua 5.2
-rw-r--r--devel/lua-alien/Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/devel/lua-alien/Makefile b/devel/lua-alien/Makefile
index 63b7ee7699ca..b5f71290b97a 100644
--- a/devel/lua-alien/Makefile
+++ b/devel/lua-alien/Makefile
@@ -3,6 +3,7 @@
PORTNAME= alien
PORTVERSION= 0.5.1
+PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://nodeload.github.com/mascarenhas/alien/tarball/
PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX}
@@ -16,12 +17,12 @@ LICENSE= MIT
LIB_DEPENDS= libffi.so:${PORTSDIR}/devel/libffi
-USE_LUA= 5.1
+USES= lua
WRKSRC= ${WRKDIR}/${GITHUB_USER}-${PORTNAME}-${GITHUB_SRC_SUFX}
CFLAGS+= -I${LOCALBASE}/include -I${LUA_INCDIR} \
-DBSD -fPIC
-LDFLAGS+= -L${LOCALBASE}/lib -L${LUA_LIBDIR} -llua -shared
+LDFLAGS+= -L${LOCALBASE}/lib -L${LUA_LIBDIR} -llua-${LUA_VER} -shared
MAKE_ENV+= LIB_OPTION="${LDFLAGS}" LIB_EXT=".so" LUA="${LUA_CMD}"
TESTS_EXCLUDE= tests/alien tests/alien.lua
@@ -54,7 +55,7 @@ post-patch: .SILENT
do-install:
@${MKDIR} ${STAGEDIR}${LUA_MODLIBDIR}/${PORTNAME}
- (cd ${WRKSRC}/src/alien && ${INSTALL_PROGRAM} core.so struct.so \
+ (cd ${WRKSRC}/src/alien && ${INSTALL_LIB} core.so struct.so \
${STAGEDIR}${LUA_MODLIBDIR}/${PORTNAME})
@${MKDIR} ${STAGEDIR}${LUA_MODSHAREDIR}
${INSTALL_DATA} ${WRKSRC}/src/alien.lua ${STAGEDIR}${LUA_MODSHAREDIR}