Ticket #51975: Portfile.diff

File Portfile.diff, 543 bytes (added by dmarteau (David Marteau), 7 years ago)

Support qt5 variant in Portfile

  • devel/qjson/Portfile

     
    22
    33PortSystem          1.0
    44
    5 if {[variant_isset kde4]} {
    6     PortGroup       kde4 1.1
    7 } else {
     5variant qt4 conflicts qt5 kde4 description {Build with qt4} {
    86    PortGroup       qt4 1.0
    97}
     8variant qt5 conflicts qt4 kde4 description {Build with qt5} {
     9    PortGroup       qt5 1.0
     10}
     11
     12if {![variant_isset kde4] && ![variant_isset qt5]} {
     13    default_variants +qt4
     14} elseif {[variant_isset kde4]} {
     15    PortGroup       kde4 1.1
     16}
    1017
    1118PortGroup           cmake 1.0
    1219