Ticket #6612: Portfile.diff

File Portfile.diff, 1.4 KB (added by opendarwin-2006@…, 18 years ago)

patch for mysql3, mysql4, mysql5 and postgresql variants

  • Portfile

    old new  
    138138variant mysql3 conflicts mysql4 mysql5 {
    139139        depends_lib-append      port:mysql
    140140        configure.args-delete   --without-mysql
    141         configure.args-append   --with-mysql=${prefix}
     141        configure.args-append   --with-mysql=${prefix} \
     142                                                        --with-pdo-mysql=${prefix}
    142143}
    143144
    144145variant mysql4 conflicts mysql3 mysql5 {
    145146        depends_lib-append      port:mysql4
    146147        configure.args-delete   --without-mysql
    147         configure.args-append   --with-mysql=${prefix}
     148        configure.args-append   --with-mysql=${prefix} \
     149                                                        --with-pdo-mysql=${prefix}
    148150}
    149151
    150152variant mysql5 conflicts mysql3 mysql4 {
    151153        depends_lib-append      port:mysql5
    152154        configure.args-delete   --without-mysql
    153155        configure.args-append   --with-mysql=${workpath}/mysql5 \
     156                                                        --with-pdo-mysql=${workpath}/mysql5 \
    154157                                                        --with-mysql-sock=${prefix}/var/run/mysql5/mysqld.sock \
    155158                                                        --with-mysqli=${prefix}/bin/mysql_config5
    156159        post-extract {
     
    162165
    163166variant postgresql {
    164167        depends_lib-append      port:postgresql8
    165         configure.args-append   --with-pgsql=${prefix}/lib/pgsql8/bin/
     168        configure.args-append   --with-pgsql=${prefix}/lib/pgsql8/bin \
     169                                                        --with-pdo-pgsql=${prefix}/lib/pgsql8/bin
    166170}
    167171
    168172# if no apache/apache2/fastcgi variant is set, we set it (need better default variant management)