pkgsrc/devel/lua-lrexlib/Makefile.common
minskim fb6f3a2436 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().
2018-07-29 11:36:06 +00:00

43 lines
1.2 KiB
Text

# $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
#
.include "../../devel/lua-lrexlib/Makefile.version"
DISTNAME= lrexlib-rel-${VERSION:S/./-/g}
PKGNAME= ${LUA_PKGPREFIX}-lrexlib-${ENGINE}-${VERSION}
CATEGORIES= devel
MASTER_SITES= -https://github.com/rrthomas/lrexlib/archive/rel-${VERSION:S/./-/g}.zip
EXTRACT_SUFX= .zip
HOMEPAGE= http://luaforge.net/projects/lrexlib
LICENSE= mit
#USE_TOOLS+= gmake
USE_LIBTOOL= yes
BUILD_TARGET= build_${ENGINE}
#TEST_TARGET= test_${ENGINE}
INSTALL_TARGET= install_${ENGINE}
MAKE_FILE= BSDmakefile
#
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}
MAKE_FLAGS+= VERSION=\"${V}\"
MAKE_FLAGS+= LUA_CDIR=${LUA_CDIR}
INSTALLATION_DIRS+= ${LUA_CDIR}
#do-install:
# ${LIBTOOL} --mode=install ${INSTALL_PROGRAM} \
# ${WRKSRC}/src/${ENGINE_DIR}/rex_${ENGINE}.la ${DESTDIR}${PREFIX}/${LUA_CDIR}