openbsd-ports/devel/lpeg/Makefile
jasper d08179c04b - update to 0.10.2
- fix homepage
- zap USE_LIBTOOL
- use some variables provided by lua.port.mk
2011-06-20 21:40:37 +00:00

37 lines
886 B
Makefile

# $OpenBSD: Makefile,v 1.6 2011/06/20 21:40:37 jasper Exp $
SHARED_ONLY= Yes
COMMENT= parsing expression grammars library for lua
DISTNAME= lpeg-0.10.2
CATEGORIES= devel
MASTER_SITES= http://www.inf.puc-rio.br/~roberto/lpeg/
HOMEPAGE= http://www.inf.puc-rio.br/~roberto/lpeg/lpeg.html
# ISC-like
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
MODULES= lang/lua
ALL_TARGET= lpeg.so
MAKE_FILE= makefile
pre-configure:
${SUBST_CMD} ${WRKSRC}/makefile
do-install:
${INSTALL_DATA_DIR} ${MODLUA_LIBDIR} ${MODLUA_DATADIR}
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/lpeg
${INSTALL_DATA} ${WRKBUILD}/lpeg.so ${MODLUA_LIBDIR}
${INSTALL_DATA} ${WRKSRC}/{lpeg,re}.html ${PREFIX}/share/doc/lpeg
${INSTALL_DATA} ${WRKSRC}/re.lua ${MODLUA_DATADIR}
do-regress:
cd ${WRKDIST} && ${LOCALBASE}/bin/lua test.lua
.include <bsd.port.mk>