Ticket #14305: again.diff

File again.diff, 1.2 KB (added by shreevatsa.public@…, 16 years ago)

Without the version changes

  • Portfile

    old new  
    2424                ftp://ftp.gtk.org/pub/gtk/v${branch}/ \
    2525                http://ftp.gtk.org/pub/gtk/v${branch}/
    2626
     27if {[variant_isset no_x11]} {
     28    default_variants    +quartz
     29}
     30
    2731if {![variant_isset quartz]} {
    2832    default_variants    +x11
    2933}
     
    96100    depends_build-append    port:cups-headers
    97101}
    98102
    99 variant quartz conflicts x11 description {Enable Quartz rendering} {
     103variant no_x11 description {Same as +quartz} {
     104    pre-fetch {
     105        if {[file exists ${prefix}/lib/libpangox-1.0.dylib]} {
     106            ui_error "Please uninstall or deactivate the pango port and reinstall it by running `port install pango +no_x11`."
     107            error "pango must be installed with the no_x11 variant enabled."
     108        }
     109    }
     110}
     111
     112variant quartz requires no_x11 conflicts x11 description {Enable Quartz rendering} {
    100113    pre-fetch {
    101114        if {![file exists ${prefix}/include/cairo/cairo-quartz.h]} {
    102115            ui_error "Please uninstall or deactivate the cairo port and reinstall it by running `port install cairo +quartz`."