Ticket #38379: Portfile

File Portfile, 2.7 KB (added by alexander.janssen@…, 11 years ago)
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id$
3
4PortSystem        1.0
5
6name              sysbench
7version           0.4.12
8revision          0
9
10categories        benchmarks
11platforms         darwin
12license           GPL-2
13
14maintainers       gmail.com:alexander.janssen
15description       SysBench: a system performance benchmark
16long_description  SysBench is a modular, cross-platform and multi-threaded \
17                  benchmark tool for evaluating OS parameters that are \
18                  important for a system running a database under intensive \
19                  load.
20
21homepage          http://sysbench.sourceforge.net/
22master_sites      sourceforge:project/sysbench/sysbench/${version}
23checksums         rmd160 b77c8bf31d84f075ec69ef3972afb8baed02e6bc \
24                  sha256 83fa7464193e012c91254e595a89894d8e35b4a38324b52a5974777e3823ea9e
25
26depends_build     port:libxslt
27
28patch.pre_args    -p1
29patchfiles        patch-sysbench-0.4.12.diff
30
31autoreconf.pre_args     -vfi
32use_autoreconf          yes
33
34post-extract {
35      file mkdir        ${worksrcpath}/m4
36      touch             ${worksrcpath}/NEWS
37      touch             ${worksrcpath}/AUTHORS
38}
39
40default_variants  +universal
41
42configure.args    --without-mysql
43
44variant mysql5 conflicts mysql55 percona mariadb description {Use MySQL 5.1 libraries} {
45      depends_lib-append      port:mysql5
46      configure.args-delete   --without-mysql
47      configure.args-append   \
48            --with-mysql-includes=${prefix}/include/mysql5/mysql \
49            --with-mysql-libs=${prefix}/lib/mysql5/mysql
50}
51
52variant mysql55 conflicts mysql5 percona mariadb description {Use MySQL 5.5 libraries} {
53      depends_lib-append      port:mysql55
54      configure.args-delete   --without-mysql
55      configure.args-append   \
56            --with-mysql-includes=${prefix}/include/mysql55/mysql \
57            --with-mysql-libs=${prefix}/lib/mysql55/mysql
58}
59
60variant percona conflicts mysql5 mysql55 mariadb description {Use Percona MySQL libraries} {
61      depends_lib-append      port:percona
62      configure.args-delete   --without-mysql
63      configure.args-append   \
64            --with-mysql-includes=${prefix}/include/percona/mysql \
65            --with-mysql-libs=${prefix}/lib/percona/mysql
66}
67
68variant mariadb conflicts mysql5 mysql55 percona description {Use MariaDB MySQL libraries} {
69      depends_lib-append      port:percona
70      configure.args-delete   --without-mysql
71      configure.args-append   \
72            --with-mysql-includes=${prefix}/include/percona/mysql \
73            --with-mysql-libs=${prefix}/lib/percona/mysql
74}
75
76variant universal description {Build without database support} {}
77