Ticket #34356: patch-Portfile.diff
File patch-Portfile.diff, 2.2 KB (added by BjarneDMat, 13 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 1 2 # $Id: Portfile 84963 2011-10-05 22:37:13Z jmr@macports.org $ 2 3 3 4 PortSystem 1.0 … … 17 18 if {${perl5.major} != ""} { 18 19 depends_lib-append port:p${perl5.major}-dbi 19 20 20 variant mysql4 conflicts mysql5 description {build with mysql4 port} { 21 depends_lib-append port:mysql4 21 # this has been tested and works 22 variant 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 22 27 } 23 28 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 30 variant 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 27 35 } 28 36 29 if {![variant_isset mysql4]} { 30 default_variants +mysql5 37 # this has !NOT! been tested, but ought to work 38 variant 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 31 43 } 32 44 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 46 variant 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 38 51 } 52 53 default_variants +mysql55