blob: 01069c000aab912c27bf9669d21be852438de03d (
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
44
45
46
47
48
49
50
51
52
53
54
|
# Created by: Gea-Suan Lin <gslin@ccca.nctu.edu.tw>
# $FreeBSD$
PORTNAME= sysbench
PORTVERSION= 0.4.12
PORTREVISION= 1
CATEGORIES= benchmarks databases
MASTER_SITES= SF
MAINTAINER= c.petrik.sosa@gmail.com
COMMENT= Modular, cross-platform, and multi-threaded benchmark tool
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
USE_AUTOTOOLS= libtool
OPTIONS_DEFINE= LARGEFILE MYSQL PGSQL DOCS
OTPIONS_DEFAULT= LARGEFILE MYSQL
LARGEFILE_DESC= Enable Largefile support
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MLARGEFILE}
CONFIGURE_ARGS+= --enable-largefile
.else
CONFIGURE_ARGS+= --disable-largefile
.endif
.if ${PORT_OPTIONS:MMYSQL}
USE_MYSQL= yes
CONFIGURE_ARGS+= --with-mysql
.else
CONFIGURE_ARGS+= --with-mysql=no
.endif
.if ${PORT_OPTIONS:MPOSTGRESQL}
USE_PGSQL= yes
CONFIGURE_ARGS+= --with-pgsql
.else
CONFIGURE_ARGS+= --with-pgsql=no
.endif
post-configure:
@${REINPLACE_CMD} -e 's/^program_transform_name/#/' \
${WRKSRC}/Makefile ${WRKSRC}/sysbench/Makefile
.if empty(PORT_OPTIONS:MDOCS)
post-install:
${RM} ${DOCSDIR}/manual.html
${RMDIR} ${DOCSDIR}
.endif
.include <bsd.port.mk>
|