Ticket #23181: Portfile

File Portfile, 1.8 KB (added by pixilla (Bradley Giesbrecht), 15 years ago)

Portfile for mysql-connector-odbc

Line 
1# $Id:  $
2
3PortSystem              1.0
4PortGroup               archcheck 1.0
5
6name                    mysql-connector-odbc
7version                 5.1.6
8set branch              [join [lrange [split ${version} .] 0 1] .]
9homepage                http://www.mysql.com/
10categories              databases
11platforms               darwin
12maintainers             ryandesign
13license                 GPLv2
14distname                ${name}-${version}
15use_parallel_build      yes
16
17description \
18    The MySQL Connector/ODBC
19
20long_description \
21    The MySQL Connector/ODBC is the name for the family of MySQL ODBC drivers \
22    (previously called MyODBC drivers) that provide access to a MySQL database \
23    using the industry standard Open Database Connectivity (ODBC) API.
24
25master_sites \
26    http://mysql.mirrors.pair.com/Downloads/Connector-ODBC/${branch}/ \
27    http://mysql.he.net/Downloads/Connector-ODBC/${branch}/ \
28    http://mirrors.sunsite.dk/mysql/Downloads/Connector-ODBC/${branch}/ \
29    http://sunsite.informatik.rwth-aachen.de/mysql/Downloads/Connector-ODBC/${branch}/ \
30    http://ftp.plusline.de/mysql/Downloads/Connector-ODBC/${branch}/
31
32checksums \
33    md5     ed445092466be030f991b3a093649f45 \
34    sha1    c02e1c671fae60f7f7389dd2f963b07c3113ab35 \
35    rmd160  90eeefbfb0153a32dd7f0be5c2685fcf13036543
36
37depends_lib \
38    port:zlib \
39    port:openssl
40
41configure.args \
42          --with-unixODBC=${prefix} \
43          --with-mysql-path=${prefix} \
44          --disable-shared \
45          --enable-gui=no
46
47depends_lib-append \
48          port:unixODBC \
49          port:mysql5
50
51pre-configure {
52    reinplace "s;bin/mysql_config;bin/mysql_config5;" ${worksrcpath}/configure
53}
54
55livecheck.type          regex
56livecheck.url           http://dev.mysql.com/
57livecheck.regex         "(5\\.1\\.\[0-9\.\]+)"