2019-03-25 23:55:18 +01:00
|
|
|
# $NetBSD: Makefile,v 1.16 2019/03/25 22:55:18 wiz Exp $
|
2013-01-06 14:49:26 +01:00
|
|
|
|
2019-03-25 23:55:18 +01:00
|
|
|
DISTNAME= lpeg-1.0.2
|
2013-10-30 07:03:37 +01:00
|
|
|
PKGNAME= ${DISTNAME:S/lpeg/${LUA_PKGPREFIX}-lpeg/}
|
2013-01-06 14:49:26 +01:00
|
|
|
CATEGORIES= devel
|
|
|
|
MASTER_SITES= http://www.inf.puc-rio.br/~roberto/lpeg/
|
|
|
|
|
2017-09-16 21:53:50 +02:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2013-01-06 14:49:26 +01:00
|
|
|
HOMEPAGE= http://www.inf.puc-rio.br/~roberto/lpeg/
|
|
|
|
COMMENT= Parsing Expression Grammars (PEGs) library for Lua
|
|
|
|
LICENSE= mit
|
|
|
|
|
|
|
|
NO_CONFIGURE= yes
|
|
|
|
USE_TOOLS+= gmake
|
|
|
|
MAKE_FILE= makefile
|
2013-06-14 00:13:58 +02:00
|
|
|
TEST_TARGET= test
|
2013-01-06 14:49:26 +01:00
|
|
|
|
2016-02-25 13:50:49 +01:00
|
|
|
BUILD_TARGET.Darwin= macosx
|
|
|
|
BUILD_TARGET.*= linux
|
2014-11-08 21:08:11 +01:00
|
|
|
|
2017-01-30 22:16:34 +01:00
|
|
|
SUBST_CLASSES+= test
|
|
|
|
SUBST_MESSAGE.test= Fixing shebang in test.lua
|
|
|
|
SUBST_STAGE.test= post-build
|
|
|
|
SUBST_FILES.test= test.lua
|
|
|
|
SUBST_SED.test= -e 's,/usr/bin/env *lua,${LUA_INTERPRETER},'
|
2013-01-06 14:49:26 +01:00
|
|
|
|
2014-05-03 15:01:24 +02:00
|
|
|
INSTALLATION_DIRS+= ${LUA_CDIR} ${LUA_LDIR} ${LUA_DOCDIR}
|
2013-01-06 14:49:26 +01:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_LIB} ${WRKSRC}/lpeg.so \
|
|
|
|
${DESTDIR}${PREFIX}/${LUA_CDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/re.lua \
|
|
|
|
${DESTDIR}${PREFIX}/${LUA_LDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/*.html \
|
2014-05-03 15:01:24 +02:00
|
|
|
${DESTDIR}${PREFIX}/${LUA_DOCDIR}
|
2013-06-14 00:13:58 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/lpeg-128.gif \
|
2014-05-03 15:01:24 +02:00
|
|
|
${DESTDIR}${PREFIX}/${LUA_DOCDIR}
|
2013-06-14 00:13:58 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/HISTORY \
|
2014-05-03 15:01:24 +02:00
|
|
|
${DESTDIR}${PREFIX}/${LUA_DOCDIR}
|
2013-01-06 14:49:26 +01:00
|
|
|
|
|
|
|
.include "../../lang/lua/module.mk"
|
2014-05-03 15:01:24 +02:00
|
|
|
.include "../../lang/lua/application.mk"
|
2013-01-06 14:49:26 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|