New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #12210: php5-Portfile.2.patch

File php5-Portfile.2.patch, 0.7 KB (added by mjscod@…, 5 years ago)

Path to enhance the Portfile of PHP5 to support unixODBC

  • Portfile

    old new  
    120120                --with-iodbc=/usr 
    121121} 
    122122 
     123variant unixodbc { 
     124        configure.args-delete \ 
     125                --with-iodbc=/usr \ 
     126                --with-pdo-odbc=generic,/usr,iodbc,/usr/include 
     127        configure.args-append \ 
     128                --with-unixODBC=${prefix} \ 
     129                --with-pdo-odbc=unixODBC,${prefix} 
     130} 
     131 
    123132# Build an Apache 1 module. On Mac OS X, it uses Apple's provided Apache 1 server. 
    124133# On other platforms, the MacPorts apache port is used. Keep the options here 
    125134# in sync with those in the relevant part of the post-destroot phase.