Ticket #37879: php-portfile.diff

File php-portfile.diff, 1.3 KB (added by iakoder, 11 years ago)

Patch for php Portfile

  • Portfile

    old new  
    767767subport ${php}-oracle {
    768768    php.extensions          oci8 pdo_oci
    769769   
    770     if {${os.platform} == "darwin" && ${os.major} > 10} {
    771         # oracle-instantclient 10.2.0.4.0 crashes in 64-bit mode on Lion and up.
    772         supported_archs i386
    773        
    774         notes-append "
    775 On OS X 10.7 Lion and later, ${subport} is only available 32-bit, but ${php}\
    776 runs 64-bit by default. To use the Oracle functions in PHP, you must start\
    777 ${php} in 32-bit mode using the arch command, i.e.:
    778 
    779 arch -i386 ${php} example.php
    780 
    781 If using PHP via a web server, configure the web server to start 32-bit.
    782 
    783 Using ${php} 64-bit while ${subport} is active will result in warning messages\
    784 and the Oracle functions being unavailable.
    785 "
    786     }
    787    
    788770    categories-append       databases
    789771   
    790772    description             a PHP interface to Oracle, including the oci8 and \
     
    795777    depends_lib-append      port:oracle-instantclient
    796778   
    797779    configure.args-append   --with-oci8=instantclient,${prefix}/lib/oracle \
    798                             --with-pdo-oci=instantclient,${prefix}/lib/oracle,10.1
     780                            --with-pdo-oci=instantclient,${prefix}/lib/oracle,11.1
    799781}
    800782
    801783subport ${php}-pcntl {