openbsd-ports/devel/luarexlib/Makefile

45 lines
1.1 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.14 2012/05/15 20:45:12 jasper Exp $
SHARED_ONLY= Yes
2009-09-09 14:02:01 -04:00
COMMENT= lua binding of posix and pcre regex libraries
DISTNAME= lrexlib-2.4.0
2010-11-08 04:57:39 -05:00
PKGNAME= luarexlib-2.4.0
REVISION= 3
CATEGORIES= devel
2009-09-09 14:02:01 -04:00
MASTER_SITES= http://luaforge.net/frs/download.php/3599/
HOMEPAGE= http://lrexlib.luaforge.net/
EXTRACT_SUFX= .zip
# MIT
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
2009-09-09 14:02:01 -04:00
USE_GMAKE= Yes
MAKE_ENV+= MAKE_PROGRAM=${MAKE_PROGRAM} \
INC_LUA=-I${LOCALBASE}/include \
LIB_LUA="-L${LOCALBASE}/lib -llua"
MODULES= lang/lua
2010-11-15 14:45:56 -05:00
LIB_DEPENDS= devel/pcre \
2012-05-15 15:48:30 -04:00
${MODLUA_LIB_DEPENDS} \
2010-11-15 14:45:56 -05:00
textproc/oniguruma
2012-05-15 15:48:30 -04:00
WANTLIB = pcre>=1.0 ${MODLUA_WANTLIB} onig
2010-11-15 14:45:56 -05:00
REGRESS_DEPENDS+=devel/luarexlib
do-install:
2012-05-15 11:15:19 -04:00
${INSTALL_DATA_DIR} ${MODLUA_LIBDIR} ${MODLUA_DOCDIR}
2009-09-09 14:02:01 -04:00
${INSTALL_DATA} ${WRKSRC}/src/oniguruma/*.so \
${WRKSRC}/src/pcre/*.so \
${WRKSRC}/src/posix/*.so \
2010-06-18 13:59:06 -04:00
${MODLUA_LIBDIR}
2012-05-15 11:15:19 -04:00
${INSTALL_DATA} ${WRKSRC}/doc/* ${MODLUA_DOCDIR}
do-regress:
cd ${WRKDIST}/test && lua runtest.lua -v onig
cd ${WRKDIST}/test && lua runtest.lua -v pcre
cd ${WRKDIST}/test && lua runtest.lua -v posix
.include <bsd.port.mk>