Ignore:
Timestamp:
May 5, 2012, 10:56:25 PM (7 years ago)
Author:
ryandesign@…
Message:

php: move some code that relates only to the bundled extensions from the php portgroup to the php port

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/_resources/port1.0/group/php-1.0.tcl

    r92755 r92759  
    254254        livecheck.regex         {>([0-9.]+)</a></th>\s*<[^>]+>stable<}
    255255    }
    256    
    257     if {${php._bundled}} {
    258         default homepage        http://www.php.net/${php.rootname}
    259        
    260         pre-extract {
    261             # Speed up extraction by extracting only the modules we're going to be building.
    262             foreach extension ${php.extensions} {
    263                 extract.post_args-append ${worksrcdir}/ext/${extension}
    264             }
    265         }
    266        
    267         post-extract {
    268             # The PDO extensions need the PDO headers which are installed by the ${php} port.
    269             foreach extension ${php.extensions} {
    270                 if {[regexp {^pdo_} ${extension}]} {
    271                     file mkdir ${worksrcpath}/ext/${extension}/ext
    272                     ln -s ${prefix}/include/${php}/php/ext/pdo ${worksrcpath}/ext/${extension}/ext
    273                 }
    274             }
    275         }
    276        
    277         pre-configure {
    278             set php_version [exec ${php.config} --version 2>/dev/null]
    279             if {${version} != ${php_version}} {
    280                 ui_error "${subport} @${version} requires ${php} @${version} but you have ${php} @${php_version}."
    281                 return -code error "incompatible ${php} installation"
    282             }
    283         }
    284        
    285         destroot.target         install-modules install-headers
    286     }
    287256}
    288257
Note: See TracChangeset for help on using the changeset viewer.