PORTNAME=	sysbench
PORTVERSION=	1.0.20
PORTREVISION=	2
CATEGORIES=	benchmarks databases

MAINTAINER=	sunpoet@FreeBSD.org
COMMENT=	Scriptable database and system performance benchmark
WWW=		https://github.com/akopytov/sysbench

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

LIB_DEPENDS=	libck.so:devel/concurrencykit

USES=		autoreconf compiler:c11 gettext-tools gmake libtool luajit pkgconfig

CONFIGURE_ARGS=	--with-system-ck --with-system-luajit
GNU_CONFIGURE=	yes

GH_ACCOUNT=	akopytov
USE_GITHUB=	yes

OPTIONS_DEFINE=	LFS MYSQL PGSQL
OPTIONS_DEFAULT=LFS MYSQL

LFS_CONFIGURE_ENABLE=	largefile
MYSQL_CONFIGURE_WITH=	mysql
MYSQL_USES=		mysql
PGSQL_CONFIGURE_WITH=	pgsql
PGSQL_USES=		pgsql

.include <bsd.port.mk>
