Makefile 966 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # $OpenBSD: Makefile,v 1.1.1.1 2016/11/02 12:30:39 fcambus Exp $
  2. COMMENT = Lua bindings for the iconv library
  3. V = 7
  4. DISTNAME = lua-iconv-${V}
  5. GH_ACCOUNT = ittner
  6. GH_PROJECT = lua-iconv
  7. GH_TAGNAME = lua-iconv-${V}
  8. CATEGORIES = converters
  9. MAINTAINER = Frederic Cambus <fcambus@openbsd.org>
  10. # MIT
  11. PERMIT_PACKAGE_CDROM = Yes
  12. LIB_DEPENDS = converters/libiconv
  13. MODULES = lang/lua
  14. TEST_DEPENDS += ${BASE_PKGPATH}
  15. WANTLIB += ${MODLUA_WANTLIB} iconv
  16. FLAVORS = lua52 lua53
  17. FLAVOR ?=
  18. CFLAGS += `pkg-config --cflags ${MODLUA_DEP}` -I${LOCALBASE}/include
  19. LINK = ${CC} ${CFLAGS} -fPIC -shared -L${LOCALBASE}/lib -o
  20. do-build:
  21. cd ${WRKDIST} && ${LINK} iconv.so luaiconv.c ${MODLUA_LIB} -liconv
  22. do-install:
  23. ${INSTALL_DATA_DIR} ${MODLUA_LIBDIR}
  24. ${INSTALL_DATA} ${WRKSRC}/iconv.so ${MODLUA_LIBDIR}
  25. ${INSTALL_DATA_DIR} ${MODLUA_DOCDIR}
  26. ${INSTALL_DATA} ${WRKSRC}/README ${MODLUA_DOCDIR}
  27. do-test:
  28. cd ${WRKDIST} && ${MODLUA_BIN} test_iconv.lua
  29. .include <bsd.port.mk>