Ticket #50577: Portfile-php.diff

File Portfile-php.diff, 1.0 KB (added by james.harris@…, 8 years ago)

Unified diff of php Portfile

  • Portfile

    old new  
    3838    if {[regexp {^php\d+$} ${subport}]} {
    3939        return yes
    4040    }
    41     return [expr {-1 != [lsearch -exact [list apache2handler cgi fpm] ${php.rootname}]}]
     41    return [expr {-1 != [lsearch -exact [list apache2handler cgi fpm dbg] ${php.rootname}]}]
    4242}
    4343
    4444# Returns true if the subport is an extension, false otherwise (SAPI, stub port).
     
    521521}
    522522}
    523523
     524### DBG SAPI ###
     525
     526if {[vercmp ${branch} 5.6] >= 0} {
     527    subport ${php}-dbg {
     528        description             ${php} DBG SAPI
     529
     530        long_description        ${description}
     531
     532        homepage                http://www.php.net/install.unix.commandline
     533
     534        configure.args-append   --enable-phpdbg
     535
     536        destroot {
     537            xinstall ${worksrcpath}/sapi/phpdbg/phpdbg ${destroot}${prefix}/bin/phpdbg[php.suffix_from_branch ${branch}]
     538        }
     539    }
     540}
     541
    524542### Bundled extensions ###
    525543
    526544subport ${php}-calendar {