freebsd-ports/devel/lua-cjson/Makefile
Baptiste Daroussin e836ab008a Replace lang/lua with the new lang/lua51
lang/lua51 is working the same way lang/lua52, chase ports using lua 5.1
Make the default lua lua52
Make all lua ports using USES=lua

Approved by:	portmgr (implicit)
2014-05-26 15:28:28 +00:00

25 lines
558 B
Makefile

# Created by: osa
# $FreeBSD$
PORTNAME= cjson
PORTVERSION= 2.1.0
CATEGORIES= devel
MASTER_SITES= http://www.kyne.com.au/~mark/software/download/
PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX}
DISTNAME= lua-cjson-${PORTVERSION}
MAINTAINER= osa@FreeBSD.org
COMMENT= Fast JSON parsing and encoding support for Lua
USES= lua:51
MAKE_ARGS= LUA_VERSION=${LUA_VER}
PLIST_FILES= %%LUA_MODLIBDIR%%/cjson.so
post-patch:
@${REINPLACE_CMD} '16,18d; \
21s|^\(LUA_INCLUDE.*\)\(PREFIX\)\(.*\)|\1LOCALBASE\3/lua${LUA_VER_STR}|' \
${WRKSRC}/Makefile
.include <bsd.port.mk>