Ticket #40057: Portfile

File Portfile, 1.3 KB (added by kepeng@…, 11 years ago)

mysqlxx Portfile updated for 3.2.0

Line 
1# $Id: Portfile 57749 2009-09-16 04:30:02Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name            mysqlxx
6version         3.2.0
7categories      databases
8maintainers     genetikayos.com:kayos
9platforms       darwin freebsd
10description     C++ wrapper for MySQL's C API
11long_description        MySQL++ is a C++ wrapper for MySQL's C API. It is \
12                        built around STL principles, to make dealing with \
13                        the database as easy as dealing with an STL container.
14homepage        http://tangentsoft.net/mysql++/
15master_sites    http://tangentsoft.net/mysql++/releases/
16distname        mysql++-${version}
17checksums       md5 d2220b74e000d8ede13f451fe99bad5a \
18                sha1 4bd50f5b8259b5f12e42d6a810e5941eaddaf24a \
19                rmd160 308142c8462f801cdf219a63a07de63e717d51a6
20
21depends_lib     port:gettext \
22                port:zlib
23
24variant mysql4 conflicts mysql5 description {Build with MySQL 4 support} {
25        depends_lib-append      port:mysql4
26        configure.args          --with-mysql=${prefix}
27}
28
29variant mysql5 conflicts mysql4 description {Build with MySQL 5 support} {
30        depends_lib-append      path:bin/mysql_config5:mysql5
31        configure.args          --with-mysql-lib=${prefix}/lib/mysql5/mysql \
32                                --with-mysql-include=${prefix}/include/mysql5/mysql
33}
34
35if {![variant_isset mysql4]} {
36        default_variants +mysql5
37}
38
39livecheck.type  regex
40livecheck.url   [lindex ${master_sites} 0]?C=M&O=D
41livecheck.regex mysql\\+\\+-(\[0-9.\]+)\\.tar