summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2018-07-29 11:36:06 +0000
committerminskim <minskim@pkgsrc.org>2018-07-29 11:36:06 +0000
commitb40209821833eeca35700c79bffe251a1b6ab955 (patch)
tree51f7dbe5d2b556512b92d2aa76bc978bc48ee6c8
parentc8601eee74964fe80e4d18b2018fdcd9a2379fdf (diff)
downloadpkgsrc-b40209821833eeca35700c79bffe251a1b6ab955.tar.gz
Make lua-lrexlib build with Lua 5.3
Without this CFLAGS option, the deprecated luaL_optint() in the module is not replaced with luaL_optinteger().
-rw-r--r--devel/lua-lrexlib/Makefile.common3
1 files changed, 2 insertions, 1 deletions
diff --git a/devel/lua-lrexlib/Makefile.common b/devel/lua-lrexlib/Makefile.common
index 64a0cfb2bef..976e2f57704 100644
--- a/devel/lua-lrexlib/Makefile.common
+++ b/devel/lua-lrexlib/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.4 2014/01/27 18:41:12 wiz Exp $
+# $NetBSD: Makefile.common,v 1.5 2018/07/29 11:36:06 minskim Exp $
# used by devel/lua-lrexlib-posix/Makefile
# used by devel/lua-lrexlib-pcre/Makefile
# used by devel/lua-lrexlib-onig/Makefile
@@ -29,6 +29,7 @@ PATCHDIR= ${.CURDIR}/../../devel/lua-lrexlib/patches
DISTINFO_FILE= ${.CURDIR}/../../devel/lua-lrexlib/distinfo
DESCR_SRC= ${.CURDIR}/../../devel/lua-lrexlib/DESCR.common
+CFLAGS+= -DLUA_COMPAT_APIINTCASTS
MAKE_FLAGS+= LIBS=${LIBS:Q}
MAKE_FLAGS+= LIBTOOL=${LIBTOOL:Q}
MAKE_FLAGS+= MODULES_DIR=${PREFIX}/${LUA_CDIR}