Makefile 905 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # $OpenBSD: Makefile,v 1.2 2017/06/12 10:57:57 ajacoutot Exp $
  2. COMMENT = UTF-8 support module for Lua and LuaJIT
  3. V = 0.1.1
  4. PKGNAME = lua-utf8-${V}
  5. GH_ACCOUNT = starwing
  6. GH_PROJECT = luautf8
  7. GH_TAGNAME = ${V}
  8. REVISION = 0
  9. CATEGORIES = converters
  10. MAINTAINER = Frederic Cambus <fcambus@openbsd.org>
  11. # MIT
  12. PERMIT_PACKAGE_CDROM = Yes
  13. MODULES = lang/lua
  14. TEST_DEPENDS += ${BASE_PKGPATH}
  15. WANTLIB += ${MODLUA_WANTLIB}
  16. FLAVORS = lua52 lua53
  17. FLAVOR ?=
  18. CFLAGS += `pkg-config --cflags ${MODLUA_DEP}`
  19. LINK = ${CC} ${CFLAGS} -fPIC -shared -L${LOCALBASE}/lib -o
  20. do-build:
  21. cd ${WRKDIST} && ${LINK} lua-utf8.so lutf8lib.c ${MODLUA_LIB}
  22. do-install:
  23. ${INSTALL_DATA_DIR} ${MODLUA_LIBDIR}
  24. ${INSTALL_DATA} ${WRKSRC}/lua-utf8.so ${MODLUA_LIBDIR}
  25. ${INSTALL_DATA_DIR} ${MODLUA_DOCDIR}
  26. ${INSTALL_DATA} ${WRKSRC}/README.md ${MODLUA_DOCDIR}
  27. do-test:
  28. cd ${WRKDIST} && ${MODLUA_BIN} test.lua
  29. .include <bsd.port.mk>