Ticket #34356: patch-Portfile.diff

File patch-Portfile.diff, 2.2 KB (added by BjarneDMat, 12 years ago)
  • perl/p5-dbd-mysql/Portfile

    old new  
     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
    12# $Id: Portfile 84963 2011-10-05 22:37:13Z jmr@macports.org $
    23
    34PortSystem            1.0
     
    1718if {${perl5.major} != ""} {
    1819depends_lib-append    port:p${perl5.major}-dbi
    1920
    20 variant mysql4 conflicts mysql5 description {build with mysql4 port} {
    21     depends_lib-append       port:mysql4
     21# this has been tested and works
     22variant mysql51 \
     23    conflicts mysql55 mariadb percona \
     24    description {build with mysql51 port} {
     25        depends_lib-append       port:mysql51
     26        configure.args-append    --mysql_config=${prefix}/lib/mysql51/bin/mysql_config
    2227}
    2328
    24 variant mysql5 conflicts mysql4 description {build with mysql5 port} {
    25     depends_lib-append       path:bin/mysql_config5:mysql5
    26     configure.args-append    --mysql_config=${prefix}/bin/mysql_config5
     29# this has been tested and works
     30variant mysql55 \
     31    conflicts mysql51 mariadb percona \
     32    description {build with mysql55 port} {
     33        depends_lib-append       port:mysql55
     34        configure.args-append    --mysql_config=${prefix}/lib/mysql55/bin/mysql_config
    2735}
    2836
    29 if {![variant_isset mysql4]} {
    30     default_variants         +mysql5
     37# this has !NOT! been tested, but ought to work
     38variant mariadb \
     39    conflicts mysql51 mysql55 percona \
     40    description {build with mariadb port} {
     41        depends_lib-append       port:mariadb
     42        configure.args-append    --mysql_config=${prefix}/lib/mariadb/bin/mysql_config
    3143}
    3244
    33 pre-fetch {
    34     if {![variant_isset mysql4] && ![variant_isset mysql5]} {
    35         return -code error "you must select either mysql4 or mysql5"
    36     }
    37 }
     45# this has !NOT! been tested, but ought to work
     46variant percona \
     47    conflicts mysql51 mysql55 mariadb \
     48    description {build with percona port} {
     49        depends_lib-append       port:percona
     50        configure.args-append    --mysql_config=${prefix}/lib/percona/bin/mysql_config
    3851}
     52
     53default_variants        +mysql55