Ignore:
Timestamp:
Mar 4, 2009, 1:25:16 PM (11 years ago)
Author:
ryandesign@…
Message:

cairo, cairo-devel, pango, pango-devel: Quartz and ATSUI features are now optional via a new +quartz variant; fixes #16778 and should help #15626

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/x11/pango-devel/Portfile

    r45603 r47716  
    66set my_name             pango
    77version                 1.21.6
    8 revision                2
     8revision                3
    99set branch              [join [lrange [split ${version} .] 0 1] .]
    1010categories              x11
     
    4444configure.ccache        no
    4545
     46platform macosx {}
     47variant quartz requires macosx description {Add Quartz graphics interface} {}
     48
    4649pre-configure {
    4750    set glib_minimum_version 2.17.3
     
    5558    if {[rpm-vercomp ${cairo_installed_version} ${cairo_minimum_version}] < 0} {
    5659        return -code error "pango ${version} requires cairo ${cairo_minimum_version} or later but you have cairo ${cairo_installed_version}."
     60    }
     61   
     62    set cairo_quartz_pc ${prefix}/lib/pkgconfig/cairo-quartz.pc
     63    if {[variant_isset quartz]} {
     64        if {![file exists ${cairo_quartz_pc}]} {
     65            ui_msg "To install pango with the quartz variant, cairo must be installed with the quartz variant."
     66            return -code error "incompatible cairo installation"
     67        }
     68    } else {
     69        if {[file exists ${cairo_quartz_pc}]} {
     70            ui_msg "To install pango without the quartz variant, cairo must be installed without the quartz variant."
     71            return -code error "incompatible cairo installation"
     72        }
    5773    }
    5874}
Note: See TracChangeset for help on using the changeset viewer.