37 | | } |
38 | | |
39 | | if {![variant_isset mysql4]} { |
40 | | default_variants +mysql5 |
41 | | } |
42 | | |
43 | | pre-fetch { |
44 | | if {![variant_isset mysql4] && ![variant_isset mysql5]} { |
45 | | return -code error "you must select either mysql4 or mysql5" |
| 34 | |
| 35 | variant mysql5 conflicts mysql4 mysql51 mysql55 description {Build with MySQL 5} { |
| 36 | if {$subport != $name} { |
| 37 | depends_lib-append path:bin/mysql_config5:mysql5 |
| 38 | set mysql_config lib/mysql5/bin/mysql_config |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | variant mysql51 conflicts mysql4 mysql5 mysql55 description {Build with MySQL 5.1} { |
| 43 | if {$subport != $name} { |
| 44 | depends_lib-append path:bin/mysql_config51:mysql51 |
| 45 | set mysql_config lib/mysql51/bin/mysql_config |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | variant mysql55 conflicts mysql4 mysql5 mysql51 description {Build with MySQL 5.5} { |
| 50 | if {$subport != $name} { |
| 51 | depends_lib-append path:bin/mysql_config51:mysql51 |
| 52 | set mysql_config lib/mysql55/bin/mysql_config |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | if {![variant_isset mysql4] && ![variant_isset mysql5] && ![variant_isset mysql51] && ![variant_isset mysql55]} { |
| 57 | default_variants +mysql5 |
| 58 | } |
| 59 | |
| 60 | pre-fetch { |
| 61 | if {![variant_isset mysql4] && |
| 62 | ![variant_isset mysql5] && |
| 63 | ![variant_isset mysql51] && |
| 64 | ![variant_isset mysql55]} { |
| 65 | return -code error "you must select either mysql4, mysql5, mysql51, or mysql55" |
| 66 | } |