diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2007-10-28 19:43:49 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2007-10-28 19:43:49 +0000 |
commit | 2a3d311fcdb5498d2de24e5ddf49a9a8863b0ffc (patch) | |
tree | 338d76447f64b728295cf110a8c5d005635aa8cc /net/luasocket/Makefile | |
parent | 34710baf1bfb74ade39a64614c01140dc8f7906f (diff) | |
download | ports-2a3d311fcdb5498d2de24e5ddf49a9a8863b0ffc.tar.gz ports-2a3d311fcdb5498d2de24e5ddf49a9a8863b0ffc.zip |
- Update luasocket to 2.0.2, set luasocket port to lua 5.1
- Add lua 5.0 compatible slave port
PR: ports/117168
Submitted by: Andrew Turner <andrew+ports@fubar.geek.nz> (maintainer)
Notes
Notes:
svn path=/head/; revision=202228
Diffstat (limited to 'net/luasocket/Makefile')
-rw-r--r-- | net/luasocket/Makefile | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/net/luasocket/Makefile b/net/luasocket/Makefile index f0121466738e..069384aefdff 100644 --- a/net/luasocket/Makefile +++ b/net/luasocket/Makefile @@ -6,22 +6,26 @@ # PORTNAME= luasocket -PORTVERSION= 2.0 -PORTREVISION= 1 +PORTVERSION= 2.0.2 CATEGORIES= net -MASTER_SITES= http://luaforge.net/frs/download.php/1097/ +MASTER_SITES= http://luaforge.net/frs/download.php/2664/ +PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX} MAINTAINER= andrew+ports@fubar.geek.nz COMMENT= IPv4 Sockets support for the Lua language -BUILD_DEPENDS= ${NONEXISTENT}:${PORTSDIR}/devel/lua50-compat51:extract - USE_GMAKE= yes -USE_LUA= 5.0 -LUA_COMPS= lua compat51 +USE_LUA?= 5.1 +LUA_COMPS= lua + +.if ${USE_LUA} == 5.0 +LUA_COMPS+= compat51 +BUILD_DEPENDS+= ${NONEXISTENT}:${PORTSDIR}/devel/lua50-compat51:build COMPAT_SRC= `(cd ${PORTSDIR}/devel/lua50-compat51 && ${MAKE} -V WRKSRC)` -MAKE_ENV= COMPATDIR="${COMPAT_SRC}" +MAKE_ENV= COMPATDIR="${COMPAT_SRC}" \ + COMPAT_OBJ="${COMPAT_SRC}/compat-5.1.o" +.endif post-extract: @${MV} ${WRKSRC}/makefile ${WRKSRC}/Makefile |