25 | | variant mysql4 conflicts mysql5 description {Build with MySQL 4} { |
26 | | if {$subport != $name} { |
27 | | depends_lib-append port:mysql4 |
28 | | build.env MYSQL_CONFIG=mysql_config4 |
29 | | } |
30 | | } |
31 | | |
32 | | variant mysql5 conflicts mysql4 description {Build with MySQL 5} { |
33 | | if {$subport != $name} { |
34 | | depends_lib-append path:bin/mysql_config5:mysql5 |
35 | | build.env MYSQL_CONFIG=mysql_config5 |
36 | | } |
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" |
46 | | } |
47 | | } |
| 25 | |
| 26 | if {${subport} != ${name}} { |
| 27 | depends_lib-append port:py${python.version}-distribute \ |
| 28 | port:py${python.version}-cython |
| 29 | |
| 30 | variant mysql4 conflicts mysql5 mysql51 mysql55 description {Build with mysql4} { |
| 31 | depends_lib-append port:mysql4 |
| 32 | build.env MYSQL_CONFIG=${prefix}/bin/mysql_config |
| 33 | } |
| 34 | |
| 35 | variant mysql5 conflicts mysql4 mysql51 mysql55 description {Build with mysql5} { |
| 36 | depends_lib-append port:mysql5 |
| 37 | build.env MYSQL_CONFIG=${prefix}/lib/mysql5/bin/mysql_config |
| 38 | } |
| 39 | |
| 40 | variant mysql51 conflicts mysql4 mysql5 mysql55 description {Build with mysql51} { |
| 41 | depends_lib-append port:mysql51 |
| 42 | build.env MYSQL_CONFIG=${prefix}/lib/mysql51/bin/mysql_config |
| 43 | } |
| 44 | |
| 45 | variant mysql55 conflicts mysql4 mysql5 mysql51 description {Build with mysql55} { |
| 46 | depends_lib-append port:mysql55 |
| 47 | build.env MYSQL_CONFIG=${prefix}/lib/mysql55/bin/mysql_config |
| 48 | } |
| 49 | |
| 50 | if {![variant_isset mysql4] && ![variant_isset mysql5] && ![variant_isset mysql51] && ![variant_isset mysql55]} { |
| 51 | default_variants +mysql5 |
| 52 | } |
| 53 | } |
| 54 | No newline at end of file |