49 lines
1.2 KiB
Makefile
49 lines
1.2 KiB
Makefile
# $OpenBSD: Makefile,v 1.6 2012/08/12 17:26:30 jasper Exp $
|
|
|
|
SHARED_ONLY = Yes
|
|
|
|
COMMENT = lua library for the expat XML parser
|
|
DISTNAME = luaexpat-1.2.0
|
|
REVISION = 1
|
|
|
|
CATEGORIES = textproc
|
|
HOMEPAGE = http://matthewwild.co.uk/projects/luaexpat/
|
|
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
|
|
MASTER_SITES = ${HOMEPAGE}
|
|
|
|
MODULES = lang/lua
|
|
MODLUA_REGRESS_DEPENDS = textproc/luaexpat
|
|
|
|
REGRESS_FILES = test-lom test
|
|
|
|
MAKE_FLAGS+= LUA_INC="${MODLUA_INCL_DIR}"
|
|
USE_GMAKE = Yes
|
|
MAKE_FILE = makefile
|
|
ALL_TARGET = lib
|
|
|
|
LUA = ${MODLUA_BIN}
|
|
|
|
do-install:
|
|
${INSTALL_DATA_DIR} ${MODLUA_LIBDIR} ${MODLUA_DATADIR}/lxp
|
|
${INSTALL_DATA_DIR} ${MODLUA_DOCDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/src/lxp.so ${MODLUA_LIBDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/src/lxp/lom.lua ${MODLUA_DATADIR}/lxp
|
|
${INSTALL_DATA} ${WRKSRC}/doc/us/{examples,index,license,lom,manual}.html \
|
|
${MODLUA_DOCDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/doc/us/luaexpat.png ${MODLUA_DOCDIR}
|
|
|
|
do-regress:
|
|
.for r in ${REGRESS_FILES}
|
|
cd ${WRKSRC}/tests && ${MODLUA_BIN} $r.lua
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|