PORTNAME=	nosqlbench
PORTVERSION=	0.0.${DATE}
PORTREVISION=	1
CATEGORIES=	benchmarks databases
MASTER_SITES=	LOCAL/vg

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Micro-benchmarking NoSQL storage
WWW=		https://github.com/tarantool/nosqlbench

LICENSE=	BSD2CLAUSE
LICENSE_FILE=	${WRKSRC}/LICENSE

LIB_DEPENDS=	libleveldb.so:databases/leveldb

DATE=		20151214
USES=		cmake:insource tar:bzip2

CONFLICTS_INSTALL=	tarantool-c # bin/nb include/tarantool/tarantool.h

post-patch:
	@${REINPLACE_CMD} -e 's|-O3 -march=native||' ${WRKSRC}/CMakeLists.txt \
		${WRKSRC}/third_party/memcached/CMakeLists.txt \
		${WRKSRC}/third_party/tarantool-c/CMakeLists.txt

post-install:
	${INSTALL_DATA} ${WRKSRC}/sources/nosqlbench.conf \
		${STAGEDIR}${PREFIX}/etc/nosqlbench.conf.sample

.include <bsd.port.mk>
