Ports using USES=lua:module or lua:flavors will be flavored. A range of supported lua versions can be set using XX-YY (or XX-, or -YY, or simply ZZ) for ports not supporting all lua versions. USES=lua sets LUA_FLAVOR that needs to be used on all dependencies of flavored lua ports, in a similar way as PHP or Python flavors. PR: 245038 Submitted by: andrew tao11 riddles org uk Reviewed by: mat, kevans, russ haley gmail com Approved by: mat (portmgr) Differential Revision: https://reviews.freebsd.org/D16494
29 lines
623 B
Makefile
29 lines
623 B
Makefile
# Created by: osa
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= cjson
|
|
PORTVERSION= 2.1.0
|
|
PORTREVISION= 1
|
|
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
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
USES= lua:module
|
|
|
|
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>
|