Changeset 42073 for trunk/dports/gis


Ignore:
Timestamp:
Nov 14, 2008, 4:23:20 PM (12 years ago)
Author:
macsforever2000@…
Message:

Added variants for apache web servers. Thanks to Ryan Schmidt for the code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/gis/mapserver/Portfile

    r41899 r42073  
    3535}
    3636
    37 set cgi_path "/Library/WebServer/CGI-Executables/"
     37variant apache conflicts apache2 apache_apple description {Use MacPorts Apache 1} {
     38        depends_run-append port:apache
     39        global cgi_path
     40        set cgi_path "${prefix}/www/cgi-bin/"
     41}
    3842
    39 # apache macport interop
    40 if {[ file exists ${prefix}/sbin/httpd]} {
    41     set cgi_path "${prefix}/www/cgi-bin/"
     43variant apache2 conflicts apache apache_apple description {Use MacPorts Apache 2} {
     44        depends_run-append port:apache2
     45        global cgi_path
     46        set cgi_path "${prefix}/apache2/cgi-bin/"
     47}
     48
     49variant apache_apple conflicts apache apache2 description {Use Apple Apache} {
     50        global cgi_path
     51        set cgi_path "/Library/WebServer/CGI-Executables/"
     52}
     53
     54if {![variant_isset apache] && ![variant_isset apache2] && ![variant_isset apache_apple]} {
     55        default_variants +apache2
    4256}
    4357
Note: See TracChangeset for help on using the changeset viewer.