2011-06-08 10:23:11 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.3 2011/06/08 14:23:11 gsoares Exp $
|
2009-08-15 14:19:02 -04:00
|
|
|
|
|
|
|
SHARED_ONLY = Yes
|
|
|
|
|
|
|
|
COMMENT = lua library for the expat XML parser
|
2011-06-08 10:23:11 -04:00
|
|
|
DISTNAME = luaexpat-1.2.0
|
2009-08-15 14:19:02 -04:00
|
|
|
|
|
|
|
CATEGORIES = textproc
|
2011-06-08 10:23:11 -04:00
|
|
|
HOMEPAGE = http://matthewwild.co.uk/projects/luaexpat/
|
2009-08-15 14:19:02 -04:00
|
|
|
MAINTAINER = Scott Vokes <vokes.s@gmail.com>
|
|
|
|
|
|
|
|
# MIT
|
|
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
PERMIT_PACKAGE_FTP = Yes
|
|
|
|
PERMIT_DISTFILES_CDROM =Yes
|
|
|
|
PERMIT_DISTFILES_FTP = Yes
|
|
|
|
|
|
|
|
WANTLIB = expat
|
2011-06-08 10:23:11 -04:00
|
|
|
MASTER_SITES = ${HOMEPAGE}
|
2009-08-15 14:19:02 -04:00
|
|
|
|
|
|
|
MODULES = lang/lua
|
2010-11-20 14:56:47 -05:00
|
|
|
REGRESS_DEPENDS = textproc/luaexpat
|
2009-08-15 14:19:02 -04:00
|
|
|
|
|
|
|
MAKE_ENV+= LUA_INC="${LOCALBASE}/include"
|
|
|
|
USE_GMAKE = Yes
|
|
|
|
MAKE_FILE = makefile
|
|
|
|
ALL_TARGET = lib
|
|
|
|
|
|
|
|
LUA = ${LOCALBASE}/bin/lua
|
|
|
|
|
|
|
|
do-install:
|
2011-06-08 10:23:11 -04:00
|
|
|
${INSTALL_DATA_DIR} ${MODLUA_LIBDIR}
|
|
|
|
${INSTALL_DATA_DIR} ${MODLUA_DATADIR}
|
|
|
|
${INSTALL_DATA_DIR} ${MODLUA_DATADIR}/lxp
|
2009-08-15 14:19:02 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/luaexpat
|
2011-06-08 10:23:11 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/src/lxp.so ${MODLUA_LIBDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/src/lxp/lom.lua ${MODLUA_DATADIR}/lxp
|
2009-08-15 14:19:02 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/us/{examples,index,license,lom,manual}.html \
|
|
|
|
${PREFIX}/share/doc/luaexpat
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/us/luaexpat.png ${PREFIX}/share/doc/luaexpat
|
|
|
|
|
|
|
|
do-regress:
|
|
|
|
cd ${WRKSRC}/tests && ${LUA} test-lom.lua && ${LUA} test.lua
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|