openbsd-ports/databases/redis/Makefile
2011-09-23 08:14:23 +00:00

46 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.14 2011/09/23 08:14:23 dcoppa Exp $
COMMENT = persistent key-value database
DISTNAME = redis-2.2.14
CATEGORIES = databases
HOMEPAGE = http://redis.io/
MAINTAINER = David Coppa <dcoppa@openbsd.org>
# BSD
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
MASTER_SITES = http://redis.googlecode.com/files/
MODULES = lang/tcl
USE_GMAKE = Yes
FAKE_FLAGS = INSTALL_TOP=${WRKINST}${PREFIX}
# Replace cp/mkdir with our install commands
# Enable verbose compilation
MAKE_FLAGS = INSTALL="${INSTALL_PROGRAM}" \
INSTALL_DIR="${INSTALL_DATA_DIR}" \
V=1
WANTLIB += c m pthread
# Warning: executing the test suite can take a long time and will
# consume a lot of cpu cycles
REGRESS_DEPENDS = ${MODTCL_BUILD_DEPENDS}
REGRESS_FLAGS = TCL_BIN="${MODTCL_BIN}"
REGRESS_TARGET = test
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/redis
${INSTALL_DATA} ${WRKSRC}/redis.conf \
${PREFIX}/share/examples/redis/
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/redis
${INSTALL_DATA} ${WRKBUILD}/doc/* ${PREFIX}/share/doc/redis/
.include <bsd.port.mk>