aboutsummaryrefslogtreecommitdiffstats
path: root/benchmarks/sysbench/Makefile
blob: 9b0fadef88274d7535c82ec14aece9585b2174f6 (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
55
56
57
# New ports collection makefile for:    sysbench
# Date created:     2005-12-11
# Whom:         Gea-Suan Lin <gslin@ccca.nctu.edu.tw>
#
# $FreeBSD$
#

PORTNAME=   sysbench
PORTVERSION=    0.4.12
CATEGORIES= benchmarks databases
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}

MAINTAINER= kris@FreeBSD.org
COMMENT=    A modular, cross-platform and multi-threaded benchmark tool

USE_AUTOTOOLS=  libtool:22

OPTIONS=    LARGEFILE "Enable Largefile support" on \
        MYSQL "Enable MySQL support" on \
        POSTGRESQL "Enable PostgreSQL support" off

.include <bsd.port.pre.mk>

.if defined(WITHOUT_LARGEFILE)
CONFIGURE_ARGS+=    --disable-largefile
.else
CONFIGURE_ARGS+=    --enable-largefile
.endif

.if defined(WITHOUT_MYSQL)
CONFIGURE_ARGS+=    --with-mysql=no
.else
USE_MYSQL=  yes
CONFIGURE_ARGS+=    --with-mysql
.endif

.if defined(WITH_POSTGRESQL)
USE_PGSQL=  yes
DEFAULT_PGSQL_VER?= 80
IGNORE_WITH_PGSQL=  73 74
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 defined(NOPORTDOCS)
post-install:
    ${RM} ${DOCSDIR}/manual.html
    ${RMDIR} ${DOCSDIR}
.endif

.include <bsd.port.post.mk>