# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
homepage http://www.php.net/
description Meta-port for PHP web server support
long_description If you have a port for a web app that uses PHP, and \
you don't care (as you usually wouldn't) whether \
PHP is compiled as an Apache module or as a FastCGI \
binary, depend on ${name} so the user can choose.
depends_lib path:bin/php:php5
{FastCGI binary} ${prefix}/bin/php-cgi
{Apache 2 module} ${prefix}/apache2/modules/libphp5.so
{Apache 1 module} ${prefix}/libexec/apache/libphp5.so
if {[file exists ${file}]} {
ui_debug "OK: found ${desc} (${file})"
ui_error "php5 is installed without web server support. Please reinstall it with one of the web server SAPI variants."
return -code error "incompatible php5 installation"
xinstall -d ${destroot}${prefix}/share/doc/${name}
system "echo \"${long_description}\" > ${destroot}${prefix}/share/doc/${name}/README.txt"