Ticket #40057: mysqlxx_320.diff

File mysqlxx_320.diff, 2.5 KB (added by kepeng@…, 11 years ago)
  • dports/databases/mysqlxx/Portfile

     
    33PortSystem 1.0
    44
    55name            mysqlxx
    6 version         3.0.8
     6version         3.2.0
    77categories      databases
    88maintainers     genetikayos.com:kayos
    99platforms       darwin freebsd
     
    1414homepage        http://tangentsoft.net/mysql++/
    1515master_sites    http://tangentsoft.net/mysql++/releases/
    1616distname        mysql++-${version}
    17 checksums       md5 b977bbf671df08661c15cde051db1513 \
    18                 sha1 060d81dcf284732a4dc3f74b305f48ec8d12150f \
    19                 rmd160 686fc71773c3d828ed01374ba383e2d58ea5f370
     17checksums       md5 d2220b74e000d8ede13f451fe99bad5a \
     18                sha1 4bd50f5b8259b5f12e42d6a810e5941eaddaf24a \
     19                rmd160 308142c8462f801cdf219a63a07de63e717d51a6
    2020
    2121depends_lib     port:gettext \
    2222                port:zlib
    2323
    24 variant mysql4 conflicts mysql5 description {Build with MySQL 4 support} {
     24variant mysql4 conflicts mysql5 mysql51 mysql55 mysql56 description {Build with MySQL 4 support} {
    2525        depends_lib-append      port:mysql4
    2626        configure.args          --with-mysql=${prefix}
    2727}
    2828
    29 variant mysql5 conflicts mysql4 description {Build with MySQL 5 support} {
     29variant mysql5 conflicts mysql4 mysql51 mysql55 mysql56 description {Build with MySQL 5 support} {
    3030        depends_lib-append      path:bin/mysql_config5:mysql5
    3131        configure.args          --with-mysql-lib=${prefix}/lib/mysql5/mysql \
    3232                                --with-mysql-include=${prefix}/include/mysql5/mysql
    3333}
    3434
    35 if {![variant_isset mysql4]} {
     35variant mysql51 conflicts mysql4 mysql5 mysql55 mysql56 description {Build with MySQL 5.1 support} {
     36        depends_lib-append      path:bin/mysql_config51:mysql51
     37        configure.args          --with-mysql-lib=${prefix}/lib/mysql51/mysql \
     38                                --with-mysql-include=${prefix}/include/mysql51/mysql
     39}
     40
     41variant mysql55 conflicts mysql4 mysql5 mysql51 mysql56 description {Build with MySQL 5.5 support} {
     42        depends_lib-append      path:bin/mysql_config55:mysql55
     43        configure.args          --with-mysql-lib=${prefix}/lib/mysql55/mysql \
     44                                --with-mysql-include=${prefix}/include/mysql55/mysql
     45}
     46
     47variant mysql56 conflicts mysql4 mysql5 mysql51 mysql55 description {Build with MySQL 5.6 support} {
     48        depends_lib-append      path:bin/mysql_config56:mysql56
     49        configure.args          --with-mysql-lib=${prefix}/lib/mysql56/mysql \
     50                                --with-mysql-include=${prefix}/include/mysql56/mysql
     51}
     52
     53if {![variant_isset mysql4] && ![variant_isset mysql5] && ![variant_isset mysql51] && ![variant_isset mysql55] && ![variant_isset mysql56] } {
    3654        default_variants +mysql5
    3755}
    3856