Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Apr 2014 09:21:20 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r351614 - head/devel/lua-alien
Message-ID:  <201404200921.s3K9LKcK045561@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Sun Apr 20 09:21:20 2014
New Revision: 351614
URL: http://svnweb.freebsd.org/changeset/ports/351614
QAT: https://qat.redports.org/buildarchive/r351614/

Log:
  Convert to lua 5.2

Modified:
  head/devel/lua-alien/Makefile

Modified: head/devel/lua-alien/Makefile
==============================================================================
--- head/devel/lua-alien/Makefile	Sun Apr 20 09:16:29 2014	(r351613)
+++ head/devel/lua-alien/Makefile	Sun Apr 20 09:21:20 2014	(r351614)
@@ -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}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404200921.s3K9LKcK045561>