Ticket #10046: Portfile.diff

File Portfile.diff, 1.0 KB (added by markd@…, 18 years ago)

Portfile diff that adds snmp support

  • Portfile

    old new  
    44
    55name                    php5
    66version                 5.1.4
    7 revision                3
     7revision                4
    88
    99categories      lang php www
    1010maintainers     opendarwin-2006@ryandesign.com
     
    170170                                --with-pdo-pgsql=${prefix}/lib/pgsql8/bin
    171171}
    172172
     173variant apple_snmp conflicts snmp {
     174# This compiles PHP5 with SNMP linked against Apple's included NET-SNMP.  PHP's behavior may be affected by OS updates.
     175        configure.args-append   --with-snmp=/usr
     176}
     177               
     178variant snmp conflicts apple_snmp {
     179# This depends on DarwinPorts' NET-SNMP anf links PHP5 against it.  A safer option because OS updates will not affect it PHP or DP's NET-SNMP.
     180        configure.args-append   --with-snmp=${prefix}
     181        depends_lib-append      port:net-snmp
     182}
     183
    173184# if no apache/apache2/fastcgi variant is set, we set it (need better default variant management)
    174185if { ![variant_isset apache] && ![variant_isset apache2] && ![variant_isset fastcgi] } {
    175186        if { ! [variant_isset macosx] } {