Makefile 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # $OpenBSD: Makefile,v 1.12 2016/10/16 23:21:23 jca Exp $
  2. COMMENT = lua library for the expat XML parser
  3. DISTNAME = luaexpat-1.3.0
  4. REVISION = 0
  5. CATEGORIES = textproc
  6. HOMEPAGE = http://matthewwild.co.uk/projects/luaexpat/
  7. # MIT
  8. PERMIT_PACKAGE_CDROM = Yes
  9. WANTLIB = expat
  10. MASTER_SITES = ${HOMEPAGE}
  11. MODULES = lang/lua
  12. MODLUA_TEST_DEPENDS = textproc/luaexpat
  13. FLAVORS = lua52 lua53
  14. FLAVOR ?=
  15. REGRESS_FILES = test-lom test
  16. MAKE_FLAGS+= LUA_INC="-I${MODLUA_INCL_DIR}"
  17. USE_GMAKE = Yes
  18. ALL_TARGET = lib
  19. LUA = ${MODLUA_BIN}
  20. do-install:
  21. ${INSTALL_DATA_DIR} ${MODLUA_LIBDIR} ${MODLUA_DATADIR}/lxp
  22. ${INSTALL_DATA_DIR} ${MODLUA_DOCDIR}
  23. ${INSTALL_DATA} ${WRKSRC}/src/lxp.so ${MODLUA_LIBDIR}
  24. ${INSTALL_DATA} ${WRKSRC}/src/lxp/lom.lua ${MODLUA_DATADIR}/lxp
  25. ${INSTALL_DATA} ${WRKSRC}/doc/us/{examples,index,license,lom,manual}.html \
  26. ${MODLUA_DOCDIR}
  27. ${INSTALL_DATA} ${WRKSRC}/doc/us/luaexpat.png ${MODLUA_DOCDIR}
  28. do-test:
  29. .for r in ${REGRESS_FILES}
  30. cd ${WRKSRC}/tests && ${MODLUA_BIN} $r.lua
  31. .endfor
  32. .include <bsd.port.mk>