[42073] trunk/dports/gis/mapserver/Portfile
macsforever2000 at macports.org
macsforever2000 at macports.org
Fri Nov 14 08:23:21 PST 2008
Revision: 42073
http://trac.macports.org/changeset/42073
Author: macsforever2000 at macports.org
Date: 2008-11-14 08:23:20 -0800 (Fri, 14 Nov 2008)
Log Message:
-----------
Added variants for apache web servers. Thanks to Ryan Schmidt for the code.
Modified Paths:
--------------
trunk/dports/gis/mapserver/Portfile
Modified: trunk/dports/gis/mapserver/Portfile
===================================================================
--- trunk/dports/gis/mapserver/Portfile 2008-11-14 14:51:35 UTC (rev 42072)
+++ trunk/dports/gis/mapserver/Portfile 2008-11-14 16:23:20 UTC (rev 42073)
@@ -34,13 +34,27 @@
configure.args-append --with-proj=${prefix}
}
-set cgi_path "/Library/WebServer/CGI-Executables/"
+variant apache conflicts apache2 apache_apple description {Use MacPorts Apache 1} {
+ depends_run-append port:apache
+ global cgi_path
+ set cgi_path "${prefix}/www/cgi-bin/"
+}
-# apache macport interop
-if {[ file exists ${prefix}/sbin/httpd]} {
- set cgi_path "${prefix}/www/cgi-bin/"
+variant apache2 conflicts apache apache_apple description {Use MacPorts Apache 2} {
+ depends_run-append port:apache2
+ global cgi_path
+ set cgi_path "${prefix}/apache2/cgi-bin/"
}
+variant apache_apple conflicts apache apache2 description {Use Apple Apache} {
+ global cgi_path
+ set cgi_path "/Library/WebServer/CGI-Executables/"
+}
+
+if {![variant_isset apache] && ![variant_isset apache2] && ![variant_isset apache_apple]} {
+ default_variants +apache2
+}
+
destroot.target install-force
post-destroot {
file mkdir ${destroot}${cgi_path}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20081114/2d6649a5/attachment.html>
More information about the macports-changes
mailing list