RCS file: /Volumes/src/cvs/od/projects/darwinports/dports/www/php5/Portfile,v
retrieving revision 1.20
diff -u -d -b -w -u -r1.20 Portfile
|
|
|
128 | 128 | configure.args-append --with-apxs2=${prefix}/apache2/bin/apxs |
129 | 129 | } |
130 | 130 | |
| 131 | variant fastcgi { |
| 132 | configure.args-append --enable-fastcgi \ |
| 133 | --enable-force-cgi-redirect \ |
| 134 | --enable-memory-limit |
| 135 | } |
| 136 | |
131 | 137 | variant mysql3 { |
132 | 138 | depends_lib-append port:mysql |
133 | 139 | configure.args-delete --without-mysql |
… |
… |
|
156 | 162 | configure.args-append --with-pgsql=${prefix}/lib/pgsql8/bin/ |
157 | 163 | } |
158 | 164 | |
159 | | # if no apache/apache2 variant is set, we set it (waiting a better default variant management) |
160 | | if { ![variant_isset apache] && ![variant_isset apache2] } { |
| 165 | # if no apache/apache2/fastcgi variant is set, we set it (need better default variant management) |
| 166 | if { ![variant_isset apache] && ![variant_isset apache2] && ![variant_isset fastcgi] } { |
161 | 167 | if { ! [variant_isset macosx] } { |
162 | 168 | depends_lib-append path:${prefix}/sbin/apxs:apache |
163 | 169 | configure.args-append --with-apxs=${prefix}/sbin/apxs |
… |
… |
|
171 | 177 | destroot.target install-cli install-pear install-build install-headers install-programs |
172 | 178 | |
173 | 179 | post-destroot { |
| 180 | # copy fastcgi php binary to the bin dir under a new name so it doesn't overwrite cli version |
| 181 | if { [variant_isset fastcgi] } { |
| 182 | xinstall -m 755 ${worksrcpath}/sapi/cgi/php ${destroot}${prefix}/bin/php-fcgi |
| 183 | } |
| 184 | |
174 | 185 | #copy module |
175 | 186 | if { [variant_isset apache] } { |
176 | 187 | |