Ticket #47851: Portfile-mysqlxx.diff

File Portfile-mysqlxx.diff, 2.3 KB (added by bruce@…, 9 years ago)
  • Portfile

    old new  
    1 # $Id$
     1# $Id: Portfile 57749 2009-09-16 04:30:02Z ryandesign@macports.org $
    22
    33PortSystem 1.0
    44
    55name            mysqlxx
    6 version         3.0.8
     6version         3.2.2
    77categories      databases
    8 maintainers     genetikayos.com:kayos
     8maintainers     nomaintainer
    99platforms       darwin freebsd
     10license         LGPL
    1011description     C++ wrapper for MySQL's C API
    1112long_description        MySQL++ is a C++ wrapper for MySQL's C API. It is \
    1213                        built around STL principles, to make dealing with \
     
    1415homepage        http://tangentsoft.net/mysql++/
    1516master_sites    http://tangentsoft.net/mysql++/releases/
    1617distname        mysql++-${version}
    17 checksums       md5 b977bbf671df08661c15cde051db1513 \
    18                 sha1 060d81dcf284732a4dc3f74b305f48ec8d12150f \
    19                 rmd160 686fc71773c3d828ed01374ba383e2d58ea5f370
     18checksums       rmd160 2339039f33c7e9291763e2dd7a388d959524ca0d \
     19                sha256 55667bee79a5981b1a04e57e3a4fd8b03bf330e4e3371b023c2bf5ba0f50ed17
    2020
    2121depends_lib     port:gettext \
    2222                port:zlib
    2323
    24 variant mysql4 conflicts mysql5 description {Build with MySQL 4 support} {
    25         depends_lib-append      port:mysql4
    26         configure.args          --with-mysql=${prefix}
     24variant mysql56 conflicts mysql5 mysql51 mysql55 description {Build with MySQL 5.6 support} {
     25        configure.args          --with-mysql-lib=${prefix}/lib/mysql56/mysql \
     26                                --with-mysql-include=${prefix}/include/mysql56/mysql
    2727}
    2828
    29 variant mysql5 conflicts mysql4 description {Build with MySQL 5 support} {
     29variant mysql55 conflicts mysql5 mysql51 mysql56 description {Build with MySQL 5.5 support} {
     30        configure.args          --with-mysql-lib=${prefix}/lib/mysql55/mysql \
     31                                --with-mysql-include=${prefix}/include/mysql55/mysql
     32}
     33
     34variant mysql51 conflicts mysql5 mysql55 mysql56 description {Build with MySQL 5.1 support} {
     35        configure.args          --with-mysql-lib=${prefix}/lib/mysql51/mysql \
     36                                --with-mysql-include=${prefix}/include/mysql51/mysql
     37}
     38
     39variant mysql5 conflicts mysql51 mysql55 mysql56 description {Build with MySQL 5 support} {
    3040        depends_lib-append      path:bin/mysql_config5:mysql5
    3141        configure.args          --with-mysql-lib=${prefix}/lib/mysql5/mysql \
    3242                                --with-mysql-include=${prefix}/include/mysql5/mysql
    3343}
    3444
    35 if {![variant_isset mysql4]} {
    36         default_variants +mysql5
    37 }
     45default_variants +mysql56
    3846
    3947livecheck.type  regex
    4048livecheck.url   [lindex ${master_sites} 0]?C=M&O=D