# -*- 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 # $Id: Portfile 84585 2011-09-28 15:49:47Z snc@macports.org $ PortSystem 1.0 name php56-web version 5.6.0 categories lang php www platforms darwin maintainers ryandesign license BSD supported_archs noarch 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:php56 distfiles use_configure no build { set found 0 foreach {desc file} " {FastCGI binary} ${prefix}/bin/php-cgi {Apache 2 module} ${prefix}/apache2/modules/mod_php56.so {Apache 1 module} ${prefix}/libexec/apache/mod_php56.so " { if {[file exists ${file}]} { ui_debug "OK: found ${desc} (${file})" incr found } } if {!${found}} { 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" } } destroot { xinstall -d ${destroot}${prefix}/share/doc/${name} system "echo \"${long_description}\" > ${destroot}${prefix}/share/doc/${name}/README.txt" } livecheck.type none