Ignore:
Timestamp:
Feb 6, 2014, 5:24:12 AM (6 years ago)
Author:
ryandesign@…
Message:

php: fix php56-postgresql build problem

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/lang/php/Portfile

    r116577 r116757  
    952952    long_description        ${description}
    953953   
     954    if {[vercmp ${php.branch} 5.6] == 0} {
     955        # https://bugs.php.net/bug.php?id=66604
     956        # fatal error: 'pdo/php_pdo_error.h' file not found
     957        extract.post_args-append ${worksrcdir}/ext/pdo
     958        configure.cppflags-append -I${worksrcpath}/ext
     959    }
     960   
    954961    variant postgresql82 conflicts postgresql83 postgresql84 postgresql90 postgresql91 postgresql92 postgresql93 description {Use PostgreSQL 8.2 libraries} {
    955962        depends_lib-append      port:postgresql82
     
    12011208    }
    12021209   
    1203     post-extract {
    1204         # The PDO extensions need the PDO headers which are installed by the ${php} port.
    1205         foreach extension [concat ${php.extensions} ${php.extensions.zend}] {
    1206             if {[regexp {^pdo_} ${extension}]} {
    1207                 file mkdir ${worksrcpath}/ext/${extension}/ext
    1208                 ln -s ${prefix}/include/${php}/php/ext/pdo ${worksrcpath}/ext/${extension}/ext
    1209             }
    1210         }
    1211     }
    1212    
    12131210    pre-configure {
    12141211        set php_version [exec ${php.config} --version 2>/dev/null]
Note: See TracChangeset for help on using the changeset viewer.