Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # $OpenBSD: Makefile,v 1.20 2016/09/23 09:16:53 sthen Exp $
  2. COMMENT= binding of sqlite3 for lua
  3. PKGNAME= luasqlite3-0.4.1
  4. REVISION= 7
  5. DISTNAME= lua-sqlite3-0.4.1
  6. CATEGORIES= databases
  7. MASTER_SITES= ${HOMEPAGE}
  8. HOMEPAGE= http://www.nessie.de/mroth/lua-sqlite3/
  9. # MIT
  10. PERMIT_PACKAGE_CDROM= Yes
  11. WANTLIB += sqlite3>=8
  12. MODULES= lang/lua
  13. LIB_DEPENDS= databases/sqlite3
  14. USE_GMAKE= Yes
  15. CONFIGURE_STYLE=gnu
  16. CONFIGURE_ARGS+=--with-lua-dir=${PREFIX} \
  17. --with-lua=${MODLUA_BIN} \
  18. --with-lua-includedir=${MODLUA_INCL_DIR} \
  19. --with-sqlite3-dir=${LOCALBASE}
  20. CFLAGS+= -fPIC -DPIC
  21. TEST_DEPENDS=${BASE_PKGPATH}
  22. TEST_TARGET= check
  23. pre-install:
  24. rm ${WRKSRC}/examples/path.lua
  25. do-install:
  26. ${INSTALL_DATA_DIR} ${MODLUA_DATADIR} ${MODLUA_LIBDIR}/sqlite3
  27. ${INSTALL_DATA_DIR} ${MODLUA_DOCDIR} ${MODLUA_EXAMPLEDIR}
  28. ${INSTALL_DATA_DIR} ${MODLUA_EXAMPLEDIR}
  29. ${INSTALL_DATA} ${WRKSRC}/sqlite3.lua ${MODLUA_DATADIR}
  30. ${INSTALL_DATA} ${WRKSRC}/libluasqlite3.so \
  31. ${MODLUA_LIBDIR}/sqlite3/core.so
  32. ${INSTALL_DATA} ${WRKSRC}/documentation.html ${MODLUA_DOCDIR}
  33. ${INSTALL_DATA} ${WRKSRC}/examples/*.lua ${MODLUA_EXAMPLEDIR}
  34. .include <bsd.port.mk>