| 31 | | reinplace "s|SSL_PATH=\"\"|SSL_PATH=\"${prefix}/lib\"|" ${worksrcpath}/configure |
| 32 | | reinplace "s|SSL_IPATH=\"\"|SSL_IPATH=\"${prefix}/include\"|" ${worksrcpath}/configure |
| 33 | | reinplace "s|CRYPTO_PATH=\"\"|CRYPTO_PATH=\"${prefix}/lib\"|" ${worksrcpath}/configure |
| 34 | | reinplace "s|SSH_PATH=\"\"|SSH_PATH=\"${prefix}/lib/libssh01\"|" ${worksrcpath}/configure |
| 35 | | reinplace "s|SSH_IPATH=\"\"|SSH_IPATH=\"${prefix}/include/libssh01\"|" ${worksrcpath}/configure |
| | 41 | # Look only in Macports directories |
| | 42 | reinplace "s|^INCDIRS=.*$|INCDIRS=\"${incdir}\"|g" ${worksrcpath}/configure |
| | 43 | reinplace "s|^LIBDIRS=.*$|LIBDIRS=\"${libdir}\"|g" ${worksrcpath}/configure |
| | 44 | reinplace "s|XLIBPATHS=\"-L/usr/lib -L/usr/local/lib -L/lib\"|XLIBPATHS=\"\"|g" ${worksrcpath}/configure |
| | 45 | |
| | 46 | # Disable searching for libs/headers for any module NOT set as variant |
| | 47 | if {![variant_isset postgresql80] && ![variant_isset postgresql81] && \ |
| | 48 | ![variant_isset postgresql82] && ![variant_isset postgresql83] && \ |
| | 49 | ![variant_isset postgresql84] && ![variant_isset postgresql90] && \ |
| | 50 | ![variant_isset postgresql91] && ![variant_isset postgresql92]} { |
| | 51 | reinplace -E "/#@@CUT_POSTGRES/,/#CUT_POSTGRES@@/d" ${worksrcpath}/configure |
| | 52 | } |
| | 53 | |
| | 54 | if {![variant_isset mysql5] && ![variant_isset mysql51] && [variant_isset mysql55] && \ |
| | 55 | ![variant_isset mariadb] && ![variant_isset percona]} { |
| | 56 | reinplace -E "/#@@CUT_MYSQLA/,/#CUT_MYSQLA@@/d" ${worksrcpath}/configure |
| | 57 | reinplace -E "/#@@CUT_MYSQLB/,/#CUT_MYSQLB@@/d" ${worksrcpath}/configure |
| | 58 | } else { |
| | 59 | # Fix include path |
| | 60 | reinplace "s|MYSQL_IPATH=\"\$i/mysql\"|MYSQL_IPATH=\"\$i\"|" ${worksrcpath}/configure |
| | 61 | } |
| | 62 | |
| | 63 | if {![variant_isset oracle]} { |
| | 64 | reinplace -E "/#@@CUT_ORACLE/,/#CUT_ORACLE@@/d" ${worksrcpath}/configure |
| | 65 | } else { |
| | 66 | # Async I/O is compiled into libSystem.B.dylib |
| | 67 | reinplace "s|LIBAIO=\"\"|LIBAIO=\"YES_WE_HAVE\"|g" ${worksrcpath}/configure |
| | 68 | } |
| | 69 | |
| | 70 | if {![variant_isset subversion]} { |
| | 71 | reinplace -E "/#@@CUT_SVN/,/#CUT_SVN@@/d" ${worksrcpath}/configure |
| | 72 | } |
| | 73 | |
| | 74 | # These are not in variants, because they do not exist as ports (yet) |
| | 75 | reinplace -E "/#@@CUT_FB/,/#CUT_FB@@/d" ${worksrcpath}/configure |
| | 76 | reinplace -E "/#@@CUT_AFP/,/#CUT_AFP@@/d" ${worksrcpath}/configure |
| | 77 | reinplace -E "/#@@CUT_NCP/,/#CUT_NCP@@/d" ${worksrcpath}/configure |
| | 78 | reinplace -E "/#@@CUT_SAP/,/#CUT_SAP@@/d" ${worksrcpath}/configure |
| | 79 | |
| | 80 | # This one is very strange, it adds /usr/kerberos/include to the path |
| | 81 | # but I cannot find that it's being used anywhere. At the same time, |
| | 82 | # krb5.h is in /opt/local/include, so it's found from the default search path |
| | 83 | # if installed. We delete it here, because it we do not want anything from /usr, |
| | 84 | # but I don't know how to otherwise disable kerberos, or that it even matters. |
| | 85 | reinplace -E "/#@@CUT_KRB/,/CUT_KRB@@/d" ${worksrcpath}/configure |
| | 113 | variant postgresql80 \ |
| | 114 | conflicts postgresql81 postgresql82 postgresql83 postgresql84 postgresql90 postgresql91 postgresql92 \ |
| | 115 | description {Add support for PostgreSQL 8.0} { |
| | 116 | depends_lib-append port:postgresql80 |
| | 117 | set incdir "${incdir} ${prefix}/include/postgresql80" |
| | 118 | set libdir "${libdir} ${prefix}/lib/postgresql80" |
| | 119 | } |
| | 120 | |
| | 121 | variant postgresql81 \ |
| | 122 | conflicts postgresql80 postgresql82 postgresql83 postgresql84 postgresql90 postgresql91 postgresql92 \ |
| | 123 | description {Add support for PostgreSQL 8.1} { |
| | 124 | depends_lib-append port:postgresql81 |
| | 125 | set incdir "${incdir} ${prefix}/include/postgresql81" |
| | 126 | set libdir "${libdir} ${prefix}/lib/postgresql81" |
| | 127 | } |
| | 128 | |
| | 129 | variant postgresql82 \ |
| | 130 | conflicts postgresql80 postgresql81 postgresql83 postgresql84 postgresql90 postgresql91 postgresql92 \ |
| | 131 | description {Add support for PostgreSQL 8.2} { |
| | 132 | depends_lib-append port:postgresql82 |
| | 133 | set incdir "${incdir} ${prefix}/include/postgresql82" |
| | 134 | set libdir "${libdir} ${prefix}/lib/postgresql82" |
| | 135 | } |
| | 136 | |
| | 137 | variant postgresql83 \ |
| | 138 | conflicts postgresql80 postgresql81 postgresql82 postgresql84 postgresql90 postgresql91 postgresql92 \ |
| | 139 | description {Add support for PostgreSQL 8.3} { |
| | 140 | depends_lib-append port:postgresql83 |
| | 141 | set incdir "${incdir} ${prefix}/include/postgresql83" |
| | 142 | set libdir "${libdir} ${prefix}/lib/postgresql83" |
| | 143 | } |
| | 144 | |
| | 145 | variant postgresql84 \ |
| | 146 | conflicts postgresql80 postgresql81 postgresql82 postgresql83 postgresql90 postgresql91 postgresql92 \ |
| | 147 | description {Add support for PostgreSQL 8.4} { |
| | 148 | depends_lib-append port:postgresql84 |
| | 149 | set incdir "${incdir} ${prefix}/include/postgresql84" |
| | 150 | set libdir "${libdir} ${prefix}/lib/postgresql84" |
| | 151 | } |
| | 152 | |
| | 153 | variant postgresql90 \ |
| | 154 | conflicts postgresql80 postgresql81 postgresql82 postgresql83 postgresql84 postgresql91 postgresql92 \ |
| | 155 | description {Add support for PostgreSQL 9.0} { |
| | 156 | depends_lib-append port:postgresql90 |
| | 157 | set incdir "${incdir} ${prefix}/include/postgresql90" |
| | 158 | set libdir "${libdir} ${prefix}/lib/postgresql90" |
| | 159 | } |
| | 160 | |
| | 161 | variant postgresql91 \ |
| | 162 | conflicts postgresql80 postgresql81 postgresql82 postgresql83 postgresql84 postgresql90 postgresql92 \ |
| | 163 | description {Add support for PostgreSQL 9.1} { |
| | 164 | depends_lib-append port:postgresql91 |
| | 165 | set incdir "${incdir} ${prefix}/include/postgresql91" |
| | 166 | set libdir "${libdir} ${prefix}/lib/postgresql91" |
| | 167 | } |
| | 168 | |
| | 169 | variant postgresql92 \ |
| | 170 | conflicts postgresql80 postgresql81 postgresql82 postgresql83 postgresql84 postgresql90 postgresql91 \ |
| | 171 | description {Add support for PostgreSQL 9.2} { |
| | 172 | depends_lib-append port:postgresql92 |
| | 173 | set incdir "${incdir} ${prefix}/include/postgresql92" |
| | 174 | set libdir "${libdir} ${prefix}/lib/postgresql92" |
| | 175 | } |
| | 176 | |
| | 177 | variant mysql5 conflicts mysql51 mysql55 mariadb percona description {Add support for MySQL5} { |
| | 178 | depends_lib-append port:mysql5 |
| | 179 | set incdir "${incdir} ${prefix}/include/mysql5" |
| | 180 | set libdir "${incdir} ${prefix}/lib/mysql5/mysql" |
| | 181 | } |
| | 182 | |
| | 183 | variant mysql51 conflicts mysql5 mysql55 mariadb percona description {Add support for MySQL 5.1} { |
| | 184 | depends_lib-append port:mysql51 |
| | 185 | set incdir "${incdir} ${prefix}/include/mysql51" |
| | 186 | set libdir "${libdir} ${prefix}/lib/mysql51/mysql" |
| | 187 | } |
| | 188 | |
| | 189 | variant mysql55 conflicts mysql5 mysql51 mariadb percona description {Add support for MySQL 5.5} { |
| | 190 | depends_lib-append port:mysql55 |
| | 191 | set incdir "${incdir} ${prefix}/include/mysql55" |
| | 192 | set libdir "${libdir} ${prefix}/lib/mysql55/mysql" |
| | 193 | } |
| | 194 | |
| | 195 | variant mariadb conflicts mysql5 mysql51 mysql55 percona description {Add support for MariaDB} { |
| | 196 | depends_lib-append port:mariadb |
| | 197 | set incdir "${incdir} ${prefix}/include/mariadb" |
| | 198 | set libdir "${libdir} ${prefix}/lib/mariadb/mysql" |
| | 199 | } |
| | 200 | |
| | 201 | variant percona conflicts mysql5 mysql51 mysql55 mariadb description {Add support for Percona} { |
| | 202 | depends_lib-append port:percona |
| | 203 | set incdir "${incdir} ${prefix}/include/percona" |
| | 204 | set libdir "${libdir} ${prefix}/lib/percona/mysql" |
| | 205 | } |
| | 206 | |
| | 207 | variant oracle description {Add support for Oracle} { |
| | 208 | depends_lib-append port:oracle-instantclient |
| | 209 | configure.args-append --with-oracle=${prefix}/lib/oracle/sdk/include \ |
| | 210 | --with-oracle-lib=${prefix}/lib/oracle |
| | 211 | } |
| | 212 | |
| | 213 | variant subversion description {Add support for Subversion} { |
| | 214 | depends_lib-append port:subversion |
| | 215 | } |
| | 216 | |
| | 217 | # Add this variant once someone creates a port for FirebirdSQL. |
| | 218 | # See: http://www.firebirdsql.org/ |
| | 219 | # variant firebird description {Add support for FirebirdSQL} {} |
| | 220 | |
| | 221 | # Add this variant once someone creates a port for AFP-fs, the FUSE filesystem for Apple Filing Protocol |
| | 222 | # See: https://sites.google.com/site/alexthepuffin/ |
| | 223 | # variant afp description {Add support for Apple Filing Protocol} {} |
| | 224 | |
| | 225 | # Add this variant once someone creates a port for ncpfs, an implementation of the Netware Core Protocol |
| | 226 | # See: http://prope.insa-lyon.fr/~ppollet/ncpfs/ |
| | 227 | # variant ncp description {Add support for Netware Core Protocol} {} |
| | 228 | |