Makefile 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # $OpenBSD: Makefile,v 1.97 2017/06/09 09:27:02 dcoppa Exp $
  2. COMMENT = persistent key-value database
  3. DISTNAME = redis-3.2.9
  4. CATEGORIES = databases
  5. HOMEPAGE = http://redis.io/
  6. MAINTAINER = David Coppa <dcoppa@openbsd.org>
  7. # BSD
  8. PERMIT_PACKAGE_CDROM = Yes
  9. WANTLIB += c ${MODLUA_WANTLIB} m pthread
  10. MASTER_SITES = http://download.redis.io/releases/
  11. MODULES = lang/lua \
  12. lang/tcl
  13. MAKE_FLAGS = CC=${CC} \
  14. V=1
  15. FAKE_FLAGS = INSTALL="${INSTALL_PROGRAM}" \
  16. INSTALL_DIR="${INSTALL_DATA_DIR}" \
  17. INSTALL_TOP="${WRKINST}${PREFIX}"
  18. USE_GMAKE = Yes
  19. # Warning: running the test suite can take a long time and will
  20. # consume a lot of cpu cycles
  21. TEST_DEPENDS = ${MODTCL_BUILD_DEPENDS}
  22. TEST_FLAGS = TCL_BIN="${MODTCL_BIN}"
  23. DBDIR = ${VARBASE}/redis
  24. SUBST_VARS += DBDIR
  25. pre-configure:
  26. cp ${WRKSRC}/deps/lua/src/fpconv.? ${WRKSRC}/src/
  27. cp ${WRKSRC}/deps/lua/src/strbuf.? ${WRKSRC}/src/
  28. cp ${WRKSRC}/deps/lua/src/lua_*.c ${WRKSRC}/src/
  29. rm -rf ${WRKSRC}/deps/lua
  30. ${SUBST_CMD} ${WRKSRC}/src/Makefile
  31. post-install:
  32. ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/redis
  33. ${SUBST_DATA} ${WRKSRC}/redis.conf \
  34. ${PREFIX}/share/examples/redis/redis.conf
  35. ${SUBST_DATA} ${WRKSRC}/sentinel.conf \
  36. ${PREFIX}/share/examples/redis/sentinel.conf
  37. .include <bsd.port.mk>