1 | *** Portfile 2011-03-09 14:53:16.000000000 -0800 |
---|
2 | --- Portfile.postgres90 2011-03-09 14:44:00.000000000 -0800 |
---|
3 | *************** |
---|
4 | *** 34,60 **** |
---|
5 | |
---|
6 | test.run yes |
---|
7 | |
---|
8 | ! variant postgres conflicts postgresql83 postgresql84 description {Enable PostgreSQL support for old PgSQL 8.2} { |
---|
9 | depends_lib-append port:postgresql82 |
---|
10 | configure.args-append --with-pgsql \ |
---|
11 | --with-pgsql-includes=${prefix}/include/postgresql82 \ |
---|
12 | --with-pgsql-libs=${prefix}/lib/postgresql82 |
---|
13 | } |
---|
14 | |
---|
15 | ! variant postgresql83 conflicts postgres postgresql84 description {Enable PostgreSQL support for newer PgSQL v8.3} { |
---|
16 | depends_lib-append port:postgresql83 |
---|
17 | configure.args-append --with-pgsql \ |
---|
18 | --with-pgsql-includes=${prefix}/include/postgresql83 \ |
---|
19 | --with-pgsql-libs=${prefix}/lib/postgresql83 |
---|
20 | } |
---|
21 | |
---|
22 | ! variant postgresql84 conflicts postgres postgresql83 description {Enable PostgreSQL support for newer PgSQL v8.4} { |
---|
23 | depends_lib-append port:postgresql84 |
---|
24 | configure.args-append --with-pgsql \ |
---|
25 | --with-pgsql-includes=${prefix}/include/postgresql84 \ |
---|
26 | --with-pgsql-libs=${prefix}/lib/postgresql84 |
---|
27 | } |
---|
28 | |
---|
29 | variant mysql5 description {Enable MySQL 5 support} { |
---|
30 | depends_lib-append path:bin/mysql_config5:mysql5 |
---|
31 | configure.args-delete --without-mysql |
---|
32 | --- 34,68 ---- |
---|
33 | |
---|
34 | test.run yes |
---|
35 | |
---|
36 | ! variant postgres conflicts postgresql83 postgresql84 postgresql90 description {Enable PostgreSQL support for old PgSQL 8.2} { |
---|
37 | depends_lib-append port:postgresql82 |
---|
38 | configure.args-append --with-pgsql \ |
---|
39 | --with-pgsql-includes=${prefix}/include/postgresql82 \ |
---|
40 | --with-pgsql-libs=${prefix}/lib/postgresql82 |
---|
41 | } |
---|
42 | |
---|
43 | ! variant postgresql83 conflicts postgres postgresql84 postgresql90 description {Enable PostgreSQL support for newer PgSQL v8.3} { |
---|
44 | depends_lib-append port:postgresql83 |
---|
45 | configure.args-append --with-pgsql \ |
---|
46 | --with-pgsql-includes=${prefix}/include/postgresql83 \ |
---|
47 | --with-pgsql-libs=${prefix}/lib/postgresql83 |
---|
48 | } |
---|
49 | |
---|
50 | ! variant postgresql84 conflicts postgres postgresql83 postgresql90 description {Enable PostgreSQL support for newer PgSQL v8.4} { |
---|
51 | depends_lib-append port:postgresql84 |
---|
52 | configure.args-append --with-pgsql \ |
---|
53 | --with-pgsql-includes=${prefix}/include/postgresql84 \ |
---|
54 | --with-pgsql-libs=${prefix}/lib/postgresql84 |
---|
55 | } |
---|
56 | |
---|
57 | + variant postgresql90 conflicts postgres postgresql83 postgresql84 description {Enable PostgreSQL support for newer PgSQL v9.0} { |
---|
58 | + depends_lib-append port:postgresql90 |
---|
59 | + configure.args-append --with-pgsql \ |
---|
60 | + --with-pgsql-includes=${prefix}/include/postgresql90 \ |
---|
61 | + --with-pgsql-libs=${prefix}/lib/postgresql90 |
---|
62 | + } |
---|
63 | + |
---|
64 | + |
---|
65 | variant mysql5 description {Enable MySQL 5 support} { |
---|
66 | depends_lib-append path:bin/mysql_config5:mysql5 |
---|
67 | configure.args-delete --without-mysql |
---|
68 | *************** |
---|
69 | *** 62,67 **** |
---|
70 | --with-mysql-libs=${prefix}/lib/mysql5/mysql |
---|
71 | } |
---|
72 | |
---|
73 | ! if {![variant_isset postgres] && ![variant_isset postgresql83] && ![variant_isset postgresql84] && ![variant_isset mysql5]} { |
---|
74 | default_variants +mysql5 |
---|
75 | } |
---|
76 | --- 70,75 ---- |
---|
77 | --with-mysql-libs=${prefix}/lib/mysql5/mysql |
---|
78 | } |
---|
79 | |
---|
80 | ! if {![variant_isset postgres] && ![variant_isset postgresql83] && ![variant_isset postgresql84] && ![variant_isset postgresql90] && ![variant_isset mysql5]} { |
---|
81 | default_variants +mysql5 |
---|
82 | } |
---|