openbsd-ports/devel/lpeg/Makefile
2008-06-11 05:04:37 +00:00

34 lines
781 B
Makefile

# $OpenBSD: Makefile,v 1.4 2008/06/11 05:04:37 landry Exp $
SHARED_ONLY= Yes
COMMENT= parsing expression grammars library for lua
DISTNAME= lpeg-0.6
PKGNAME= ${DISTNAME}p0
CATEGORIES= devel
MASTER_SITES= http://www.inf.puc-rio.br/~roberto/
HOMEPAGE= http://www.inf.puc-rio.br/~roberto/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
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/lib/lua/5.1
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/lpeg
${INSTALL_DATA} ${WRKBUILD}/lpeg.so ${PREFIX}/lib/lua/5.1
${INSTALL_DATA} ${WRKSRC}/doc.html ${PREFIX}/share/doc/lpeg
do-regress:
cd ${WRKDIST} && ${LOCALBASE}/bin/lua test.lua
.include <bsd.port.mk>