aboutsummaryrefslogtreecommitdiff
path: root/benchmarks/sysbench/Makefile
blob: 4da71c9b08386100dc7c7feb50ed999aaa2347f4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Created by: Gea-Suan Lin <gslin@ccca.nctu.edu.tw>

PORTNAME=	sysbench
PORTVERSION=	1.0.20
CATEGORIES=	benchmarks databases

MAINTAINER=	sunpoet@FreeBSD.org
COMMENT=	Scriptable database and system performance benchmark

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

LIB_DEPENDS=	libck.so:devel/concurrencykit

USES=		autoreconf compiler:c11 gmake libtool 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.options.mk>

.if ${ARCH:Mpowerpc64*}
LIB_DEPENDS+=	libluajit-5.1.so:lang/luajit-openresty
.else
LIB_DEPENDS+=	libluajit-5.1.so:lang/luajit
.endif

post-patch:
	@${REINPLACE_CMD} -e '/^SUBDIRS = / s| doc||' ${WRKSRC}/Makefile.am

.include <bsd.port.mk>