pkgsrc/textproc/lua-expat/Makefile
schnoebe f79ff180ee Update textproc/lua-expat to 1.2.0.
Required for updating chat/prosody to 0.8.1, which helps handle the
"billion laughs" exploits on XML parsers and XMPP servers.

Change log as recorded in the README:

Version 1.2.0 [02/Jun/2011]

        * support for the StartDoctypeDecl handler
	* add parser:stop() to abort parsing inside a callback
2011-06-04 23:13:40 +00:00

36 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.16 2011/06/04 23:13:40 schnoebe Exp $
#
DISTNAME= luaexpat-1.2.0
PKGNAME= ${DISTNAME:S/lua/lua-/}
CATEGORIES= textproc
MASTER_SITES= http://matthewwild.co.uk/projects/luaexpat/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://matthewwild.co.uk/projects/projects
COMMENT= XML parser for LUA based on expat
LICENSE= mit
PKG_DESTDIR_SUPPORT= user-destdir
USE_TOOLS+= gmake
MAKE_FILE= makefile
CFLAGS+= -fPIC
MAKE_FLAGS+= LUA_DIR=${BUILDLINK_PREFIX.lua}
MAKE_FLAGS+= LUA_INC=${BUILDLINK_PREFIX.lua}/include
MAKE_FLAGS+= EXPAT_INC=${BUILDLINK_PREFIX.expat}/include
MAKE_FLAGS+= LUA_VERSION_NUM=${LUA_VERSION_MAJOR}0${LUA_VERSION_MINOR}
BUILD_TARGET= lib
INSTALLATION_DIRS= ${LUA_CDIR} ${LUA_LDIR} share/examples/lua
do-install:
${INSTALL_LIB} ${WRKSRC}/src/lxp.so.${PKGVERSION} ${DESTDIR}${PREFIX}/${LUA_CDIR}/lxp.so
${INSTALL_DATA} ${WRKSRC}/src/lxp/lom.lua ${DESTDIR}${PREFIX}/${LUA_LDIR}/lom.lua
${INSTALL_DATA} ${WRKSRC}/tests/test.lua ${DESTDIR}${PREFIX}/share/examples/lua/lxp.lua
.include "../../textproc/expat/buildlink3.mk"
.include "../../lang/lua/module.mk"
.include "../../mk/bsd.pkg.mk"