aboutsummaryrefslogtreecommitdiff
path: root/devel/lua-cjson/Makefile
diff options
context:
space:
mode:
authorSergey A. Osokin <osa@FreeBSD.org>2012-03-11 13:07:53 +0000
committerSergey A. Osokin <osa@FreeBSD.org>2012-03-11 13:07:53 +0000
commit21ce12b20871eefd12e334fdc7743b1b0b34304e (patch)
treed7ebf47cf3eed1936101238c681a01d8bc4ba8bc /devel/lua-cjson/Makefile
parentab0f26773933d67a6ca045e3339d67c25e86814b (diff)
downloadports-21ce12b20871eefd12e334fdc7743b1b0b34304e.tar.gz
ports-21ce12b20871eefd12e334fdc7743b1b0b34304e.zip
Notes
Diffstat (limited to 'devel/lua-cjson/Makefile')
-rw-r--r--devel/lua-cjson/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/devel/lua-cjson/Makefile b/devel/lua-cjson/Makefile
index 14431972fb5d..d1d8f1d9f7cf 100644
--- a/devel/lua-cjson/Makefile
+++ b/devel/lua-cjson/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= cjson
-PORTVERSION= 2.0.0
+PORTVERSION= 2.1.0
CATEGORIES= devel
MASTER_SITES= http://www.kyne.com.au/~mark/software/download/
PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX}
@@ -19,6 +19,11 @@ USE_LUA?= 5.1
PLIST_FILES= %%LUA_MODLIBDIR%%/cjson.so
+post-patch:
+ @${REINPLACE_CMD} '16,18d; \
+ 21s|^\(LUA_INCLUDE.*\)\(PREFIX\)\(.*\)|\1LOCALBASE\3/lua51|' \
+ ${WRKSRC}/Makefile
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/cjson.so ${LUA_MODLIBDIR}